iphone Programming Glossary: mbannerview
Admob banner integration in Cocos2d 2.0 / Admob banner in iphone games http://stackoverflow.com/questions/14278166/admob-banner-integration-in-cocos2d-2-0-admob-banner-in-iphone-games #define BANNER_TYPE kBanner_Landscape_Bottom change this on need basis @interface MyMainMenu CCLayer GADBannerView mBannerView CocosBannerType mBannerType float on_x on_y off_x off_y @implementation MyMainMenu void onEnter super onEnter self createAdmobAds.. bottom of the screen. Available AdSize constants are explained in GADAdSize.h. if mBannerType kBanner_Portrait_Bottom mBannerView GADBannerView alloc initWithAdSize kGADAdSizeSmartBannerPortrait else mBannerView GADBannerView alloc initWithAdSize kGADAdSizeSmartBannerLandscape.. mBannerType kBanner_Portrait_Bottom mBannerView GADBannerView alloc initWithAdSize kGADAdSizeSmartBannerPortrait else mBannerView GADBannerView alloc initWithAdSize kGADAdSizeSmartBannerLandscape Specify the ad's unit identifier. This is your AdMob Publisher..
|