You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
could it be that custom targeting doesn't work? I need to know if it is my problem or the library currently does not work with custom targeting with google ad manager
The text was updated successfully, but these errors were encountered:
After reviewing the native code, I could see that the targetOptions in android worked correctly, but not in iOS. This is because in the native iOS code the order was wrong, so what works for me is the following solution.
if ([allKeys containsObject:@"targets"]) {
NSArray *array = [targetingOptions objectForKey:@"targets"];
NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
for (NSDictionary *object in array) {
[dic setValue:[object valueForKey:@"value"] forKey:[object valueForKey:@"key"]];
}
[adRequest setCustomTargeting:dic];
}
could it be that custom targeting doesn't work? I need to know if it is my problem or the library currently does not work with custom targeting with google ad manager
The text was updated successfully, but these errors were encountered: