PDA

View Full Version : google ads rotation script



addar800
October 19th, 2007, 09:57
hello im looking for a google ads rotation script

anyone know of any?

krakjoe
October 19th, 2007, 10:09
what you mean by that ?? and what does the code have to work with ??

themoose
October 19th, 2007, 11:06
Here's a simple one that displays them randomly, it's PHP.


<?php
$adcode = array(
'Ad code one',
'Ad code two',
'Ad code three',
'And so on'
);
shuffle($adcode);
echo $adcode[1];
?>

But you didn't really give us enough details of what you want.

thermodynamics
October 21st, 2007, 04:08
Here's a simple one that displays them randomly, it's PHP.


<?php
$adcode = array(
'Ad code one',
'Ad code two',
'Ad code three',
'And so on'
);
shuffle($adcode);
echo $adcode[1];
?>

But you didn't really give us enough details of what you want.



Whether this will shuffle Google adcodes?

and whether TOS allows it?

sep
October 21st, 2007, 05:19
Why would you need to rotate Google ads? They change everytime the page loads anyway...

Decker
October 21st, 2007, 06:11
I don't think the google TOS allow the ads to be placed in rotator code anyway.

themoose
October 21st, 2007, 09:02
Why would you need to rotate Google ads? They change everytime the page loads anyway...

maybe he wants to use two different publisher IDs?

thermodynamics, I suggest you contact adsense to make sure what you want to do is OK.