ALNativeAd Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | ALNativeAd.h |
adIdNumber
A unique ID which identifies this advertisement.
@property (strong, nonatomic, readonly) NSNumber *adIdNumberDiscussion
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, alnullable) NSString *zoneIdentifierDiscussion
The zone identifier for the ad, if any.
Declared In
ALNativeAd.h
title
The title of the native ad.
@property (copy, nonatomic, readonly, alnullable) NSString *titleDiscussion
The title of the native ad.
Declared In
ALNativeAd.h
descriptionText
The description of the native ad.
@property (copy, nonatomic, readonly, alnullable) NSString *descriptionTextDiscussion
The description of the native ad.
Declared In
ALNativeAd.h
captionText
The caption text of the native ad.
@property (copy, nonatomic, readonly, alnullable) NSString *captionTextDiscussion
The caption text of the native ad.
Declared In
ALNativeAd.h
ctaText
The CTA text of the native ad.
@property (copy, nonatomic, readonly, alnullable) NSString *ctaTextDiscussion
The CTA text of the native ad.
Declared In
ALNativeAd.h
iconURL
The app icon URL of the native ad.
@property (strong, nonatomic, readonly, alnullable) NSURL *iconURLDiscussion
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, alnullable) NSURL *imageURLDiscussion
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, alnullable) NSNumber *starRatingDiscussion
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, alnullable) NSURL *videoURLDiscussion
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)trackImpressionDiscussion
Fires the impression asynchronously.
Declared In
ALNativeAd.h
– trackImpressionAndNotify:
Fires the impression asynchronously and notifies the provided delegate.
- (void)trackImpressionAndNotify:(alnullable id<ALPostbackDelegate>)postbackDelegateDiscussion
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, alnullable) NSURL *videoStartTrackingURLDiscussion
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.
- (alnullable NSURL *)videoEndTrackingURL:(NSUInteger)percentViewed firstPlay:(BOOL)firstPlayParameters
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 slot’s images.
@property (assign, atomic, readonly, getter=isImagePrecached) BOOL imagePrecachedDiscussion
Represents the precaching states of the slot’s images.
Declared In
ALNativeAd.h
videoPrecached
Represents the precaching state of the slot’s video.
@property (assign, atomic, readonly, getter=isVideoPrecached) BOOL videoPrecachedDiscussion
Represents the precaching state of the slot’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)launchClickTargetDiscussion
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