0
我想在我的應用中添加Admob,編譯是正確的,但我看不到模擬器上的橫幅。 該應用程序適用於iPad橫向模式。 我將我的macbook的UUID添加到變量TEST_DEVICE_ID。無法在我的模擬器上看到橫幅
你能幫我嗎?
感謝
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(0.0,
self.view.frame.size.height -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
bannerView_.adUnitID = MY_BANNER_UNIT_ID;
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
[bannerView_ loadRequest:[GADRequest request]];
GADRequest *request = [GADRequest request];
request.testDevices = [NSArray arrayWithObjects:
GAD_SIMULATOR_ID,
@"TEST_DEVICE_ID",
nil];