|
|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
* g4 a4 A K8 P( s* ^# T
$ m: L/ c/ y% D. W5 \" E! YThe 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.
0 i; H, a, i3 e) k+ q/ [: T- F6 u& ]9 f) H1 C8 ?& r2 l( A
To 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.# |2 W" }( |- m& g8 H
- c/ d% T) H4 ]. m$ ^7 p
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):$ f' g @8 d- S* J) q
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>. |7 f* W3 y5 v6 M8 o
The token ID can be found in the affiliate interface on the RSS Resource Page.7 m" Y3 a. s+ i
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
( n; Q u4 S. y! d* YThe URL is the landing page on the merchant's site. Special characters do not need to be encoded.
) ]/ H+ F+ p; g# @A URL with these fields populated might look like:. V6 b2 } w$ X0 C9 L2 x3 X: b% z
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a- E& |- Q/ X" Y. e' M/ H- q+ z
3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
8 F/ v8 y/ g4 A$ K0 D2 F1 H
+ B, }. G4 o& p* C9 {& h$ g& e* ?LinkShare will return a click link in the form:
. k6 K. n- R ]5 X; A8 u$ rhttp://click.linksynergy.com/fs- ... pe=10&tmpid=939% f, O \- N- J1 X8 k, A% o4 W/ h! B5 i
&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth/ c" K" |& A' F" S+ B0 n5 s2 W# e
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
2 V( J) Q; \- [* S%2526page%3D1%2526matches%3D24%2526qsort$ U' ^4 `8 f9 O8 V9 h
. l! ]- a R# _5 w m' }- R
The system will give errors for the following situations:
2 L' @0 l6 `. v6 HThe link is provided in an invalid format that LinkShare cannot parse.
" }" q' n; x c1 T H# l2 z& x" BThe link does not include a token ID.+ ~5 z7 M/ } X9 p
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
7 x( t' s0 N- Z. }9 G, GThe affiliate is not joined to the merchant MID included in the link.: b3 g# [( c1 t" K0 J! \5 N
The merchant MID included in the link is invalid.6 U+ W5 a7 x) Q% O
The link does not include a merchant MID.8 l( e1 I5 N* e$ g) k. _
The merchant does not have LinkGenerator enabled for affiliates.
6 f! t/ n/ p, \3 wThe link does not include a merchant URL.9 I9 Z% H' q* l. |3 t% m0 h. D
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.- Y% i% O5 H* |+ y
Once LinkShare has returned a click link, it can easily be placed on your affiliate site.
) `- O6 f0 q2 q1 Z5 {. [9 N! lThe format for a text link will be:8 j6 \# S; @+ C7 h
<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" >
E- {2 e3 S8 t. QPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
- ~2 T! N8 u# a) y8 V8 x* D- q: \$ ?Provide link text for the user in place of [LINK_TEXT].
& j) I/ D$ P3 w. H6 X; i; Y" {8 VThe [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].
% C H2 ~) E, a/ M& I. l' o8 qThe [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].
7 b3 N. g0 q) g B' ~The format for a banner link will be:: ?! D5 s: n! U5 N( {' n
<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" >
9 l9 I4 f, ?, _3 |1 DPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
: ?( p! q M0 [3 d& z3 }+ {Paste the URL of the image on the merchant's site in place of [IMAGE_URL]. P% ~4 B) A, s1 z
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].
8 p k2 i* l' mThe [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]. |
|