Black Hat Forum
Go Back   Black Hat Forum > Making Money Forum > PPC > Adsense

Adsense Discuss your Adsense methods and tactics here.

Search
 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2008, 06:06 PM
eastado's Avatar
Jr. VIP
 
Join Date: May 2008
Posts: 237
Thanks: 16
Thanked 39 Times in 22 Posts
Activity: 46%
Longevity: 18%
Today: 1/5
Default google and yahoo add rotator script

I am not sure if this was shared before but here's the script.
Code:
<?php
    include("gyr.php");
?>


------------------------------------------------------------------
Code for gyr.php

<?php

    $locales = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
    if ( $locales == "" ) {
    include("google-728x90.php");
    } else {
    $semicolon = array(";");
    $lesssemicolon = str_replace($semicolon, ",", "$locales");
    $breakdown = explode(",",$lesssemicolon);
    $lang_count = strtolower("$breakdown[0]");
    }
    if ( $lang_count == "en-us" ) {
    include("ypn-728x90.php");
}    else    {
    include("google-728x90.php");
    }

?>

then create php pages named "ypn-728x90.php and google-728x90.php  which contain your ad code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to eastado For This Useful Post:
Barry Scott (07-25-2008)
  #2 (permalink)  
Old 07-25-2008, 10:00 PM
Cloud Xtrife's Avatar
Newbie
 
Join Date: Jul 2008
Posts: 6
Thanks: 3
Thanked 2 Times in 2 Posts
Activity: 1%
Longevity: 11%
Today: 0/5
Default Re: google and yahoo add rotator script

hi there. Can I ask what a rotator script does ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 11:10 PM
eastado's Avatar
Jr. VIP
 
Join Date: May 2008
Posts: 237
Thanks: 16
Thanked 39 Times in 22 Posts
Activity: 46%
Longevity: 18%
Today: 1/5
Default Re: google and yahoo add rotator script

good question my friend. I am sorry I forgot to elaborate it much I was in a little hurry when I posted it.
This is a script that you can use on your site. This script allows you to rotate your adds. suppose you have accounts with adsense and yahoo. So what this script does is that it randomly rotates these adds which gives equal exposures to both of your accounts and gives verity to your visitor.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Add Your Link



Site protected by Firewall Script


Sitemap: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54