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 |
| 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 |
| 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 |