[ Team LiB ] |
Hack 72 Deep Linking to Amazon's Mobile Device PagesIf you're developing an application for a mobile device, you can easily integrate with Amazon and collect referral fees in the process. As the Internet expands beyond the world of desktop computers and browsers, Amazon is expanding as well by offering their services in a variety of alternate formats for alternate devices. They appropriately call these alternate formats Amazon Anywhere [Hack #7]. Of course these formats are also connected to the associates program, so you can collect referral fees by driving traffic to them. Linking to Amazon Anywhere entry pages is straightforward, but linking directly to products or search results isn't as obvious. If you're developing a WAP application and want to link to an Amazon product for sale, or if you just want to browse directly to a product detail page like you can through Amazon's web site, it's a little tricky. As with all Amazon URLs, once you know the pattern you can change the variables to get what you need. The base URL for Amazon Anywhere links contains four unchanging variables:
So the base URL for any link will always contain these variables: http://www.amazon.com/exec/obidos/redirect?tag=insert associate tag[RETURN]
&creative=insert developer token&camp=2025&link_code=xm2
The fifth variable, path, holds all the information about what format and what information you'd like. Here are the formats available:
In any of these formats, you can link directly to product detail pages with an ASIN, or search results pages with a keyword. The path values are shown below. 72.1 Product Detail PathsHere are the potential path values for the various URL formats, which should be added to the base URL:
72.2 Search Results PathsAnd here are the potential path values for search results:
Search results pages are slightly different for PDA and RIM Blackberry devices. See the following examples to learn how they're done. 72.3 Assembling the URLsPutting the URLs together is now just a matter of assembling the pieces based on the desired format and information. Take the base URL and add either the product detail or search results section for the needed format. For example, here's a WAP product detail page URL: http://www.amazon.com/exec/obidos/redirect?tag=insert affiliate tag [RETURN] &creative=insert developer token &camp=2025&link_code=xm2[RETURN] &path= ct/text/vnd.wap.wml/-/tg/aa/xml/glance-xml/-/0596004478 And here's a VoiceXML search result URL: http://www.amazon.com/exec/obidos/redirect?tag=insert affiliate tag [RETURN] &creative=insert developer token &camp=2025&link_code=xm2[RETURN] &path= dt/vxml/tg/aa/xml/search/-/books/hacks /1/ Keyword search result URLs for PDA and RIM Blackberry devices have a different format, but the concepts are the same. Just replace the keyword, developer token, and affiliate tag with the proper information.
These definitely aren't the kind of URLs you want to key into your phone. But if you're building a site for a mobile device, you can link directly to Amazon and earn referral fees in the process. |
[ Team LiB ] |