本文介绍了为了得到这个设备上测试广告,请致电:request.testDevices = [NSArray的arrayWithObjects:GAD_SIMULATOR_ID,无]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
虽然我在模拟器测试Admob的,它抛出下面的错误
While i test Admob in simulator, it throws below error
要得到这个设备上测试广告,请致电:request.testDevices = [NSArray的arrayWithObjects:GAD_SIMULATOR_ID,零];
我的code
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
bannerView_.adUnitID = @"8de66ecc3525495d";
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
GADRequest *request = [[GADRequest alloc] init];
request.testing = YES;
[bannerView_ loadRequest:request];
指引我到存档。在此先感谢。
Guide me to archive it. Thanks in Advance..
推荐答案
目前终于修复bug的朋友。
At finally fix the bug friends..
我犯的错误,产生的 adUnitID 。因此,只有我无法得到的广告图。
I made mistake to generate adUnitID. So only i cannot get ad view.
现在得到一个 adUnitID 从XXXX的网站进行测试。而其工作的罚款。
Now get one adUnitID from xxxx site for testing. And its working fine..
adUnitID = @"a14dccd0fb24d45";
感谢所有的支持者。
Thanks for All Supporters.
这篇关于为了得到这个设备上测试广告,请致电:request.testDevices = [NSArray的arrayWithObjects:GAD_SIMULATOR_ID,无]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!