ALNativeAdService Class Reference

Inherits from NSObject
Declared in ALNativeAdService.h

– loadNativeAdGroupOfCount:andNotify:

Load a batch of native ads, which are guaranteed not to repeat, asynchronously.

- (void)loadNativeAdGroupOfCount:(NSUInteger)numberOfAdsToLoad andNotify:(alnullable id<ALNativeAdLoadDelegate>)delegate

Parameters

numberOfAdsToLoad

The number of native ads to load.

delegate

The native ad load delegate to notify upon completion.

Discussion

Load a batch of native ads, which are guaranteed not to repeat, asynchronously.

Declared In

ALNativeAdService.h

– loadNativeAdGroupOfCount:forZoneIdentifier:andNotify:

Load a batch of native ads, which are guaranteed not to repeat, asynchronously.

- (void)loadNativeAdGroupOfCount:(NSUInteger)numberOfAdsToLoad forZoneIdentifier:(alnullable NSString *)zoneIdentifier andNotify:(alnullable id<ALNativeAdLoadDelegate>)delegate

Parameters

numberOfAdsToLoad

The number of native ads to load.

zoneIdentifier

The identifier of the zone to load the native ads for.

delegate

The native ad load delegate to notify upon completion.

Discussion

Load a batch of native ads, which are guaranteed not to repeat, asynchronously.

Declared In

ALNativeAdService.h

– precacheResourcesForNativeAd:andNotify:

Pre-cache image and video resources of a native ad.

- (void)precacheResourcesForNativeAd:(ALNativeAd *)ad andNotify:(alnullable id<ALNativeAdPrecacheDelegate>)delegate

Parameters

ad

The native ad whose resources should be cached.

delegate

The delegate to be notified upon completion.

Discussion

Pre-cache image and video resources of a native ad.

Declared In

ALNativeAdService.h