Ebay recently moved their affiliate program from Commission Junction to their in house Ebay Partner network.
This is some code that will help you quickly build ebay affiliate links without logging in to their website and using the auction link building tool https://www.ebaypartnernetwork.com/PublisherToolsHome
PHP functions for Ebay.com originally from Tamebay:
function get_country($country_code) {
$US = "711-53200-19255-0";
$IE = "5282-53468-19255-0";
$AT = "5221-53469-19255-0";
$AU = "705-53470-19255-0";
$BE = "1553-53471-19255-0";
$IN = "4686-53472-19255-0";
$CA = "706-53473-19255-0";
$SG = "3423-53474-19255-0";
$HK = "3422-53475-19255-0";
$FR = "709-53476-19255-0";
$DE = "707-53477-19255-0";
$IT = "724-53478-19255-0";
$ES = "1185-53479-19255-0";
$CH = "5222-53480-19255-0";
$UK = "710-53481-19255-0";
$CN = "4080-53484-19255-0";
$NL = "1346-53482-19255-0";
return $$country_code;
}
function aff_link($url,$text,$customid,$country){
$target = get_country($country);
$prefix = "http://rover.ebay.com/rover/1/";
echo "”.stripslashes($text).””;
}
place this PHP code in your website to generate the ebay affiliate link
aff_link("URL","link text","custom ID","country");
where
* URL is the eBay URL to link to
* link text is the anchor text you will use – will also appear as the link title attribute)
* custom ID is like the CJ SID, append a specific ID to any link, for granular affiliate link tracking
* country is the two letter country code relating to the auction program being promoted (US, UK, FR, DE, AU etc.)
You can see more php code to create custom ebay affiliate links at Tamebay.
Related posts:
- Automated Free Ebay Sniping Program
- Pepperjam Network Affiliate Program Incentive
- Drive Saver Affiliate Program
- How to Get Booted From Your Affiliate Program in 10 Seconds Flat
- BOTW $10,000.00 Cash Giveaway and Affiliate Program





May 12th, 2008 at 1:02 am
“You can see more php code to create custom ebay affiliate links at Tamebay.”
my post has also changed the code that I wrote. Pretty ironic really, :^O
May 13th, 2008 at 6:22 pm
Sue you have a link with full credit. If you do not wish to have a link from this blog please let me know and i’ll remove it.
August 30th, 2010 at 4:29 pm
I wanted to let you know that I have been watching the ebay affiliate feed for a few days and I would like to sign up a new program.