-(void)resetAdView:(UIViewController *)rootViewController {
currentDelegate_ = rootViewController;
if (ADloads) {
[rootViewController.view addSubview:adBanner_];
adBanner_.delegate = self;
adBanner_.rootViewController = rootViewController;
adBanner_.adUnitID = @"Unit-ID";
GADRequest *request = [GADRequest request];
[adBanner_ loadRequest:request];
ADloads = YES;
request.testDevices= @[ GAD_SIMULATOR_ID ];
} else {
adBanner_.delegate = self;
adBanner_.rootViewController = rootViewController;
adBanner_.adUnitID = @"Unit-ID";
GADRequest *request = [GADRequest request];
[adBanner_ loadRequest:request];
[rootViewController.view addSubview:adBanner_];
ADloads = YES;
request.testDevices= @[ GAD_SIMULATOR_ID ];
}
}
Can't understand why AdMob only sends real ads and not the test ads like i'm requesting. What's wrong with the code that it only sends real ads?
Aucun commentaire:
Enregistrer un commentaire