Using PHP script to only show AdSense 50% of the time — Legal?

Discussion in 'AdSense' started by Webwaster, Nov 12, 2010.

  1. #1
    
    if (rand(0,2) == 1)
    {
        show adsense
    }
    else
    {
        do nothing
    }
    PHP:
    Does anyone know if this way of showing ads is legal by AdSense?
     
    Webwaster, Nov 12, 2010 IP
  2. Tearabite

    Tearabite Prominent Member

    Messages:
    4,629
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #2
    How and if/when you display ads is up to you.. as long as you dont change the ad-code, this is fine..
     
    Tearabite, Nov 12, 2010 IP
  3. Lex350

    Lex350 Notable Member

    Messages:
    1,889
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    215
    #3
    Yes its fine. Instead of "do nothing" you should show my ads :)

    Shouldn't that be rand (1,2)
     
    Last edited: Nov 12, 2010
    Lex350, Nov 12, 2010 IP
  4. Webwaster

    Webwaster Peon

    Messages:
    202
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    When an ad isn't there, and gets inserted into the page again, I noticed that it might change eCPM (increase it). Probably because the ad is "retrained" all over again?

    And on that day when that happens, I get more earnings. This is a speculation, but who knows? it makes a 20% rev difference for that day for me.

    Anyone else want to try that and post results here?
     
    Webwaster, Nov 12, 2010 IP
  5. 24788

    24788 Peon

    Messages:
    529
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This almost sounds like a dirty tactic. It appears you are messing with Adwords users and/or Googles money. I'd be very careful with this and if you need a second opinion to know for sure ask a top con on the real Adsense forums.

    Just saying because anything that tricks Adsense into paying more money out can often be seen as fraud. Good luck though and I hope this works out for you.
     
    24788, Nov 12, 2010 IP
  6. Webwaster

    Webwaster Peon

    Messages:
    202
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well, duh.

    I don't think I have to remind anyone the title of this post asks whether it is legal or not, do I?

    So, does it appear that doing this is messing with AdSense? Or nobody really knows?

    On the other hand of the argument: It's my site, I should be able to place ads anywhere on it at any time. And it would probably be ridiculous for Google to say: You have to show ads at all times.

    Anyone agree/disagree?
     
    Webwaster, Nov 12, 2010 IP
  7. designersshack

    designersshack Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    no it's not illegal.you can show ads on your site using this script.
     
    designersshack, Nov 13, 2010 IP
  8. munnakv

    munnakv Active Member

    Messages:
    293
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #8
    This is perfectly legal.
    Its your site. You choose when to show adsense or other ads.

    On the other hand, I highly doubt that this increases CPM.
    Unless CPC is more than double of what you get when you show ads all the time, this is a futile attempt.

    However, if you are able to increase the earnings this way, let us all know it here. :D
     
    munnakv, Nov 13, 2010 IP
  9. Iwind

    Iwind Active Member

    Messages:
    259
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    50
    #9
    Is the CTR also increasing when you doing this? If it somehow makes people click your ads by accident more often doing this I can see a problem with it, if there was say a navigation button in the same spot before or something. Inducing accidental clicks might get you banned after all. Or is it just the pay per click that's more than doubling?
     
    Iwind, Nov 13, 2010 IP
  10. Webwaster

    Webwaster Peon

    Messages:
    202
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No, the CTR is not increasing.

    I am probably just hallucinating, as I experiment with ad placement, and as Google continues to optimize the ads on the page -- I probably thought disabling/enabling the ads "reset" the ads in terms of content, but who really knows how their algorithms really work?
     
    Webwaster, Nov 13, 2010 IP
  11. dansari

    dansari Well-Known Member

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    108
    #11
    You are free to show or not show ads - it's not a violation of the AdSense TOS. The OP was speculating on how to increase earnings, it's not tricking Google in any way.
     
    dansari, Nov 13, 2010 IP
  12. gtk29

    gtk29 Member

    Messages:
    519
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #12
    There is no guarantee that 50% of times rand(0,2) would give 1. So that's not a good way. Instead you can use SQL to check what you showed last.
     
    gtk29, Nov 13, 2010 IP
  13. timeclicks

    timeclicks Well-Known Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #13
    yes you can show ads 50% of times . but do not alter adsense code in your script .
     
    timeclicks, Nov 14, 2010 IP
  14. JoshuaG

    JoshuaG Guest

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I do this with one of my sites and I've never had any problems. Its a good way to limit impressions from your social traffic.
     
    JoshuaG, Nov 14, 2010 IP
  15. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #15
    it's legal but pointless. If you use this random script to display an alternative ad ok, but display nothing? In the hope of earning more? let me laugh :)
     
    JamesColin, Nov 14, 2010 IP
  16. Iwind

    Iwind Active Member

    Messages:
    259
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    50
    #16
    Well yeah, please display something at least, maybe a link to one of my websites, that'd be nice :)
     
    Iwind, Nov 14, 2010 IP