Open JoaquinManeroJazusoft opened 2 weeks ago
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