1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adsense and responsive site

Discussion in 'Guidelines / Compliance' started by dantekavala, Jan 9, 2015.

  1. #1
    Hello everyone,

    I redesign my website to make it responsive. I try to make also Adsense user friendly for the visitors.

    I write a code in javascript and CSS media query which read the screen size and add or remove adsense code that doesn't fit well on the page on load and on window resize.

    You can see the code on the website on CSS: adsense.css and on the last javascript script. However, I am not sure if I am against the Google rules about the maximum 3 ads per page. Since, I am not show more than 3 simultaneously, will I have a problem?

    The adsense are images to avoid any click by mistake.
    Here is the link: http://stage.ht-tools.eu/training
     
    dantekavala, Jan 9, 2015 IP
  2. malky66

    malky66 Acclaimed Member

    Messages:
    3,996
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #2
    malky66, Jan 9, 2015 IP
    GuruCreation likes this.
  3. dantekavala

    dantekavala Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Because I don't only change the size but also the place of the ad. For example, on desktop I have a skyscrapper on the left whereas on tablet a leaderboard on the top.
     
    dantekavala, Jan 9, 2015 IP
  4. dantekavala

    dantekavala Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    88
    #4
    I tried to change a little my layout to fit responsive Adsense ads, but now I have another problem. On window resize, the ad doesn't change. I have to refresh the page to load another ad. Which seems nosense for a responsive site.
     
    dantekavala, Jan 9, 2015 IP
  5. malky66

    malky66 Acclaimed Member

    Messages:
    3,996
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #5
    When people visit your site they don't resize their browser, the ads will fit based on the visitor screen size.
     
    malky66, Jan 9, 2015 IP
  6. Mo-T

    Mo-T Member

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #6
    I used responsive ads, and it worked great, especially with 728*90 change to 350x250
     
    Mo-T, Jan 28, 2015 IP