download source code (PHP)
"; $bidder_font_post = ""; $align = " align ='center' "; $offrow = true; $offcolor = " bgcolor='#FFEEAA' "; echo "
"; echo "$keyword
"; echo ""; echo ""; echo ""; echo ""; foreach($all as $name) { echo ""; if(In_Array($name,$google)) echo ""; else echo ""; if(In_Array($name,$yahoo)) echo ""; else echo ""; if(In_Array($name,$bing)) echo ""; else echo ""; echo ""; } echo "
 Google
$bidder_font_pre" . count($google) . " bidder(s)$bidder_font_post
"; echo "
Yahoo
$bidder_font_pre" . count($yahoo) . " bidder(s)$bidder_font_post
"; echo "
Bing
$bidder_font_pre" . count($bing) . " bidder(s)$bidder_font_post
"; echo "
$namex x x 
"; } //end itb_examplebatch //itb_description function itb_description() { ?>

Monitor Trademark Bidding

Our goal is to help clean up affiliate marketing by providing a free, simple, open source solution for monitoring trademark bidding. We use proxies in most US states to monitor trademark bidding on google, yahoo and bing. The information is recorded every hour allowing you to know who was bidding on your keywords.

Tips

If your store is MyStore.com, I'd recommend setting up an account and monitoring at least "MyStore.com Coupon", "MyStore.com Dicount", "MyStore Coupon", "MyStore Coupon Code", "MyStore.com Coupon Code", "MyStore Discount", "Mystore","Mystore.com" as well as plurals.

Open Source

Got some PHP skills and want to create a custom inhouse solution or contribute to the project? Download the php source code. Available under the GNU general public license.

Comments / Contribute

This is a free contribution to the affiliate community. Not a business so don't expect speedy technical support. If you abuse the system I'll close your account(s). That being said here's my facebook account. If your interested in contributing, contact me.

Disclaimers / Full Disclosure

As with all open source software: This code is provided as-is, with no warranty. I cannot promise that it will even compile for you, let alone give correct answers. I own Spadout.com which promotes outdoor retailers by providing a price comparison / product review engine. Our bottom line is directly effected by grey / black hat affiliates making our industry look bad. Therefore it is in my interest to take them down. I believe providing advertisers the tools at no cost will aid in this goal.

Mark Silliman

"; //defaults $src_collect = ""; $query = trim($query); if($query == "") return false; $query = urlencode($query); $url = "http://www.bing.com/search?q=" . $query; $src = @itb_file_get_contents($url); if($src == "") return false; $explode_temp = explode($top_left,$src); if(count($explode_temp) < 2) { if($debug_mode) echo "count is " . count($explode_temp) . "
"; return false; } $pos = 1; while($pos < count($explode_temp)) { $temp = $explode_temp[$pos]; if(strpos($temp,$top_leftend) !== false) { $src_collect .= substr($temp,0,strpos($temp,$top_leftend)); } $pos++; } return itb_get_advertisers_array_from_src_bing($src_collect); } //end itb_get_qry_src_bing //itb_get_advertisers_array_from_src_bing function itb_get_advertisers_array_from_src_bing($src) { $debug_mode = false; $pre = ""; $post = ""; $advertisers = array(); $srca = explode($pre,$src); if(count($srca) < 2) { if($debug_mode) echo "itb_get_advertisers_array_from_src_yahoo 1 " . count($srca) . "
"; return false; } $pos = 1; while($pos < count($srca)) { if(strpos($srca[$pos],$post) !== false) { $srcb = substr($srca[$pos],0,strpos($srca[$pos],$post)); $srcb = itb_standardize_advertisers($srcb); if($srcb != "" && !In_Array($srcb,$advertisers)) Array_Push($advertisers,$srcb); } $pos++; } //while if($debug_mode && count($advertisers) == 0) echo "itb_get_advertisers_array_from_src_google; advertisers count is 0
"; return $advertisers; } //end itb_get_advertisers_array_from_src_bing //itb_get_qry_src_yahoo function itb_get_qry_src_yahoo($query) { //settings $debug_mode = false; $top_left = "SPONSOR RESULTS"; $top_leftend = ""; //defaults $src_collect = ""; $query = trim($query); if($query == "") return false; $query = urlencode($query); $url = "http://search.yahoo.com/search?p=" . $query; $src = @itb_file_get_contents($url); if($src == "") return false; $explode_temp = explode($top_left,$src); if(count($explode_temp) < 2) { if($debug_mode) echo "count is " . count($explode_temp) . "
"; return false; } $pos = 1; while($pos < count($explode_temp)) { $temp = $explode_temp[$pos]; if(strpos($temp,$top_leftend) !== false) { $src_collect .= substr($temp,0,strpos($temp,$top_leftend)); } $pos++; } return itb_get_advertisers_array_from_src_yahoo($src_collect); } //end itb_get_qry_src_yahoo //itb_get_advertisers_array_from_src_yahoo function itb_get_advertisers_array_from_src_yahoo($src) { $debug_mode = false; $pre = ""; $post = ""; $advertisers = array(); $srca = explode($pre,$src); if(count($srca) < 2) { if($debug_mode) echo "itb_get_advertisers_array_from_src_yahoo 1 " . count($srca) . "
"; return false; } $pos = 1; while($pos < count($srca)) { if(strpos($srca[$pos],$post) !== false) { $srcb = substr($srca[$pos],0,strpos($srca[$pos],$post)); $srcb = itb_standardize_advertisers($srcb); if($srcb != "" && !In_Array($srcb,$advertisers)) Array_Push($advertisers,$srcb); } $pos++; } //while if($debug_mode && count($advertisers) == 0) echo "itb_get_advertisers_array_from_src_google; advertisers count is 0
"; return $advertisers; } //end itb_get_advertisers_array_from_src_yahoo //itb_get_qry_src function itb_get_qry_src_google($query) { //settings $top_left = "
"; $top_leftend = "
"; $top_right = "Sponsored Links"; $top_rightend = ""; //defaults $src_topleft = ""; $src_topright = ""; $query = trim($query); if($query == "") return false; $query = urlencode($query); $url = "http://www.google.com/search?q=" . $query; $src = @itb_file_get_contents($url); if($src == "") return false; if(strpos($src,$top_left) !== false) { $src_topleft = substr($src,strpos($src,$top_left)+strlen($top_left)); if(strpos($src_topleft,$top_leftend) !== false) { $src_topleft = substr($src_topleft,0,strpos($src_topleft,$top_leftend)); } //top_leftend } //top_left if(strpos($src,$top_right) !== false) { $src_topright = substr($src,strpos($src,$top_right)+strlen($top_right)); if(strpos($src_topright,$top_rightend) !== false) { $src_topright = substr($src_topright,0,strpos($src_topright,$top_rightend)); } //top_rightend } //top_right return itb_get_advertisers_array_from_src_google($src_topleft . $src_topright); } //end itb_get_qry_src //itb_get_advertisers_array_from_src_google function itb_get_advertisers_array_from_src_google($src) { $debug_mode = false; $pre = ""; $post = ""; $advertisers = array(); $srca = explode($pre,$src); if(count($srca) < 2) { if($debug_mode) echo "itb_get_advertisers_array_from_src_google 1 " . count($srca) . "
"; return false; } $pos = 1; while($pos < count($srca)) { if(strpos($srca[$pos],$post) !== false) { $srcb = substr($srca[$pos],0,strpos($srca[$pos],$post)); $srcb = itb_standardize_advertisers($srcb); if($srcb != "" && !In_Array($srcb,$advertisers)) Array_Push($advertisers,$srcb); } $pos++; } //while if($debug_mode && count($advertisers) == 0) echo "itb_get_advertisers_array_from_src_google; advertisers count is 0
"; return $advertisers; } //end itb_get_advertisers_array_from_src_google //itb_standardize_advertisers function itb_standardize_advertisers($adv) { $adv = strtolower(trim(strip_tags($adv))); $adv = str_replace("www.","",$adv); $adv = str_replace("http://","",$adv); $adv = str_replace("https://","",$adv); $adv = str_replace("- ","",$adv); //for bing if(strpos($adv,"/") !== false) $adv = substr($adv,0,strpos($adv,"/")); if(strpos($adv,".") !== false && (strlen($adv) - strpos($adv,".")) > 4) { $adv = substr($adv,strpos($adv,".") + 1); } $adv = trim($adv); return $adv; } //end itb_standardize_advertisers ?>