全屏IAd未关闭

时间:2014-10-21 07:23:07

标签: ios fullscreen iad

我正在实施IAd并且它会成功显示但是当我关闭广告时它正在关闭但是消息显示为"您已连接到iAd" 我该如何关闭此消息 我的代码在这里

-(void)showFullScreenAd {
    if (_requestingAd == NO) {
        _interstitial = [[ADInterstitialAd alloc] init];
        _interstitial.delegate = self;
        self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
        NSLog(@"Ad Request");
        _requestingAd = YES;
    }

}




-(void)interstitialAd:(ADInterstitialAd *)interstitialAd didFailWithError:(NSError *)error {
    _interstitial = nil;
    _requestingAd = NO;
    NSLog(@"Ad didFailWithERROR");
    NSLog(@"%@", error);
}

-(void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd {
    NSLog(@"Ad DidLOAD");
    if (interstitialAd != nil && _interstitial != nil && _requestingAd == YES) {
        [_interstitial presentInView:self.view];
        _requestingAd = NO;
    }
}

/*-(void)interstitialAdDidUnload:(ADInterstitialAd *)interstitialAd {
 _interstitial = nil;
 _requestingAd = NO;
 NSLog(@"Ad DidUNLOAD");
 }
 */
-(void)interstitialAdActionDidFinish:(ADInterstitialAd *)interstitialAd {
    _interstitial = nil;
    _requestingAd = NO;
    NSLog(@"Ad DidFINISH");
}

0 个答案:

没有答案