-
- - (void)cancelBannerViewAction {
- NSLog(@"Banner was cancelled!");
-
- self.adStatus.text = @"[iAd]: Bannes was closed.";
- }
-
-
-
- - (void)bannerViewDidLoadAd:(ADBannerView *)banner {
- NSLog(@"[iAd]: Ad did load.");
- self.adStatus.text = @"[iAd]: Ad did load.";
- }
-
-
- - (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave {
- NSLog(@"[iAd]: An action was started from the banner. Application will quit: %d", willLeave);
-
- self.adStatus.text =[NSString stringWithFormat: @"[iAd]: An action was started from the banner. Application will quit: %d", willLeave];
-
- return YES;
- }
-
- - (void)bannerViewActionDidFinish:(ADBannerView *)banner {
- NSLog(@"[iAd]: Action finished.");
-
- self.adStatus.text = @"[iAd]: Action finished.";
- }
-
- - (void)bannerView:(ADBannerView *) didFailToReceiveAdWithError:(NSError *)error {
- NSLog(@"[iAd]: Faild to load the banner: %@", error);
-
- self.adStatus.text = [NSString stringWithFormat:@"[iAd]: Faild to load the banner: %@", error];
- }
posted @
2014-03-08 01:40
努力努力再努力吧
阅读(
328)
评论()
编辑
收藏
举报