|
|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
9 ^( C. y9 l% u @7 c8 w# _' Y/ Q& Q3 [+ {' m. z
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.
J. y+ j8 w7 g% ]
* I1 F* @+ P- i' v( cTo 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.. j& n5 ~2 x% [6 c5 Y$ r
% h4 M/ U* C. J2 U7 b2 `% Y; K
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):
* A8 J& c* F' `" Chttp://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>+ x; ~6 R8 c. S$ o2 B c. L
The token ID can be found in the affiliate interface on the RSS Resource Page.- w: t: s6 M, k2 S# P
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
7 p$ l$ X7 x( j) tThe URL is the landing page on the merchant's site. Special characters do not need to be encoded.4 s$ h- L! R. u7 G
A URL with these fields populated might look like:' d" u9 z1 a( P T8 `, t
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
; B# F3 z# i/ V. J9 o9 r# h3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
! P9 y, w0 [' r% z' a$ z% `+ |3 _
' E h8 f7 n! e3 tLinkShare will return a click link in the form:! b& h$ h( E0 `7 q# w' ~
http://click.linksynergy.com/fs- ... pe=10&tmpid=939
/ ^, Z- f( f# x&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth; e- B; c) P$ K% Y) ~* G" q
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
: ~ ~4 F! x5 W%2526page%3D1%2526matches%3D24%2526qsort' c6 ~) _+ \( j, L
& X4 g: D! ]( [% L: c
The system will give errors for the following situations:9 o. f, Q* z P* E0 C) o' N4 G
The link is provided in an invalid format that LinkShare cannot parse.
6 H) T& J$ z: j# t8 ZThe link does not include a token ID.
! J9 ^ |$ ^% g5 JThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled. H+ U2 f( i; \: Y' d, _. h# N
The affiliate is not joined to the merchant MID included in the link.% y$ a% _2 o+ d ?
The merchant MID included in the link is invalid.' O! R, g+ u0 |, J& W- I8 y
The link does not include a merchant MID.
, z1 p$ d) r6 G! T+ G9 i* X! w TThe merchant does not have LinkGenerator enabled for affiliates.. c; I# y% K. ]; R1 X% B2 |, r
The link does not include a merchant URL.
2 |& Y Q% v8 DThe affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
) h% v+ |) e& m* ]7 T* ?Once LinkShare has returned a click link, it can easily be placed on your affiliate site.8 ^0 B$ u7 ~" ~. O3 d! ^
The format for a text link will be:8 e/ N4 i8 f- n% k3 G9 M5 S$ x
<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" ># k% ?5 A$ ^7 w- D6 T" S( B, y
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].% ]7 \) h, n. N
Provide link text for the user in place of [LINK_TEXT].
. Y4 g" P, c9 F4 W T5 g8 C* 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].
2 K8 g+ ~/ m9 v; j: V% m8 LThe [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].
6 X5 P( ?0 ` n4 o) o6 \. jThe format for a banner link will be: y% Z. J. [" h9 k9 Y+ q
<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" > J1 E5 V. G+ B. K& o4 C
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].# N5 R! Z+ L' T' Q% J
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].4 l0 V8 r9 A5 o( s: Y7 D
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].. t7 E8 Q3 ~* [! }% {2 M
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]. |
|