无法接收Google Mobile添加

sur*_*gid 5 iphone ios adview

我无法在我的应用中收到移动添加内容.

我的代码在这里: -

-(void) createMObAdds 
{
    bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];

     // Specify the ad unit ID.
     bannerView_.adUnitID = @"d81cb38a93cc479";
     bannerView_.rootViewController = self;
 [self.view addSubview:bannerView_];

 // Initiate a generic request to load it with an ad.
     [bannerView_ loadRequest:[GADRequest request]];
}

- (GADRequest *)request 
{
   GADRequest *request = [GADRequest request];
   request.testDevices = @[GAD_SIMULATOR_ID];
   [request setTesting:YES];
   return request;
}

- (void)adViewDidReceiveAd:(GADBannerView *)adView {
   NSLog(@"Received ad successfully");
}

- (void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestError *)error {
   NSLog(@"Failed to receive ad with error: %@", [error localizedFailureReason]);
}
Run Code Online (Sandbox Code Playgroud)

但我收到错误:请求错误:发生网络错误.请告诉我代码中的问题或我需要做什么?

Har*_*ala 0

请参阅下面的 Google 开发人员链接,该链接将逐步指导您

Google 开发人员 AdMob 指南

希望它对您有所帮助