Applovin Interstitials不会每次都出现,只是谨慎

时间:2014-07-29 06:04:59

标签: ios ads advertisement chartboost applovin

所以我在我的应用程序中设置了Applovin SDK,Applovin广告只是节俭起来。安装了Applovin的所有其他应用都会相应地展示广告。有人听说过这种错误吗?

以下是我在Appdelegate中的内容:

 [ALSdk initializeSdk];

     Chartboost *cb = [Chartboost sharedChartboost];
    cb.appId = @"TAKEN OUT";
    cb.appSignature = @"TAKEN OUT";
    // Required for use of delegate methods. See "Advanced Topics" section below.
    cb.delegate = self;
    [cb startSession];
    [cb cacheMoreApps];
    [cb showInterstitial];

//AppLovin Interstitial Ad

    if (self.theTimer == nil)
    {
       self.theTimer = [NSTimer scheduledTimerWithTimeInterval:1000 target:self selector:@selector(countdownTracker) userInfo:nil repeats:YES];//Repeat to yes
    }


}
-(void)didCloseInterstitial:(NSString *)location
{
    [ALInterstitialAd showOver:self.window];

    NSString *savedValue = [[NSUserDefaults standardUserDefaults]
                            stringForKey:@"preferenceName"];

    if ([savedValue isEqualToString:@"yes"]) {

    }

    NSString *valueToSave = @"yes";
    [[NSUserDefaults standardUserDefaults] setObject:valueToSave forKey:@"preferenceName"];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
- (void)stopTimer
{
    if (self.theTimer != nil)
    {
        [self.theTimer invalidate];
        self.theTimer = nil;
    }
}

0 个答案:

没有答案