ALAdService Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | ALAdService.h |
Loading and Preloading Ads
– loadNextAd:andNotify:
Fetch a new ad, of a given size, notifying a supplied delegate on completion.
- (void)loadNextAd:(ALAdSize *)adSize andNotify:(id<ALAdLoadDelegate>)delegateParameters
adSize |
Size of an ad to load. Must not be nil. |
|---|---|
delegate |
A callback to notify of the fact that the ad is loaded. |
Discussion
Fetch a new ad, of a given size, notifying a supplied delegate on completion.
Declared In
ALAdService.h
– loadNextAdForZoneIdentifier:andNotify:
Fetch a new ad, for a given zone, notifying a supplied delegate on completion.
- (void)loadNextAdForZoneIdentifier:(NSString *)zoneIdentifier andNotify:(id<ALAdLoadDelegate>)delegateParameters
zoneIdentifier |
The identifier of the zone to load an ad for. Must not be nil. |
|---|---|
delegate |
A callback to notify of the fact that the ad is loaded. |
Discussion
Fetch a new ad, for a given zone, notifying a supplied delegate on completion.
Declared In
ALAdService.h
Observing Ad Rotations
– addAdUpdateObserver:ofSize:
Add an observer of updates of advertisements of a given size.
- (void)addAdUpdateObserver:(id<ALAdUpdateObserver>)adListener ofSize:(ALAdSize *)adSizeParameters
adListener |
Listener to add |
|---|---|
adSize |
Size of ads that the listener is interested in |
Discussion
Add an observer of updates of advertisements of a given size.
Declared In
ALAdService.h
– removeAdUpdateObserver:ofSize:
Remove an observer of updates of advertisements of a given size.
- (void)removeAdUpdateObserver:(id<ALAdUpdateObserver>)adListener ofSize:(ALAdSize *)adSizeParameters
adListener |
Listener to modify |
|---|---|
adSize |
Size of ads that the listener should no longer receive notifications about |
Discussion
Remove an observer of updates of advertisements of a given size.
Declared In
ALAdService.h
ALMultizoneSupport Methods
– loadNextAdForAdToken:andNotify:
Fetch a new ad for the given ad token. Provided ad token must be received from AppLovin S2S API.
- (void)loadNextAdForAdToken:(NSString *)adToken andNotify:(id<ALAdLoadDelegate>)delegateParameters
adToken |
Ad token returned from AppLovin S2S API. Must not be nil. |
|---|---|
delegate |
A callback to notify that the ad has been loaded. Must not be nil. |
Discussion
Fetch a new ad for the given ad token. Provided ad token must be received from AppLovin S2S API.
Please note: this method is designed to be called by SDK mediation providers. Please use
loadNextAdForZoneIdentifier:andNotify: for regular integrations.
Declared In
ALAdService.h
– loadNextAdForZoneIdentifiers:andNotify:
Fetch a new ad for any of the provided zone identifiers.
- (void)loadNextAdForZoneIdentifiers:(NSArray<NSString*> *)zoneIdentifiers andNotify:(id<ALAdLoadDelegate>)delegateParameters
zoneIdentifiers |
An array of zone identifiers for which an ad should be loaded. Must not be nil. |
|---|---|
delegate |
A callback to notify that the ad has been loaded. Must not be nil. |
Discussion
Fetch a new ad for any of the provided zone identifiers.
Please note: this method is designed to be called by SDK mediation providers. Please use
loadNextAdForZoneIdentifier:andNotify: for regular integrations.
Declared In
ALAdService.h