0

所以我在我的应用程序中设置了 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;
    }
}
4

0 回答 0