POBAppOpenAd Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | POBAppOpenAd.h |
– initWithPublisherId:profileId:adUnitId:
Initializes & returns a newly initialized AppOpenAd object for supporting ‘No Ad Server Configuration’.
- (instancetype)initWithPublisherId:(NSString *)publisherId profileId:(NSNumber *)profileId adUnitId:(NSString *)adUnitIdParameters
publisherId |
Unique identifier assigned at the time of publisher onboarding. |
|---|---|
profileId |
Profile id. |
adUnitId |
Ad unit id used to identify a unique placement on screen. |
Return Value
Instance of POBAppOpenAd
Discussion
Initializes & returns a newly initialized AppOpenAd object for supporting ‘No Ad Server Configuration’.
Declared In
POBAppOpenAd.h
– loadAd
Initiates the loading of an app open ad
- (void)loadAdDiscussion
Initiates the loading of an app open ad
Declared In
POBAppOpenAd.h
– loadAdWithResponse:forBiddingHost:
Initiates the loading of an app open ad with bid response for bidding host.
- (void)loadAdWithResponse:(NSString *)bidResponse forBiddingHost:(POBSDKBiddingHost)biddingHostParameters
bidResponse |
Stringified JSON bid response as per Open-RTB standard. |
|---|---|
biddingHost |
Bidding host for which bid response is applicable. |
Discussion
Initiates the loading of an app open ad with bid response for bidding host.
Declared In
POBAppOpenAd.h
– showFromViewController:
Presents an app open ad in full screen view. Calling this method has no effect until the ad is received (appOpenAdDidReceiveAd:) and is ready to show, i.e. ‘isReady’ flag is true.
- (void)showFromViewController:(UIViewController *)controllerParameters
controller |
UIViewController to be used for presenting the app open ad. |
|---|
Discussion
Presents an app open ad in full screen view. Calling this method has no effect until the ad is received (appOpenAdDidReceiveAd:) and is ready to show, i.e. ‘isReady’ flag is true.
Declared In
POBAppOpenAd.h
delegate
Sets the POBAppOpenAdDelegate delegate receiver for the app open ad
@property (nonatomic, weak) id<POBAppOpenAdDelegate> _Nullable delegateDiscussion
Sets the POBAppOpenAdDelegate delegate receiver for the app open ad
Warning: Proper reference management practices should be observed when using delegates.
Warning: Ensure that the delegate is set to nil prior to setting nil to POBAppOpenAd’s object reference.
Declared In
POBAppOpenAd.h
videoDelegate
Sets the POBAppOpenAdVideoDelegate delegate to receive the video ad event.
@property (nonatomic, nullable, weak) id<POBAppOpenAdVideoDelegate> videoDelegateDiscussion
Sets the POBAppOpenAdVideoDelegate delegate to receive the video ad event.
Declared In
POBAppOpenAd.h
– bid
Returns the winning bid that will be used to render the ad
- (POBBid *_Nullable)bidDiscussion
Returns the winning bid that will be used to render the ad
Declared In
POBAppOpenAd.h
request
impression
Managed impression object created internally. It provides APIs to set custom parameters
@property (nonatomic, readonly) POBImpression *impressionDiscussion
Managed impression object created internally. It provides APIs to set custom parameters
Declared In
POBAppOpenAd.h
isReady
Returns YES if the app open ad is ready to be displayed. The delegate’s appOpenAdDidReceiveAd: will be called after this property switches from NO to YES.
@property (nonatomic, assign, readonly) BOOL isReadyDiscussion
Returns YES if the app open ad is ready to be displayed. The delegate’s appOpenAdDidReceiveAd: will be called after this property switches from NO to YES.
Declared In
POBAppOpenAd.h