-
Notifications
You must be signed in to change notification settings - Fork 0
Outdated APIs
- Project Setup
- Showing Interstitial Ads
- Showing Banner Ads
- Showing Rewarded Interstitial Ads
- Privacy Laws
- SDK API Reference Guide
- Outdated APIs
Configure method that takes array of zone ids in favour of zoneless one.
+ (void)configureWithAppID:(NSString *)appID zoneIDs:(NSArray<NSString *> *)zoneIDs options:(nullable AdColonyAppOptions *)options completion:(nullable void (^)(NSArray<AdColonyZone *> *zones))completion
Block based callbacks API
// requesting intestitial - use [AdColony requestInterstitialInZone:options:andDelegate:] instead
[AdColony requestInterstitialInZone:/* Zone Id */ options:nil success:^(AdColonyInterstitial *ad) {
// ...
} failure:^(AdColonyAdRequestError * _Nonnull error) {
// ...
}];
// interstitial callbacks - see AdColonyInterstitialDelegate methods
[interstitial setOpen:^{ /* ... */ }]
[interstitial setClick:^{ /* ... */ }];
[interstitial setExpire:^{ /* ... */ }];
[interstitial setClose:^{ /* ... */ }];
[interstitial setLeftApplication:^{ /* ... */ }];
// intestitial audio callbacks - use open/close delegate calls instead
[interstitial setAudioStop:^{ /* ... */ }];
[interstitial setAudioStart:^{ /* ... */ }];
AdColonyNativeAdView
@interface AdColonyNativeAdView : UIView
/* ... */
@end
Zone type for native ads (in AdColonyZoneType enum)
AdColonyZoneTypeNative
Synchronous collecSignals for OpenRTB in favour of asynchronous one.
+ (NSString *)collectSignals;
AdColonyNativeAdView
@interface AdColonyNativeAdView : UIView
/* ... */
@end
Zone type for native ads (in AdColonyZoneType enum)
AdColonyZoneTypeNative
Deprecated GDPR specific methods in AdColonyAppOptions in favor of a more generic solution that allows for inclusion of information related to other privacy laws.
AdColonyAppOptions.gdprRequired = YES;
AdColonyAppOptions.gdprConsentString = @"...";
Deprecated property in the AdColonyAppOptions class used to set desired ad orientation.
@property (nonatomic, assign) AdColonyOrientation adOrientation;
We deprecated block based callbacks API in favor of delegate, it's still going to be available and working for at least a year (most likely until iOS 14 release), but if you're going to still use it you'll see deprecation warnings:
// requesting intestitial - use [AdColony requestInterstitialInZone:options:andDelegate:] instead
[AdColony requestInterstitialInZone:/* Zone Id */ options:nil success:^(AdColonyInterstitial *ad) {
// ...
} failure:^(AdColonyAdRequestError * _Nonnull error) {
// ...
}];
// interstitial callbacks - see AdColonyInterstitialDelegate methods
[interstitial setOpen:^{ /* ... */ }]
[interstitial setClick:^{ /* ... */ }];
[interstitial setExpire:^{ /* ... */ }];
[interstitial setClose:^{ /* ... */ }];
[interstitial setLeftApplication:^{ /* ... */ }];
// intestitial audio callbacks - use open/close delegate calls instead
[interstitial setAudioStop:^{ /* ... */ }];
[interstitial setAudioStart:^{ /* ... */ }];
// native ads has been deprecated, API will always respond with no-fill
[AdColony requestNativeAdViewInZone:size:options:viewController:success:failure:];
// intestitial audio callbacks - use open/close calls instead
[interstitial setAudioStop:^{ /* ... */ }];
[interstitial setAudioStart:^{ /* ... */ }];
Made with ❤️ in Seattle