Revenue sharing? how does it work?(code wise that is)

Discussion in 'AdSense' started by Scottydont, Apr 21, 2008.

  1. #1
    Like the title states, I was curious as to how this works with google ads.


    Say you and 1 other person wanted to share revenue on a site. In order to do this would it simply be.

    person_making_money = Random(1,2);

    if(person_making_money == 1)
    {
    //insert code so that google adsense pub id for person 1 is attached to ads.
    }

    else if(person_making_money == 2)
    {
    //insert code so that google adsense pub id for person 2 is attached to ads.
    }


    Is this how it works? or is there more to it?


    -Scott
     
    Scottydont, Apr 21, 2008 IP
  2. mickmel

    mickmel Peon

    Messages:
    384
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nope, that's it!

    In the past, you had to be careful to show the same person's ad code for every ad on the page. Now you can mix and match at will, making even easier to do this.

    I do it on a few sites, and we're all quite happy with it.
     
    mickmel, Apr 21, 2008 IP
  3. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #3
    it is much more complicated
     
    abdobasha2004, Apr 21, 2008 IP
  4. mickmel

    mickmel Peon

    Messages:
    384
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    On a large scale (like here on DP), yes. However, for a few partners to share revenue on a site it's as simple as he suggested. Do you disagree?
     
    mickmel, Apr 21, 2008 IP