August 19, 2013 at 8:10 PM by Dr. Drang
This afternoon, I followed James Thompson’s tweet to learn about Apple’s new affiliate program. It’s dropping the slow and exceedingly clumsy LinkShare and moving to the Performance Horizon Group (PHG).1 The changeover will be complete on October 1, so if you don’t switch over by then, your affiliate earnings will dry up.
I clicked from one Apple page to the next, trying to learn how to transfer my account details from LinkShare to PHG. Luckily, just as my frustration was about to hit the boiling point, Underscore David Smith came through with this post that answered my question.
To get setup with the new program the first thing you need to do is sign up for a new account with PHG. Your old LinkShare account is essentially deprecated at this point and won’t carry forward.
Would it have been so hard for Apple to just come out and say this? I signed up for a new account with PHG and was approved in minutes.
UDS’s post continues his excellent tradition of giving fellow affiliates exactly what they need to create their own affiliate links without the rigamarole of the Link Maker tool. I immediately changed my sidebar affiliate link script to match his latest recommendations and updated the links over there to the PHG style.
The changes are minimal. Here’s the new script:
The new stuff is in Lines 13-15, where I’ve added my PHG token and a “campaign token” (see UDS’s post for details on that), and Lines 38-41, where they get used to generate the affiliate link.
The general workings and motivation for the script are given in the post that described the original version of it. Basically, I find an Apple web page or iTunes or App Store link to the product I want to feature and use that URL as the argument to the script:
What pops out is a chunk of HTML to insert into my sidebar, complete with links to the store and artwork. All I need to add is my personalized description of the product.
I’ve also updated my TextExpander shell snippet for generating Apple affiliate links to the new system. It assumes a regular Apple product URL is on the clipboard and outputs an affiliate URL. Handy when I want to add a link to the body of a post.
The script itself is here:
python: 1: #!/usr/bin/python 2: 3: from subprocess import check_output 4: from sys import stdout 5: 6: # My affiliate ID. 7: myID = 'xxxxxx' 8: 9: # Get the URL from the clipboard. 10: clipURL = check_output('pbpaste') 11: 12: # Add my ID and the partnerId parameter to the URL. If there are already 13: # queries, add them as additional ones; if not, add them as the only ones. 14: if '?' in clipURL: 15: itemURL = '%s&at=%s' % (clipURL, myID) 16: else: 17: itemURL = '%s?at=%s' % (clipURL, myID) 18: 19: # Write it out 20: stdout.write(itemURL)
I’m writing this from a US perspective. Check the Apple page to get the details right for your country. ↩︎