Randomize your Auction Ads keyword with php

aa Randomize your Auction Ads keyword with phpAuction ads is simple program that display auction ads from ebay, live in your website

different from adsense, auction ads need specific keyword to display properly

I use simple php rand() function to help me randomize my auction ads keyword.

Here’s my code :

<?php

$keyword=array(‘computer’,’laptop’,’handphone’);

$key2=rand(’0′,count($keyword));

?>

For example :

change this code :

<script type=”text/javascript”><!–
auctionads_ad_client = “99791037f859934050be”;
auctionads_ad_campaign = “”;
auctionads_ad_width = “728″;
auctionads_ad_height = “90″;
auctionads_ad_kw = “nokia“;
auctionads_color_border = “CFF8A3″;
auctionads_color_bg = “FFFFFF”;
auctionads_color_heading = “00A0E2″;
auctionads_color_text = “000000″;
auctionads_color_link = “008000″;
–></script>
<script type=”text/javascript” xsrc=”http://ads.auctionads.com/pagead/show_ads.js” mce_src=”http://ads.auctionads.com/pagead/show_ads.js” >
</script>

into this code :

<script type=”text/javascript”><!–
auctionads_ad_client = “99791037f859934050be”;
auctionads_ad_campaign = “”;
auctionads_ad_width = “728″;
auctionads_ad_height = “90″;
auctionads_ad_kw = “<?php echo $keyword[$key2];?>“;
auctionads_color_border = “CFF8A3″;
auctionads_color_bg = “FFFFFF”;
auctionads_color_heading = “00A0E2″;
auctionads_color_text = “000000″;
auctionads_color_link = “008000″;
–></script>
<script type=”text/javascript” xsrc=”http://ads.auctionads.com/pagead/show_ads.js” mce_src=”http://ads.auctionads.com/pagead/show_ads.js” >
</script>

word ‘nokia‘ will be replace by ; computer, laptop or handphone

you can add keyword as much as you want .
It’s sell time icon smile Randomize your Auction Ads keyword with php

5 Comments

  1. great idea :) seandainya bisa retrieve popular item dari ebay pop dan trus dirandom sbg keyword di auctionads pasti bisa lebih keren lagi hasilnya :p

  2. Iya mas, masih cari-cari apa itu ebay pop :-)

    kl ada petunjuknya saya akan coba riset spy bisa di sharing sama teman-teman :-)

  3. I am not really sure what this does that is different then the built in rotation just using ; to separate keywords.

  4. Pingback: Learning On Demand | Different days Auction Ads keyword with php

Comments are closed.