1. Admob content mapping instructions
With app content mapping, you can serve contextually relevant ads to users and ensure that ads are placed near content that is appropriate for your advertiser. For more information, please refer to the Admob reference documentation
By default, only 1 URL can be passed. By applying to admob, you can support up to 4 content URLs (multi-content url).
- Supported ad types: All ad styles
- Supported version: v6.2.65
2. Sample Code
2.1 Add content mapping URL
// Support 1-4 URL
NSMutableDictionary *mutableDict = [NSMutableDictionary dictionary];
mutableDict[kATAdLoadingExtraAdmobContentURLStringsKey] = @[@"https://www.example1.com", @"https://www.example2.com"];
[[ATAdManager sharedManager] loadADWithPlacementID:@"Your placement ID" extra:mutableDict delegate:self containerView:nil];
Note: The content mapping URL you enter will always be valid. You do not need to enter the same URL every time you request. If you need to change it, just enter the new content again.
2.2 Cancel content mapping URL
You need to pass in parameters each time to make it effective. If you do not pass them, it means that content mapping will not be used.