1

有没有人将 mobclix 集成到 cocos2d 应用程序中?我尝试使用 Mobclix 添加广告横幅,但没有出现,我的代码:

//In appDelegate:
[Mobclix startWithApplicationId:@"4778FFA3-DDFF-4550-BFFE-7B7AB4B5765D"];
[Mobclix start]; 

//In my Scene
-(void)onEnter {

    adView = [MobclixAdViewiPhone_320x50 new];
    adView.delegate = self; //Optional

    // set position
   adView.frame = CGRectMake(10, 20, 320, 50);
   dView.refreshTime = 15;

    // add to view
   [[[CCDirector sharedDirector] openGLView] addSubview:adView];

   // set refresh (automatically gets one ad when changing the property)
   [adView getAd];

   [super onEnter];

请有人帮我在我的场景中显示 Adbanner 吗?

4

0 回答 0