Share!

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 Responses to “Randomize your Auction Ads keyword with php”

  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. alamster says:

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

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

  3. shoemoney says:

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

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

    In my previous post about randomize keyword with php, shoemoney tell me that function already built in AA program, just use ; to separate your keywords I’m still research how sales made on daily basis, what people buy on Sunday, Tuesday till Sunday

  5. sukosaki says:

    nice code, I will be trying this out on my site soon!