Rotation between two accounts in Adsense

Discussion in 'Google' started by Mr.only, Dec 23, 2010.

  1. #1
    please help i want this code..

    i searching for Php code to make Rotation of ads between the two accounts in Adsense

    something give 50% or 60% to one of these accounts ..


    so .. can any one help me ..
     
    Mr.only, Dec 23, 2010 IP
  2. rakkfm

    rakkfm Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sorry bro i dont know
    and i think you dont do it becoz adsense will ban you if u have a little mistake both a/c will ban so be carefull
     
    rakkfm, Dec 23, 2010 IP
  3. Mr.only

    Mr.only Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanxxx but i think its allowed
     
    Mr.only, Dec 23, 2010 IP
  4. bisma anwar

    bisma anwar Peon

    Messages:
    525
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    cant understand what u said
     
    bisma anwar, Dec 24, 2010 IP
  5. Mr.only

    Mr.only Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    me and my friend have site and we need php code to make Rotation between our adsense account .. EX:( 50/50)

    sorry for my En ..
     
    Mr.only, Dec 24, 2010 IP
  6. digitalwebman06

    digitalwebman06 Active Member

    Messages:
    1,712
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    53
    #6
    i think you should read the TAC of Google adsense cause i doubt about its allowance. i also think its not only a simple code.
     
    digitalwebman06, Dec 28, 2010 IP
  7. ash1

    ash1 Active Member

    Messages:
    2,240
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    88
    #7
    it would be very interesting to see which of the 2 product networks performs better
     
    ash1, Dec 29, 2010 IP
  8. animebuzz.tv

    animebuzz.tv Peon

    Messages:
    317
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    this thing isn't recommended.. did you ask google about this first if this is allowed? there are multiple ways to do it in php
    you can display the ad in random basis or save the flag value in database to alternate the ad display

    for random its something like
    if(rand(1,2)==1) echo "...ad code 1" ; else echo ".... ad code 2..";

    for the other method:
    /*get the database value of $flag here */
    if($flag == 1){ echo "...ad code 1" ; $flag = 2; }
    else { echo ".... ad code 2.."; $flag = 1; }
    /* ...save flag here */
     
    animebuzz.tv, Dec 29, 2010 IP
  9. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #9
    yes,
    if (rand(1,2)==1) {
    echo "ad code 1" ;
    } else {
    echo "ad code 2";
    }
    is the easiest for 50/50
     
    JamesColin, Jan 1, 2011 IP
  10. robertwilliam

    robertwilliam Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    could you simplify it..
     
    robertwilliam, Jan 20, 2011 IP
  11. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #11
    it is simplified.
     
    JamesColin, Jan 22, 2011 IP
  12. thejoker123

    thejoker123 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    that code is in php by the way ... just incase newbies are reading this :)
     
    thejoker123, Jan 25, 2011 IP