Hi everyone,
I try to display Admob ads on Cocos2d-x, It works good on Android, but no luck on Iphone.
I follow some tutorials and on RootViewController.mm I implement viewDidLoad method like this
`- (void)viewDidLoad {
[super viewDidLoad];
// Create a view of the standard size at the top 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 = `“MY\_APP\_ID”;
// 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]];
}@
Method viewDidLoad seem to be not called.
Could you please help me make ads display on Iphone?
Thanks,
anngdo