我收到以下代码中的广告。 当广告是 Google Sense 时,我在广告上收到一个蓝色边框。 1)我无法将边框类型更改为无(这对我来说很重要)。 2) 此外,我无法在属性 request.additionalParameters 的 UIViewController 中的以下代码中更改广告的颜色 我在 AdMob 的应用程序设置中设置为使用客户端颜色
信息: 带有 Objective-C 的 IOS 的 xcode 4.2 ADMob SDK 5.5
代码:
GADBannerView *banner;
banner =[[GADBannerView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)];
banner = [[GADBannerView alloc]
initWithFrame:CGRectMake(0.0,
self.view.frame.size.height -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
banner.adUnitID = MY_BANNER_UNIT_ID;
banner.rootViewController = self;
[self.view addSubview:banner];
GADRequest *request = [GADRequest request];
request.additionalParameters = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"FFFF00", @"color_bg",
@"008000", @"color_bg_top",
@"FF00FF", @"color_border",
@"FF0000", @"color_link",
@"808080", @"color_text",
@"00FF00", @"color_url",
nil];
[banner loadRequest:request];
最佳答案
这看起来像是 AdMob 方面的后端问题。在他们修复之前,现在似乎没有解决方法。不过,这个问题只发生在我的 AdSense 回填广告上。
关于objective-c - 无法删除 AdMob 谷歌感知广告中的边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9177387/