ALNativeAd Class Reference

Inherits from NSObject
Declared in ALNativeAd.h

  adIdNumber

A unique ID which identifies this advertisement.

@property (strong, nonatomic, readonly) NSNumber *adIdNumber

Discussion

A unique ID which identifies this advertisement.

Should you need to report a broken ad to AppLovin support, please include this number’s longValue.

Declared In

ALNativeAd.h

  zoneIdentifier

The zone identifier for the ad, if any.

@property (copy, nonatomic, readonly, nullable) NSString *zoneIdentifier

Discussion

The zone identifier for the ad, if any.

Declared In

ALNativeAd.h

  title

The title of the native ad.

@property (copy, nonatomic, readonly, nullable) NSString *title

Discussion

The title of the native ad.

Declared In

ALNativeAd.h

  descriptionText

The description of the native ad.

@property (copy, nonatomic, readonly, nullable) NSString *descriptionText

Discussion

The description of the native ad.

Declared In

ALNativeAd.h

  captionText

The caption text of the native ad.

@property (copy, nonatomic, readonly, nullable) NSString *captionText

Discussion

The caption text of the native ad.

Declared In

ALNativeAd.h

  ctaText

The CTA text of the native ad.

@property (copy, nonatomic, readonly, nullable) NSString *ctaText

Discussion

The CTA text of the native ad.

Declared In

ALNativeAd.h

  iconURL

The app icon URL of the native ad.

@property (strong, nonatomic, readonly, nullable) NSURL *iconURL

Discussion

The app icon URL of the native ad.

Declared In

ALNativeAd.h

  imageURL

The ad image URL for a non-video native ad.

@property (strong, nonatomic, readonly, nullable) NSURL *imageURL

Discussion

The ad image URL for a non-video native ad.

Declared In

ALNativeAd.h

  starRating

The star rating of the native ad. Please use floatValue when extracting value from the NSNumber

@property (strong, nonatomic, readonly, nullable) NSNumber *starRating

Discussion

The star rating of the native ad. Please use floatValue when extracting value from the NSNumber

Declared In

ALNativeAd.h

  videoURL

The video URL for a video native ad.

@property (strong, nonatomic, readonly, nullable) NSURL *videoURL

Discussion

The video URL for a video native ad.

Note that if this native ad does not contain a video, this property will be nil.

Declared In

ALNativeAd.h

– trackImpression

Fires the impression asynchronously.

- (void)trackImpression

Discussion

Fires the impression asynchronously.

Declared In

ALNativeAd.h

– trackImpressionAndNotify:

Fires the impression asynchronously and notifies the provided delegate.

- (void)trackImpressionAndNotify:(nullable id<ALPostbackDelegate>)postbackDelegate

Discussion

Fires the impression asynchronously and notifies the provided delegate.

Declared In

ALNativeAd.h

  videoStartTrackingURL

The video begin tracking URL of the native ad.

@property (strong, nonatomic, readonly, nullable) NSURL *videoStartTrackingURL

Discussion

The video begin tracking URL of the native ad.

Note that if this native ad does not contain a video, this property will be nil.

Declared In

ALNativeAd.h

– videoEndTrackingURL:firstPlay:

Retrieve the URL which should be fired upon video completion.

- (nullable NSURL *)videoEndTrackingURL:(NSUInteger)percentViewed firstPlay:(BOOL)firstPlay

Parameters

percentViewed

The percentage of the video (0 - 100) that was viewed by the user.

firstPlay

Whether or not this postback represents initial playback of the video. The first time you begin playback, you should pass true. If the video is paused for any reason and then later resumed mid-playback, you should fire this postback a second time, passing false to firstPlay.

Discussion

Retrieve the URL which should be fired upon video completion.

Declared In

ALNativeAd.h

  imagePrecached

Represents the precaching states of the ad’s images.

@property (assign, atomic, readonly, getter=isImagePrecached) BOOL imagePrecached

Discussion

Represents the precaching states of the ad’s images.

Declared In

ALNativeAd.h

  videoPrecached

Represents the precaching state of the ad’s video.

@property (assign, atomic, readonly, getter=isVideoPrecached) BOOL videoPrecached

Discussion

Represents the precaching state of the ad’s video.

Note that if this native ad does not contain a video, this property will always be NO.

Declared In

ALNativeAd.h

– launchClickTarget

Handle a click on this native ad by launching the ad’s destination.

- (void)launchClickTarget

Discussion

Handle a click on this native ad by launching the ad’s destination.

You should call this method anytime the user taps anywhere on your native ad. Calling this method launches Safari or the App Store and will result in your app being paused.

Declared In

ALNativeAd.h