AdColonyInterstitial Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | AdColonyInterstitial.h |
Properties
zoneID
Represents the unique zone identifier string from which the interstitial was requested.
@property (nonatomic, readonly) NSString *zoneIDDiscussion
AdColony zone IDs can be created at the Control Panel.
Declared In
AdColonyInterstitial.h
expired
Indicates whether or not the interstitial has been played or if it has met its expiration time.
@property (nonatomic, readonly) BOOL expiredDiscussion
AdColony interstitials become expired as soon as the ad launches or just before they have met their expiration time.
Declared In
AdColonyInterstitial.h
audioEnabled
Indicates whether or not the interstitial has audio enabled.
@property (nonatomic, readonly) BOOL audioEnabledDiscussion
Leverage this property to determine if the application’s audio should be paused while the ad is playing.
Declared In
AdColonyInterstitial.h
iapEnabled
Indicates whether or not the interstitial is configured to trigger IAPs.
@property (nonatomic, readonly) BOOL iapEnabledDiscussion
Leverage this property to determine if the interstitial is configured to trigger IAPs.
Declared In
AdColonyInterstitial.h
Ad Event Handlers
– setOpen:
Sets the block of code to be executed when the interstitial is displayed to the user.
- (void)setOpen:(nullable void ( ^ ) ( void ))openParameters
open |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setClose:
Sets the block of code to be executed when the interstitial is removed from the view hierarchy.
- (void)setClose:(nullable void ( ^ ) ( void ))closeParameters
close |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setAudioStart:
Sets the block of code to be executed when the interstitial begins playing audio.
- (void)setAudioStart:(nullable void ( ^ ) ( void ))audioStartParameters
audioStart |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setAudioStop:
Sets the block of code to be executed when the interstitial stops playing audio.
- (void)setAudioStop:(nullable void ( ^ ) ( void ))audioStopParameters
audioStop |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setExpire:
Sets the block of code to be executed 5 seconds before an interstitial expires and is no longer valid for playback.
- (void)setExpire:(nullable void ( ^ ) ( void ))expireParameters
expire |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setLeftApplication:
Sets the block of code to be executed when an action causes the user to leave the application.
- (void)setLeftApplication:(nullable void ( ^ ) ( void ))leftApplicationParameters
leftApplication |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
– setClick:
Sets the block of code to be executed when the user taps on the interstitial ad, causing an action to be taken.
- (void)setClick:(nullable void ( ^ ) ( void ))clickParameters
click |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
Videos For Purchase (V4P)
– setIapOpportunity:
Sets the block of code to be executed when the ad triggers an IAP opportunity.
- (void)setIapOpportunity:(nullable void ( ^ ) ( NSString *iapProductID , AdColonyIAPEngagement engagement ))iapOpportunityParameters
iapOpportunity |
The block of code to be executed. |
|---|
Discussion
Note that the associated code block will be dispatched on the main thread.
Declared In
AdColonyInterstitial.h
Ad Playback
– showWithPresentingViewController:
Triggers a fullscreen ad experience.
- (BOOL)showWithPresentingViewController:(UIViewController *)viewControllerParameters
viewController |
The view controller on which the interstitial will display itself. |
|---|
Return Value
Whether the ad was able to start playback.
Declared In
AdColonyInterstitial.h
– cancel
Cancels the interstitial and returns control back to the application.
- (void)cancelDiscussion
Call this method to cancel the interstitial. Note that canceling interstitials before they finish will diminish publisher revenue.
Declared In
AdColonyInterstitial.h