FAQ Database Discussion Community


Admob interstitial ad delegate

ios,swift,admob,interstitial
I am trying to assign a delegate to admob interstitial ad so i can handle ad events. The GADInterstitialDelegate implementing class: class AdDelegate: NSObject, GADInterstitialDelegate { //Interstitial delegate func interstitial(ad: GADInterstitial!, didFailToReceiveAdWithError error: GADRequestError!) { println("interstitialDidFailToReceiveAdWithError:\(error.localizedDescription)") } func interstitialDidReceiveAd(ad: GADInterstitial!) { println("interstitialDidReceiveAd") } func interstitialWillDismissScreen(ad: GADInterstitial!) {...

Android error on interstitial loadAd

android,admob,interstitial
I am trying to implement support for Interstitial Ads in my android app, which I'm hoping to publish soon. I am encountering two problems for which I'm hoping someone might have some insight. I have followed the most current instructions I could find from Google. Firstly, I was wondering if...

How to change the frequency of interstitial ads

android,admob,ads,interstitial
Currently, my home page has 10 buttons and each button has an interstitial attached. if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } else { Intent intent = new Intent(this, magic.class); startActivity(intent); } Loading an interstitial for each new intent is a little bit overboard though. How can I manipulate the interstitials to load...

GADInterstitial presentFromRootViewController causes current View Controller to close

ios,uiviewcontroller,admob,interstitial
I'm attempting to show a GADInterstitial ad when a user of my app clicks a certain button to go to a certain ViewController. In the new ViewController's viewDidLoad method I check to see if the GADInterstitial ad is ready, and if it is I attempt to present it. The problem...

iAD Interstial after webView did finish load

ipad,ios8,iad,interstitial
I want if I open the App on iPad after webViewdidFinishLoad the first interstitial. Only one. - (void)viewWillAppear:(BOOL)animated { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { [self cycleInterstitial]; [self performSelector:@selector(presentInterlude) withObject:nil afterDelay:300]; } } - (void)cycleInterstitial{ // Clean up the old interstitial... interstitial.delegate = nil; // and create a new interstitial. We...

Is it possible to mediate Interstitial ads using AdMob?

android,admob,interstitial
I have set up an AdMob mediation in my android app, it's working fine, but I also want AdMob to mediate interstitial ads from the other providers. I was unable to find any help or documentation on that, so I am asking here. This is the code I have for...

How set not Ad walls Interstitial ads?

android,admob,adsense,interstitial
I want make app for children in Designed for Families category of Google Play. According to this: https://support.google.com/googleplay/android-developer/answer/6184502 there are two rules: Ad walls must not be used Interstitial ads must not display immediately upon app launch Would you please explain how make Interstitial ads not full full screen (not...

How to load interstitial after click, but before new intent?

android,android-intent,admob,interstitial
My main page has about 10 buttons and each button loads a new intent. @Override public void onClick(View v) { // TODO Auto-generated method stub if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } switch(v.getId()) { case R.id.troop_button: gotoTroopScreen(); break; } } public void gotoTroopScreen() { Intent intent = new Intent(this, troop.class); startActivity(intent); }...

Admob Interstitial show before game start

android,interstitial
I want to add an interstitial ad on my game just before the game starts. When you run the app, you have 3 diferent game modes so when you select one, the game starts on that mode. The idea is to show the interstitial after you press the button, just...

Admob Interstitial ad not linking to app store when clicked

javascript,ios,cordova,admob,interstitial
I have an app developed for iOS using Phonegap cordova and Admob (via javascript) integrated into it. Both the banner and interstitial ads display well, banner ads links to the app store when clicked but all Interstitial ad displayed does not link to the app store. Sometimes it just hangs...

Interstitial don't appear.

ios,objective-c,interstitial
I use this code for add interstitial: - (void)applicationDidBecomeActive:(UIApplication *)application { GADRequest *request = [GADRequest request]; request.testDevices = [NSArray arrayWithObjects: GAD_SIMULATOR_ID, nil]; gadinter = [[GADInterstitial alloc] init]; gadinter.delegate = self; gadinter.adUnitID = @"ca-app-pub-8360827428091030/4165686904"; [gadinter loadRequest:request]; } - (void)interstitialDidReceiveAd:(GADInterstitial *)interstitial { [gadinter presentFromRootViewController:self.window.rootViewController]; } and i'm getting...

How to call admob interstitial ad using swift, spritekit and xcode?

ios,xcode,swift,admob,interstitial
I've been looking all over for an answer to this and I've found lots of examples in objective C (google developer docs, etc.) and some answers in swift, but not using spritekit, and being a novice, I just haven't been able to bridge the gaps in these tutorials to put...

AdMob interstitial not being shown when switching activity (Android)

android,android-intent,admob,interstitial
I am currently including AdMob into some of my apps but am facing an issue. I try to display an interstitial when changing the activity as this would be the place where it wouldn't annoy users. My initial understanding was, that displaying the Ad would put the activity into pause...

Cocos2d on iOS: EXC_BAD_ACCESS in CCGraphicsBufferGLUnsynchronized when leaving app after ad

ios,cocos2d-iphone,crash,interstitial
I have integrated the SKD of UnityAds into my game to show full screen interstitial video ads. When the video is finished, a link to the AppStore is provided by the ad framework. When I select this link, the AppStore is opened. My app crashes in this moment, throwing EXC_BAD_ACCESS...

Pause Admob Interstitial on certain iOS activity

ios,admob,interstitial
I am displaying a full screen interstitial ad, after a delay of 3 secs, on the home screen of my iOS app. However sometimes I take the user to screen B from the home screen. The interstitial which was loaded on the home screen is displayed on this screen B....

How to correctly Remove Ads In-App Purchase

android,in-app-purchase,admob,in-app-billing,interstitial
I successfully managed to implement the Google Billing Library in my project. I've added an in-app purchase to remove ads in the application, I tested it and the ads are removed after purchase, but when the interstitial ad should appear (it should not appear if I purchased the item), I...

AdMob Interstitial and error isLoaded must be called on the main UI thread

java,android,admob,interstitial
After user William suggest me to change my code for showing interstitial ad to this @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); //setDebugMode(true); initialiseAccelerometer(); interstitial = new InterstitialAd(this); interstitial.setAdUnitId(getResources().getString(R.string.InterstitialAd_unit_id)); interstitial.setAdListener(new AdListener() { public void onAdClosed() { // Create another ad request. final...

When to call Interstitial Ad?

android,admob,interstitial
I am very confused on what event i should trigger the Interstitial Ad, or what is the best event to launch Interstitial Ad. I tried the following: onStart() onDestroy() onStop() onResume() Please help...