Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo

Anyone Any Good With Adsense And Responsive Web Design?


  • Please log in to reply
3 replies to this topic

#1 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 426 posts

Posted 20 June 2013 - 09:14 AM

OK, AdSense finally understands and supports responsive web frameworks so that their ads show correctly in a phone tablet etc...

 

My site has AdSense on it but it is looking very odd on mobile.

 

Am I correct with these tweaks (ill test but it would be great if someone with experience can chime in)

 

OK so the red font represents an ad slot that varies on the users width - right?

 

Thanks!

 

Also, is there another work-around that works best on Twitter Bootstrap?

 

<script type="text/javascript">
    google_ad_client = "ca-publisher-id";
    width = document.documentElement.clientWidth;
    google_ad_slot = "1234567890";
    google_ad_width = 320;
    google_ad_height = 50;
        if (width > 500) {
        google_ad_slot = "3456789012";
        google_ad_width = 468;
        google_ad_height = 60;
    }
    if (width > 800) {
        google_ad_slot = "2345678901";
        google_ad_width = 728;
       google_ad_height = 90;
    }

</script>
<script type="text/javascript" src="http://pagead2.googl...ead/show_ads.js">
</script>

 



#2 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 426 posts

Posted 06 July 2013 - 07:09 PM

Yup i solved this - it works 100% well. Responsive Ads do work on Google Adsense



#3 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,324 posts
  • Location:Blackpool UK

Posted 07 July 2013 - 04:49 PM

And the solution, for any one else looking for the answer, is?



#4 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 426 posts

Posted 07 July 2013 - 08:19 PM

And the solution, for any one else looking for the answer, is?

 

That the code works as stated in the post.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!