Hi,
I used AdWhirl successfully working. Now that AdMob guys tell us that we must call directly to AdMob and integrate his solution and not using AdWhirl, I'm trying this.
Anyone has succedeed in integrating AdMob with cocos2d?
I have an issue in the app deletage. In the didReceiveAd method I have this:
NSLog(@"AdMob: Did receive ad");
// get the view frame
CGSize winsize = [[Director sharedDirector] winSize];
CGRect frame = CGRectMake (0,0,winsize.width,winsize.height);
// put the ad at the bottom of the screen
adMobAd.frame = CGRectMake(0, frame.size.height - 48, frame.size.width, 48);
[[[Director sharedDirector] openGLView] addSubview:adMobAd];`
I got compilig errors in:
adMobAd.frame (request from member frame is somethign not an structure or union)
[[[Director sharedDirector] openGLView] addSubview:adMobAd];`
A warning saying: passing argument 1 of addsubview from distinct Objective-C type
Any tip? Thanks