Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Outdated APIs

Sebastian Markowski edited this page Mar 10, 2022 · 8 revisions

Outdated Symbols and APIs

4.8.0

Deprecated

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

4.7.0

Removed

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

4.5.0

Deprecated

Synchronous collecSignals for OpenRTB in favour of asynchronous one.

+ (NSString *)collectSignals;

4.3.0

AdColonyNativeAdView

@interface AdColonyNativeAdView : UIView
/* ... */
@end

Zone type for native ads (in AdColonyZoneType enum)

AdColonyZoneTypeNative

4.2.0

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 = @"...";

4.1.5

Deprecated

Deprecated property in the AdColonyAppOptions class used to set desired ad orientation.

@property (nonatomic, assign) AdColonyOrientation adOrientation;

4.0.0

Deprecated

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:^{ /* ... */ }];

3.3.6

Deprecated

// 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:^{ /* ... */ }];