Android AdMob displayed insecure content, Help me

637 views
Skip to first unread message

Licari Work

unread,
Nov 25, 2014, 9:33:23 AM11/25/14
to google-adm...@googlegroups.com

I'm trying to setup AdMob in my Android application and everything was working great until I tried it out on live devices. On all testing everything worked fine but after building for release and testing on some real devices I can't seem to get any ads to display.

In the logcat I see the following:

11-24 21:54:31.170: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.170: W/Ads(16897):  (null:1)
11-24 21:54:31.180: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.180: W/Ads(16897):  (null:1)
11-24 21:54:31.185: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.185: W/Ads(16897):  (null:1)
11-24 21:54:31.425: W/Ads(16897): Received error HTTP response code: 400
11-24 21:54:31.425: W/Ads(16201): There was a problem getting an ad response. ErrorCode: 0
11-24 21:54:31.455: W/Ads(16201): Failed to load ad: 0

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Nov 25, 2014, 1:29:45 PM11/25/14
to google-adm...@googlegroups.com
AdMob is moving toward serving ad responses via HTTPS, which sometimes causes messages like the first six lines of your log (if any of the ad's images/css/etc. are served over HTTP instead, it produces a warning).  This normally doesn't interfere with loading the ad, though, which you're also seeing.

If you replace the Ad Unit ID you're using with a test Ad Unit ID (you can get one from our Quick Start), and compile a release for your test devices, do you still end up with Error Code 0?

-Andrew

Licari Work

unread,
Nov 25, 2014, 3:36:37 PM11/25/14
to google-adm...@googlegroups.com
Hi, 
Thanks for the reply, with test device the Ads is showed correctly.
This is the log with test device:
11-25 21:32:50.974: I/Ads(4491): Starting ad request.
11-25 21:32:51.014: I/Ads(4491): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
11-25 21:32:53.129: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:32:53.129: W/Ads(4571):  (null:1)
11-25 21:32:53.159: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:32:53.159: W/Ads(4571):  (null:1)
11-25 21:32:53.164: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:32:53.164: W/Ads(4571):  (null:1)
11-25 21:32:55.144: I/Ads(4491): Scheduling ad refresh 60000 milliseconds from now.
11-25 21:32:55.149: I/Ads(4491): Ad finished loading.
11-25 21:33:55.204: I/Ads(4491): Starting ad request.
11-25 21:33:55.239: I/Ads(4491): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
11-25 21:33:55.634: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:33:55.634: W/Ads(4571):  (null:1)
11-25 21:33:55.649: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:33:55.649: W/Ads(4571):  (null:1)
11-25 21:33:55.649: W/Ads(4571): JS: The page displayed insecure content!
11-25 21:33:55.649: W/Ads(4571):  (null:1)
11-25 21:33:56.984: I/Ads(4491): Scheduling ad refresh 60000 milliseconds from now.
11-25 21:33:57.004: I/Ads(4491): Ad finished loading.

Thanks in advance
Francesco

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/ETa57Wld2_4/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,
Dec 2, 2014, 6:42:31 PM12/2/14
to google-adm...@googlegroups.com
If you're able to load test ads, but you're still unable to load your own, the problem would seem to lie in the particulars of the Ad Unit you're using.  Try setting up a new one that's extremely simple (no mediation, for example) and see if that works.

-Andrew

2014-11-25 19:29 GMT+01:00 Andrew Brogdon (Mobile Ads SDK Team) <mobileadssdk-advisor+andrew@google.com>:
AdMob is moving toward serving ad responses via HTTPS, which sometimes causes messages like the first six lines of your log (if any of the ad's images/css/etc. are served over HTTP instead, it produces a warning).  This normally doesn't interfere with loading the ad, though, which you're also seeing.

If you replace the Ad Unit ID you're using with a test Ad Unit ID (you can get one from our Quick Start), and compile a release for your test devices, do you still end up with Error Code 0?

-Andrew




On Tuesday, November 25, 2014 6:33:23 AM UTC-8, Licari Work wrote:

I'm trying to setup AdMob in my Android application and everything was working great until I tried it out on live devices. On all testing everything worked fine but after building for release and testing on some real devices I can't seem to get any ads to display.

In the logcat I see the following:

11-24 21:54:31.170: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.170: W/Ads(16897):  (null:1)
11-24 21:54:31.180: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.180: W/Ads(16897):  (null:1)
11-24 21:54:31.185: W/Ads(16897): JS: The page displayed insecure content!
11-24 21:54:31.185: W/Ads(16897):  (null:1)
11-24 21:54:31.425: W/Ads(16897): Received error HTTP response code: 400
11-24 21:54:31.425: W/Ads(16201): There was a problem getting an ad response. ErrorCode: 0
11-24 21:54:31.455: W/Ads(16201): Failed to load ad: 0

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/ETa57Wld2_4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Jason Faulkner

unread,
Feb 20, 2015, 1:22:58 AM2/20/15
to google-adm...@googlegroups.com
Hi Andrew,

This problem still persists and absolutely killing us. We can't display ads at all.

I have tried changing from SMART_BANNER to BANNER, but it is the same result.

We are using Cordova AdMob plugin, and can confirm these errors are not from the Plugin. 

02-19 21:21:02.080: W/Ads(24069): JS: The page athttps://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html displayed insecure content from file:///android_asset/webkit/android-weberror.png.

Also

02-19 21:23:25.770: W/Ads(24069): JS: The page at about:blank displayed insecure content from gmsg://mobileads.google.com/loadAdURL?request_scenario=online_request&type=xfp&url=http%3A%2F%2Fpubads.g.doubleclick.net%3A80%2Fgampad%2Fads%3Fseq_num%3D5%26rm%3D2%26js%3Dafma-sdk-a-v6599000.6171000.1%26hl%3Den%26smart_w%3Dfull%26gnt%3D0%26ma%3D0%26u_sd%3D1.5%26sp%3D0%26cnt%3D1%26muv%3D7%26riv%3D4%26ms%3Dmzv3qdgsEdL26xcG48iO_9oF8QSLtCa3dJHuwOjd6sMLLWuwo85TDgcH7Rs_bIj0pnwxcT-IGHRKzX6MpGc9RwCLBXE6zYNYtfMkYYkjVU5t6ceRhmxBOhVeRunDGfgxXlZvnr41LbX3g-EEPTkD_Ymi_AI_u92IxgWrSvzObQuW0dJ7mP93rERwC-iPegY2YXpSPC1n4bPQaf7YEkTiW8njx0xGOrjxiJFPCDeoB88L0QWwRHLwNBF7dXMyM4qxy0su4i5D80erhuflhmx7scrhJc32yDPxvdw_idZcB3fLsG1Mz0tyfORP-12z8hsgmeM1BWAYNecLNcsTb0OltQ%26mv%3D80310011.com.android.vending%26format%3D320x50_as%26smart_h%3Dauto%26coh%3D1%26gl%3DAU%26am%3D0%26u_w%3D320%26u_h%3D569%26msid%3Dcom.playitgaming.icc2015%26an%3D4.android.com.playitgaming.icc2015%26net%3Dwi%26u_audio%3D1%26u_so%3Dp%26support_transparent_background%3Dtrue%26pimp%3D0%26currts%3D24992192%26pclick%3D0%26basets%3D23384764%26bisch%3Dtrue%26blev%3D0.6299999952316284%26cans%3D5%26canm%3Dfalse%26output%3Dhtml%26region%3Dmobile_app%26u_tz%3D660%26url%3D4.android.com.playitgaming.icc2015.adsenseformobileapps.com%26gdfp_req%3D1%26markup%3Dhtml%26m_ast%3Dafmajs%26impl%3Difr%26iu%3D%252F23760223%252Fplayit.footer%26sz%3D320x50%26correlator%3D2295975544892137%26gsb%3Dwi%26caps%3DinlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_av_sdkAdmobApiForAds_di%26_efs%3Dfalse%26blockAutoClicks%3D0%26jsv%3D139%26urll%3D1173&base_uri=http%3A%2F%2Fpubads.g.doubleclick.net%3A80%2Fgampad%2Fads&use_webview_loadurl=0&enable_auto_click_protection=0&google.afma.Notify_dt=1424341405759.

Reply all
Reply to author
Forward
0 new messages