Show Menu

Implement standard ad metadata on iOS

Ad constants

Constant name
Constant for attaching standard ad metadata on AdInfo ADBMediaObject

Implemement standard ad metadata

For standard ad metadata, create a dictionary of standard ad metadata key value pairs using the keys for your platform:
// 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];