Menu

CustomEvent Mapping

  • You need to use the following sample APIs to complete the mapping.
Copy
    NSMutableArray<NSDictionary>* assetArray = [NSMutableArray<NSDictionary> array];
    NSMutableDictionary *assetDic = [NSMutableDictionary dictionary];
    [assetDic setValue:xxx forKey:kATAdAssetsCustomEventKey];
    [assetDic setValue:xxx forKey:kATAdAssetsDelegateObjKey];
    [assetDic setValue:xxx forKey:kATAdAssetsCustomObjectKey];
    [assetDic setValue:xxx forKey:kATNativeADAssetsIsExpressAdKey];
    [assetArray addObject:assetDic];
    [self trackNativeAdLoaded:assetArray];

The field descriptions are as follows:

key required type description
kATAdAssetsCustomEventKey YES NSObject The object that receives ad delegate events after the ad is displayed
kATNativeADAssetsUnitIDKey NO NSString The ad placement ID of the third-party ad network
kATAdAssetsCustomObjectKey YES id The ad object (data) returned by the third-party platform
  • Additional keys that need to be mapped for Native Template Feed Ads:
key required type description
kATNativeADAssetsIsExpressAdKey YES BOOL The type of the native feed ad. Must be set for template ads.
kATNativeADAssetsNativeExpressAdViewWidthKey NO NSNumber The width of the template ad view
kATNativeADAssetsNativeExpressAdViewHeightKey NO NSNumber The height of the template ad view
  • Additional keys that need to be mapped for Native Self-Rendering Feed Ads. After mapping, the corresponding values can be obtained from the retrieved ad offer. If there is no value or it is not needed, it can be omitted, as follows:
key required type description
kATNativeADAssetsIsExpressAdKey NO BOOL The type of the native feed ad. Defaults to the self-rendering ad type.
kATNativeADAssetsMainTitleKey NO NSString The title of the ad
kATNativeADAssetsMainTextKey NO NSString The description of the ad
kATNativeADAssetsIconURLKey NO NSString The URL address of the ad's icon image
kATNativeADAssetsIconImageKey NO UIImage The ad's icon image
kATNativeADAssetsImageURLKey NO NSString The URL address of the ad's main image
kATNativeADAssetsMainImageKey NO UIImage The ad's main image
kATNativeADAssetsCTATextKey NO NSString The ad's CTA copy
kATNativeADAssetsRatingKey NO NSString The ad's rating score
kATNativeADAssetsAdvertiserKey NO NSString The ad's advertiser
kATNativeADAssetsContainsVideoFlag NO BOOL Whether it is a video ad
kATNativeADAssetsLogoURLKey NO NSString The URL address of the ad's logo image
kATNativeADAssetsLogoImageKey NO UIImage The ad's logo image
Previous
native advertising
Next
Custom advanced configuration
Last modified: 2026-07-09Powered by