AdMob插页式广告未在模拟器中显示

时间:2014-06-21 12:52:30

标签: ios objective-c admob

这是我的代码,用于在日志记录中显示插页式广告"要在此设备上投放测试广告,请致电:request.testDevices = @[ Simulator ];

[super viewDidLoad];

[interstitial_ presentFromRootViewController:self];

interstitial_ = [[GADInterstitial alloc] init];

interstitial_.adUnitID = @"MY_ID";

[interstitial_ loadRequest:[GADRequest request]];



GADRequest *request = [GADRequest request];

request.testDevices = [NSArray arrayWithObject:@[GAD_SIMULATOR_ID]];

[interstitial_ loadRequest:request];

0 个答案:

没有答案