I suck at programming. I need a script where I can save Adsense ID's, and then have them randomly (or in order) be 'inserted' into the proper place in the Adsense code in my .php file. Everytime a page is loaded so that it shows a different ad each time. I know this must be simple, but can someone whip it up real fast for me?
I could be wrong but I think Google handles which ads are displayed when. publisher can say text only or identify specific advertisers for a slot? do you mean like the way this forum works? Q...
$adsense_ids = array( 'id1', 'id2', 'id3' ); $adsense_id = $adsense_ids[ rand(0, count( $adsense_ids) - 1 ) ]; echo "<!-- Adsense code with $adsense_id -->"; Code (php):