Interstitial Ads showing twice and as soon as I open the app

1,011 views
Skip to first unread message

Karan Thawrani

unread,
Jul 30, 2016, 3:51:05 AM7/30/16
to Google Mobile Ads SDK Developers
Hi,

As of now on the Android version of my app, whenever an ad pops up, it shows twice instead of the normal once. For eg- I click the x (close) button and then the interstitial ad shows up for the second time again.

Also, I don't want the interstitial ad to show up as soon as I open the app. I want it to show up somewhere in the middle while browsing the app. My app is called Kennel Locator and it is an information based app. So an ad anywhere in the middle of the app while browsing would do. 

Alternatively, Is it possible to create a setting like an ad to show up every 5 clicks on the app? (I would prefer this if this could be made possible)

I have created 1 ad unit. Here are the settings on my AdMob account right now :-
Here is my ad unit ID if needed :-
Ad unit ID: ca-app-pub-6089165092003166/6472900137



Best,
Karan Thawrani.

Karan Thawrani

unread,
Jul 31, 2016, 7:44:39 AM7/31/16
to Google Mobile Ads SDK Developers
can someone help out with this please?

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 1, 2016, 9:38:46 AM8/1/16
to Google Mobile Ads SDK Developers
Hi Karan,

The interstitial ad shouldn't be displaying again after you close it.  If the code is correct, it should only display once.
Would you be able to send us some code snippets with which you see that behavior?

To display the interstitial ad later on in your app (which we encourage), simply move the request and display ad logic to the appropriate point in your workflow.  You are not obligated to place the code on app launch.  In fact, we discourage showing an interstitial on app launch.  

For example, if your app has 2 activities, then to show the interstitial at the activity transition, we recommend the following workflow:

Activity 1 loaded --> Request interstitial --> When user initiates action to go to activity 2 --> Call .show() on your interstitial ad object --> Once the ad is closed (onAdClosed() will be fired), do the actual intent switching.

To show an ad for every 5 taps, you can have an accumulating counter that is divisible by 5.  For every 5th click, call .show() to display your interstitial.  For any other click, prepare the logic to request the next interstitial.

Vu Chau
Mobile Ads SDK Team 

Karan Thawrani

unread,
Aug 1, 2016, 2:23:15 PM8/1/16
to Google Mobile Ads SDK Developers
Hi Vu,

Thanks for your response. I'm sorry but I have no idea about coding. I created my app with the help of Appy Pie (a DIY website). So I spoke to AppyPie about this query and here's what they replied. The "one ad" in the first para he is talking about is what is currently happening on the iOS version of the app. While I get all kinds of ads on the Android version, I only get one Google Maps ad on the iOS version and then no ads at all after that.  

"I understand your concern but if the ads will not come then it should me the issue on my end but if only one ad is coming then the issue must be from admob and you need to raise a ticket on admob. 

Also i checked some more clients app and the ads are coming fine to there is no issue with code. There must be something with admob."

The "one ad" in the first para he is talking about is what is currently happening on the iOS version of the app. While I get all kinds of ads on the Android version, I only get one Google Maps ad on the iOS version and then no ads at all after that.  

Thanks
Karan.

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 1, 2016, 4:03:19 PM8/1/16
to Google Mobile Ads SDK Developers
Hi Karan,

Thanks for clarifying on the use case!

If you use our sample examples, you will be able to look at the underlying logic, which requests and shows an interstitial only once per session.  If you see different behaviors when using third-party implementations, that'd be outside the support we provide on this forum.  But if you can obtain some code that demonstrates the behavior, we can try to investigate and provide recommendations.

Let us know if you have additional questions,

Vu Chau
IMA SDK Team

Karan Thawrani

unread,
Aug 2, 2016, 2:55:48 AM8/2/16
to Google Mobile Ads SDK Developers

Hi Vu,
I spoke to the AppyPie team and here's what they said. I have attached the screenshot sent by them.

 "Please share the attached screenshot with the support and ask them that we are using the details showing in the attached document."

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 2, 2016, 10:40:12 AM8/2/16
to Google Mobile Ads SDK Developers
Thanks, Karan.

The configuration from the screenshot looks fine.  But ultimately, the SDK will use the actual code in your app to determine the logic for requesting and showing the interstitial.  There isn't much to tell from the configuration in that screenshot.

You can forward the team this code if they need further comparison and contrast.  If the team has the actual code, then they can also send it to us, and we will be happy to take a look.

Remember that we don't show the interstitial twice (in fact that is against the principle), and we advise against showing it on app launch/exit.

Vu Chau
Mobile Ads SDK Team

Karan Thawrani

unread,
Aug 3, 2016, 5:17:15 AM8/3/16
to Google Mobile Ads SDK Developers
Afternoon Vu,
Here is what they replied

"We are using the corect SDK and many clients are using the interestial ads and its working fine. I have accelerated the ticket to my QA team to add our admob id and then test if its working or not.

At the moment i can not share the code with you but i am checking the same on my end and i assure you i will get that done for you."

Thanks.
Reply all
Reply to author
Forward
0 new messages