Menu

ATNativeADCustomEvent

Copy
@interface ATNativeADCustomEvent : ATAdCustomEvent

/// Callback to the developer when ad loading is complete
/// @param assets - Native ad assets
- (void)trackNativeAdLoaded:(NSArray *)assets;

/// Callback to the developer when ad loading fails
/// @param error - Error information
- (void)trackNativeAdLoadFailed:(NSError *)error;

- (void)didAttachMediaView;
- (void)invalidateUsedAdInfo;
- (void)willDetachOffer:(ATNativeADCache *)offer fromAdView:(ATNativeADView *)adView;

/// Callback to the developer when the ad is displayed
/// @param refresh - Whether the display was triggered by an ad refresh
- (void)trackNativeAdShow:(BOOL)refresh;

/// Callback to the developer when the ad is clicked
- (void)trackNativeAdClick;

- (void)trackNativeAdVideoStart;
- (void)trackNativeAdVideoEnd;

/// Callback to the developer when the ad is closed
- (void)trackNativeAdClosed;

- (void)trackNativeAdImpression;
- (void)trackNativeAdDeeplinkOrJumpResult:(BOOL)success);

// v5.7.47
- (void)trackNativeAdCloseDetail;

/// If YES is returned, the "impression" tracking point will be sent simultaneously when the "show" tracking point is sent. Otherwise, it will not be sent. Applies similarly to Banner Ads (ATBannerCustomEvent.h).
- (BOOL)sendImpressionTrackingIfNeed;

/// Only applicable to adx, onlineApi, myoffer, directOffer
- (NSTimeInterval)getNativeAdViewMonitoringShowTime;

- (BOOL)isAutoClickdSwitch;
- (CGFloat)popupReminderDuration;
- (CGFloat)autoClickdDuration;
- (id)getCustomOfferModel;
- (id)getCustomOfferSetting;

- (BOOL)isAllowMraidWebPreLoad;
- (BOOL)isMraidAd;
- (NSString *)getNativeAdViewOfferIdentifier;
- (void)sendMraidAdRenderSuccessEvent;

- (NSDictionary *)delegateExtra;
- (NSMutableDictionary *)delegateExtraWithNativeAD:(ATNativeADCache *)cache;
- (instancetype)initWithInfo:(NSDictionary *)serverInfo
                   localInfo:(NSDictionary *)localInfo;

- (ATNativeADSourceType)sourceType;

@property (atomic, copy) void(^requestCompletionBlock)(NSArray<NSDictionary *> * _Nullable assets, NSError * _Nullable error);
@property (nonatomic, weak) ATNativeADView *adView;
@property (nonatomic) NSInteger requestNumber;
/**
 * Regardless of failure or success, the request is considered complete.
 */
@property(nonatomic) NSInteger numberOfFinishedRequests;
@property(nonatomic, readonly) NSMutableArray<NSDictionary *>* assets;

@end
Previous
ATNativeADConfiguration
Next
ATNativeAdOffer
Last modified: 2026-07-08Powered by