Я использую следующий код в своем приложении ( viewDidLoad
метод), чтобы показать объявления AdMob:
// Create a view of the standard size at the bottom of the screen.
// Available AdSize constants are explained in GADAdSize.h.
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"ABC";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
// Initiate a generic request to load it with an ad.
[bannerView_ loadRequest:[GADRequest request]];
Если я использую тот код в другом приложении, или в табличном представлении этого приложения (корень рассматривают диспетчера), показы объявления хорошо. Используя его в моем UIWebView
и ничего не происходит.
Кто-либо может предложить то, чем проблема могла бы быть, пожалуйста?