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
title
The title of the native ad.
@property (copy, nonatomic, readonly) NSString *title
Discussion
The title of the native ad.
Declared In
ALNativeAd.h
descriptionText
The description of the native ad.
@property (copy, nonatomic, readonly) 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) 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) NSString *ctaText
Discussion
The CTA text of the native ad.
Declared In
ALNativeAd.h
iconURL
The app icon URL of the native ad.
@property (copy, nonatomic, readonly) 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 (copy, nonatomic, readonly) NSURL *imageURL
Discussion
The ad image URL for a non-video native ad.
Declared In
ALNativeAd.h
starRating
The star rating image URL of the native ad. Please use floatValue when extracting value from the NSNumber
@property (strong, nonatomic, readonly) NSNumber *starRating
Discussion
The star rating image URL 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 (copy, nonatomic, readonly) 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
impressionTrackingURL
The impression tracking URL of the native ad.
@property (copy, nonatomic, readonly) NSURL *impressionTrackingURL
Discussion
The impression tracking URL of the native ad.
Declared In
ALNativeAd.h
)
The click URL the native ad redirects to.
@property (copy, nonatomic, readonly) NSURL *clickURL __deprecated_msg ( "Invoke method -launchClickTarget rather than opening this URL yourself." )
Discussion
The click URL the native ad redirects to.
Declared In
ALNativeAd.h
videoStartTrackingURL
The video begin tracking URL of the native ad.
@property (copy, nonatomic, readonly) 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.
- (alnullable 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 slot’s images.
@property (assign, atomic, readonly, getter=isImagePrecached) BOOL imagePrecached
Discussion
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 videoPrecached
Discussion
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)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