ALAdService Class Reference

Inherits from NSObject
Declared in ALAdService.h

Overview

This class is responsible for providing and displaying ads.

– loadNextAd:andNotify:

Fetch a new ad, of a given size, notifying a supplied delegate on completion.

- (void)loadNextAd:(ALAdSize *)adSize andNotify:(id<ALAdLoadDelegate>)delegate

Parameters

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>)delegate

Parameters

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

  bidToken

Generates a token used for advanced header bidding.

@property (nonatomic, copy, readonly) NSString *bidToken

Discussion

Generates a token used for advanced header bidding.

Declared In

ALAdService.h

– 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>)delegate

Parameters

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>)delegate

Parameters

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