Tag Archives: AdSense

Google engineer seriously checked the AdSense HTTPS SSL issue

After I posted the problem of AdSense HTTPS SSL displaying issue, an engineer from Google AdSense contacted me. Below is the conversation. As a enthusiastic Google fan, the involvement from Google on this issue is much appreciated.

Hello,

I’m an engineer at Google, working on serving ads over HTTPS. I saw your report “No AdSense ads displayed on HTTPS SSL websites”.

Can you help me debug this at all? I wasn’t able to reproduce the problem — ads showed up just fine when I visited the sites you mentioned. Are you still seeing this problem today?

If you’re familiar with your browser’s developer tools, could you send me any more information about the problem loading? For example, can you find the URL that the browser tried to load over http? Or the URL of the ad request itself? — that will start with https://googleads.g.doubleclick.net/pagead/ads?…

Thank you, I will appreciate any help you can offer me.

–Michael


Dear Michael,

Thanks for your stepping in this issue.

I noticed it and it just lasted a short period in last week, and I found it is really strange (Your company Google is now persuading webmasters to use HTTPS SSL), that is why I checked it and captured the screenshot.

There was no problem about the adsense code I put in my website, just when the web browsers (chrome & ie & firefox on Windows 7 64 bit) try to load the https page, it says the ads were transported via http.

Another possible explanation could be the internet condition, which is an academic research network, there could be some restriction (router whatever) applied. But again, this issue is really strange. And I do not encounter this issue any more.

Next time, if I have similar issue, I will offer you more details.

I like AdSense, thank you, Google engineers.

Best,

The webmaster of www.InkSay.com


Hello,

Thanks for your help. It turns out there are many difficulties in getting ads to work well over HTTPS, just because there are many different possible sources for our ads. As you saw, our systems for preventing any HTTP resource from being served in an HTTPS context are not yet perfect.

I’ll see if I can figure out what went wrong in the specific case you saw — thank you for the screenshot with the actual ad in it. If you see such a problem again, the most useful way to identify the actual ad that caused the problem is to grab the URL that you would get to by clicking on the ad (for example by right-clicking or Ctrl-clicking on the big arrow). But I may be able to track it down without that too.

Anyway, I’m glad the problem only lasted a short time, and thank you for the report.

–Michael

No AdSense ads displayed on HTTPS SSL websites

I think Google met a problem on their AdSense server today. The AdSense ads does not show on HTTPS SSL websites today, e.g. https://tumutanzi.com & https://helloacm.com, it shows a shield icon at the end of the address bar of web browser, alerting “the page includes script from unauthenticated sources”.

If the visitor click the icon to load unsafe script, then the browser does display the AdSense ads, but the address bar of browser shows a warning indicating that the page is not fully secure with uncompleted HTTPS SSL.

The AdSense is supposed to display ads over ssl on HTTPS SSL site as Google said “AdSense ad code support for SSL“, but now it does not. The issue occurs on all HTTPS SSL websites today on all web browsers of Windows operating system, there is no automatic AdSense ads displaying over all https website for the moment. No problem found on iPhone OS.

I hope Google AdSense engineers will notice the issue and fix it soon, otherwise it causes loss of revenue of Google and AdSense publishers.

How to stop AdBlock killing your AdSense revenue on your website?

Many bloggers place AdSense ads on their blog sites to earn some bucks along with the funny blogging trip. However, it is not easy to make money from AdSense, one of the reason it more and more people are using web browser extension such as AdBlock to disable AdSense on their browsers.

It is difficult to say whether it is right to disable AdSense while browsing the free content of your website. Even you complain people who are using AdBlock, you have no way to remove the related extensions.

However, you do have the right to disable visitors viewing your website without showing AdSense ads. Here is the little trick, easy and simple to be implemented on your blog.

First, copy the snippet code below and paste it in to your one of theme file, say footer.php of WordPress theme, the position is at your choice, just before the tag: </body>. This piece of code is to determine whether the visitor is disabling the presence of AdSense on your blog site, if yes, then pop up the reminder asking the visitor disable AdBlock working on your site.

<script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g('g207')){c('<p>Please disable your ad blocker!<br/>This site is supported by the advertisement <br/> Please disable your ad blocker to support us!!! </p>','g207')}};(function(){var a=['Adrectangle','PageLeaderAd','ad-column','advertising2','divAdBox','mochila-column-right-ad-300x250-1','searchAdSenseBox','ad','ads','adsense'],l=a.length,i,s='',e;for(i=0;i<l;i++){if(!g(a[i])){s+='<a id="'+a[i]+'"></a>'}}c(s);l=a.length;for(i=0;i<l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue('display'):e.currentStyle.display)=='none'){return f('#'+a[i])}}}());(function(){var t=g(0,'img'),a=['/adaffiliate_','/adops/ad','/adsales/ad','/adsby.','/adtest.','/ajax/ads/ad','/controller/ads/ad','/pageads/ad','/weather/ads/ad','-728x90-'],i;if(typeof t[0]!=z&&typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+'#'+a.join('')};i.src=t[0].src}}());(function(){var o={'http://pagead2.googlesyndication.com/pagead/show_ads.js':'google_ad_client','http://js.adscale.de/getads.js':'adscale_slot_id','http://get.mirando.de/mirando.js':'adPlaceId'},S=g(0,'script'),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i>=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement('script');n.type='text/javascript';n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener('load',g207,false)}else{w.attachEvent('onload',g207)}})(window);</script>

The second step is copying the css code below to style.css of your theme, which is to customize the display style of the warning text.

#g207{position:fixed!important;position:absolute;top:0;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:0;width:100%;height:100%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}

That is all. Next time, visitors who read your blog with AdBlock will see the warning messages as below:

Please disable your ad blocker.
This site is supported by the advertisement.
Please disable your ad blocker to support us!

Good luck to earn some revenue using AdSense when blogging.