Sample Admob code to avoid out-of-app interstitial ad showing

287 views
Skip to first unread message

Soh Guan Hoe

unread,
Mar 21, 2015, 2:25:29 AM3/21/15
to google-adm...@googlegroups.com
Hi previously one of my earlier app was suspended for below reason.
Now recently another of my app was rejected for the same reason. Please note this time round, the app was not suspended but rejected which means the version before this latest is still allowed to be available.
Now I think I finally understand what below cryptic message means.
It seems for some users who may have slow internet connection, when I issue a call to Admob to get the Interstitial Ad, it did not appear fast enough while the user is inside the app.
But by that time user would have exited the app.
Then after exiting the app, the earlier Admob Interstitial Ad came and it popup on user screen.
This is I think what below means.

If supposing above is what is happening, is there any Admob sample code for me to follow to avoid this situation?
Like is there an Admob API call for me to call stop getting the Admob interstitial ad as I detect user exit app.
And also trying to simulate such slow internet connection scenario on Android development device can be difficult.

Thanks.


REASON FOR REJECTION:Violation of the Ad Policy:

  • Interstitial ads may only be displayed inside of the app they came with. A prominent and accessible target must be made available to users in any interstitial ad so they may dismiss the ad without penalty or inadvertent click-through.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Mar 23, 2015, 2:51:39 PM3/23/15
to google-adm...@googlegroups.com
There are ways to detect and manage the states of the Activity lifecycle (see this SO post for details), if that's the type of solution you're looking for.

-Andrew

William Ferguson

unread,
Mar 24, 2015, 10:19:40 AM3/24/15
to google-adm...@googlegroups.com
This typically occurs because you are calling interstitial.show() from AdListener.onAdLoaded()
Do NOT do this. It provides a poor user experience and nasty letters from Google.

Instead you should be showing the interstitial at a natural break point in your app.

William

Soh Guan Hoe

unread,
Apr 4, 2015, 1:45:47 AM4/4/15
to google-adm...@googlegroups.com
Well isn't sample code provided done in that manner?
We follow instruction and we pay the price when it does not always work the way it claimed?
So I should follow your instruction instead?

"Natural break point in app" is very subjective depending on the app nature.
For utility apps, the main function is to do setup, after which the user exit the app.
So if the setup screen is simple, they will exit the app BEFORE the interstitial ad appear as it has delay.
So does that mean interstitial ad is not to be used for simple utility app?

Life is such an irony but we move on albeit with a bitter feeling certain feature is biased towards certain app category.

Thanks for your advice though.

William Ferguson

unread,
Apr 4, 2015, 1:53:44 AM4/4/15
to google-adm...@googlegroups.com

Not all apps are a good fit for advertising. The app you have described appears to fall in that category. But you might be able to make it work by rearranging the way the user interacts with it.

William


--

---
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/Zh_4Fd1Rbt4/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.

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Apr 6, 2015, 12:35:43 PM4/6/15
to google-adm...@googlegroups.com
If your application has no natural breaks in the flow of use, it's probably not a good fit for interstitial ads. You can, however, still make use of banners. This is why AdMob provides more than one type of ads - so you can choose the one that best fits your application.

On a related note, I feel I should point out that our interstitial guide does call show() from within an onAdLoaded() handler:


-Andrew

William Ferguson

unread,
Apr 6, 2015, 6:49:13 PM4/6/15
to google-adm...@googlegroups.com

On Tue, Apr 7, 2015 at 2:35 AM, Andrew Brogdon (Mobile Ads SDK Team) <mobileadssdk-...@google.com> wrote:

On a related note, I feel I should point out that our interstitial guide does call show() from within an onAdLoaded() handler:



No, it doesn't. In the example show() is called from the newGameButton onClickListener.
As it should be.

 

Inderpreet Singh Jolly

unread,
Jan 21, 2019, 4:28:20 AM1/21/19
to google-adm...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages