|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
0 `7 Y" I! V7 b+ C! s" k7 D2 t' X5 W& `+ f/ {9 d. |
The Automated LinkGenerator is a Web Service to create LinkShare click links for any product on a merchant's site.It provides the same functionality as the LinkGenerator feature in the Individual Product Links interface, without having to login to the affiliate interface.
1 [" f9 |# L$ N% ?0 [' Z
* U* ~1 S8 }! eTo create an Automated LinkGenerator link, an affiliate sends a URL from the merchant's site to LinkShare in the format specified below. The URL can be sent through a browser, a tool like wget or curl, or an automated script. For each URL provided, LinkShare returns a click link. An affiliate can request up to 1,000 links within an hour.$ N/ n8 C! r" m6 b+ q# |/ _/ }
7 A0 Q/ j* M$ J9 k6 fURLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):' z' \8 X1 w( D y
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>; q# R5 f7 u* d1 `. w
The token ID can be found in the affiliate interface on the RSS Resource Page.8 k3 C0 i9 ?! t- y! |
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
( t7 |0 _" l# S- w( V- L9 h9 gThe URL is the landing page on the merchant's site. Special characters do not need to be encoded.5 v5 \0 p8 Y0 k8 |
A URL with these fields populated might look like:
! a T5 m$ e* n, U+ f. @: bhttp://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
6 c' }4 k) H% }7 r: [- I% t' M$ z3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
! O4 D9 [( c; F; ?$ O4 L: B( u. `3 Z2 g; A8 q' A( o \- w1 O
LinkShare will return a click link in the form:
& \. o" h" r O2 J8 w8 ihttp://click.linksynergy.com/fs- ... pe=10&tmpid=939
& e; Y6 ?3 @' \" u&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth6 T9 I4 b( y# Z s) i8 Q
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
, k0 t) \6 X" m%2526page%3D1%2526matches%3D24%2526qsort. ^) x5 {& t+ {+ N4 Y
9 f2 y5 }! }, w- m) ~The system will give errors for the following situations:4 }5 ~9 X/ s) I$ X4 r
The link is provided in an invalid format that LinkShare cannot parse./ c4 ^0 [- Y% Y3 k' c
The link does not include a token ID.
4 G" c& o1 `( g/ r0 [0 C' PThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
: S: H( z6 M; i( ~- @The affiliate is not joined to the merchant MID included in the link.
1 a. y6 W7 O' ~8 [. B3 CThe merchant MID included in the link is invalid.: `; Q# a/ g6 j! F7 o& r, H
The link does not include a merchant MID.
% c: [+ v" |' j0 e) v9 RThe merchant does not have LinkGenerator enabled for affiliates.. G. l4 E7 z% o! f" Q
The link does not include a merchant URL.. ? F& a' ~) y% C+ K
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.- G; q0 Y) I' d+ g* H% L: Y# h) k6 z
Once LinkShare has returned a click link, it can easily be placed on your affiliate site.8 j% W" C6 c: W, H
The format for a text link will be:& Y( ?; i9 J1 a- W& N6 F
<a href="[CLICK_URL]" >[LINK_TEXT]</a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=[AFFILIATE_ID]&bids=[OFFER_ID]&type=2&subid=0" >
# Y* y% j% o3 _: ~4 R( e0 UPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].+ A5 R/ F; F2 \* y
Provide link text for the user in place of [LINK_TEXT].! U( @; U' A9 Q6 y
The [AFFILIATE_ID] can be found in the returned URL from the Automated LinkGenerator tool. It will appear just after ?id= in the click link just as it will be pasted here. In the example above, the [AFFILIATE_ID] value, AAA111AAA11, would be found as ?id=AAA111AAA11. Paste this value in place of [AFFILIATE_ID]., l) N* o! K$ q
The [OFFER_ID] can also be found in the returned URL from the Automated LinkGenerator tool. It will appear between &offerid= and .1. In the example above, the [OFFER_ID] value, 999999, would be found as &offerid=999999.1. Paste this value in place of [OFFER_ID].) S6 q: m0 K, c- K% `
The format for a banner link will be:
6 }8 b" f: ^) E<a href="[CLICK_URL]" ><IMG border="0" src="[IMAGE_URL]" ></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=[AFFILIATE_ID]&bids=[OFFER_ID]&type=2&subid=0" >
: v: Y' \. f/ l' uPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
7 Z. v: t Q9 D4 }& w. Q( M. R/ V" ^Paste the URL of the image on the merchant's site in place of [IMAGE_URL].$ q3 r% c& ^, x
The [AFFILIATE_ID] can be found in the returned URL from the Automated LinkGenerator tool. It will appear just after ?id= in the click link just as it will be pasted here. In the example above, the [AFFILIATE_ID] value, AAA111AAA11, would be found as ?id=AAA111AAA11. Paste this value in place of [AFFILIATE_ID].% r, [. v1 x+ T* I
The [OFFER_ID] can also be found in the returned URL from the Automated LinkGenerator tool. It will appear between &offerid= and .1. In the example above, the [OFFER_ID] value, 999999, would be found as &offerid=999999.1. Paste this value in place of [OFFER_ID]. |
|