在 iOS 中实施标准广告元数据

广告常量

常量名称 描述
ADBMediaObjectKeyStandardAdMetadata 用于将标准广告元数据附加到 AdInfo ADBMediaObject 的常量

实施标准广告元数据

对于标准广告元数据,请使用适用于您的平台的键创建标准广告元数据键值对的字典:

// Sample implementation for using standard metadata keys for Ad 
NSMutableDictionary *standardAdMetadata = [[NSMutableDictionary alloc] init]; 
[standardAdMetadata setObject:@"Sample Advertiser" forKey:ADBAdMetadataKeyADVERTISER]; 
[standardAdMetadata setObject:@"Sample Campaign" forKey:ADBAdMetadataKeyCAMPAIGN_ID]; 
 
[adObject setValue:standardAdMetadata forKey:ADBMediaObjectKeyStandardAdMetadata];

iOS 元数据键

On this page

Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now