Optimizing Advertising for Social Networks

This comes from an interesting post by Jesse Farmer. There is no clear winner amongst ad networks for social applications on Facebook, MySpace, etc. The only real way to know is to find out for yourself.

Using PHP, you can randomly show ad codes from multiple ad networks with equal probability. Check the cash and find out which works best for you!

function get_random_ad_code() {
    $ad_codes = array(
        'lookery'     => 'Your Lookery ad code',
        'adblade'     => 'Your AdBlade ad code',
        'socialmedia' => 'Your SocialMedia ad code',
        'rockyou'     => 'Your RockYou ad code'
    );

    return $ad_codes[array_rand($ad_codes)];
}

echo get_random_ad_code();

If you want to take it to the next level, you can write more complex algorithms to weigh the ads in favor of the network that works best for you, but that’s outside the scope of this article (for now.)

3 Responses to “Optimizing Advertising for Social Networks”


  1. 1 Keith

    Adblade is the only one with conversion code for advertisers. Social Media ran a campaign for us but since we dont know they ROI, how can we keep using them?

  2. 2 Abhinav

    I doubt I can help you out. I’ve mostly used these networks for the publisher side of it. CTR on Facebook is abysmal compared to websites, so I stick with pure CPM as a publisher.

    Have you seen CPAStorm? I haven’t used them, but I’ve heard they work only on a cost-per-action basis.

  3. 3 Abhinav

    I guess the post title might be a little misleading as its publisher-oriented.

  1. 1 Experimenting with AdSense on Facebook at Abhinav Sharma

Leave a Reply