iOS SDK / AdMob / AdColony mediation adapter

时间:2016-02-12 20:07:57

标签: ios admob adcolony

I´m using AdMob as the main ad network. Now i want to include "some" mediation adapters. One of them is "AdColony" which is video based. It works fine, but i want to do some improvements as i don´t want to show a video clip of 30 seconds every time. I can´t find a way to solve it. Maybe someone can help me on this. The structure is like this:

1) I have a quiz app - on every "level" a view will be loaded.

2) When the view is loaded, the ad network will be loaded like this

-(void)viewDidLoad {
        self.interstitial = [self createAndLoadInterstitial];
}

- (GADInterstitial *)createAndLoadInterstitial {

    GADInterstitial *interstitial = [[GADInterstitial alloc] initWithAdUnitID:kSampleAdUnitID];

    interstitial.delegate = self;

    GADRequest *request = [GADRequest request];

    [interstitial loadRequest:request];

    return interstitial;

}

3) An ad will be loaded

4) The ad will be shown as soon as the level is done.

- (IBAction)showInterstitial:(id)sender {     
    if (self.interstitial.isReady) {
            [self.interstitial presentFromRootViewController:self];
    } else {

        NSLog(@"ADMOB - The interstitial didn't finish loading or failed to load");
 }  
}

5) When the level is done, the view will be unloaded and everything starts from the beginning.

The problem is, that everytime the AdColony adapter will be loaded. My idea is to load the AdColony adapter every 5-10 times and the other times, the admob or other adapter will be called. I tried to add it in the backend of AdColony, but without any luck. Can somehelp me on this?

PS. Can anyone recommend another adwork which works with AdMob ans is easy to integrate?

1 个答案:

答案 0 :(得分:0)

AdColony仪表板系统中有一些设置可以解决您提到的问题。

要限制显示的视频长度,您需要与AdColony支持人员一起设置,因为它是网络管理员设置。请发送电子邮件至support@adcolony.com与我们联系。

要让我们的SDK在每X个要播放的请求中显示一个视频,请在仪表板上进入应用的区域设置,然后在“播放频率”选项中输入所需的频率。请注意,这仅适用于插页式广告区域。