- (GADInterstitial *)createAndLoadInterstitial {
if([self orientation] == 0) {
NSLog(@"potrait screen");
//do portrait work
} else {
//do landscape work
NSLog(@"Landscape");
}
GADInterstitial *admobInterstitial = [[GADInterstitial alloc] init];
admobInterstitial.adUnitID = @"ca-app-pub-4645525112946949/2328818911";
admobInterstitial.delegate = self;
[admobInterstitial loadRequest:[GADRequest request]];
//request.testDevices = @[ GAD_SIMULATOR_ID ];
NSLog(@"load gad");
return admobInterstitial;
}
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/Fz2QXQF5v70/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.