|
|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
" P' ~! U8 V# F! R
2 C+ @! S5 V: p l/ P2 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.
- b) Y @8 Q, j4 o k; m; F- N$ g. q
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.4 i0 d6 C& p* D% G0 s" ]8 m! [
- S) U8 w% C& W/ I6 Y
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):4 R. {8 |& T# p1 P+ g# B8 c K
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>
1 Z5 K( x. |* R- s: G/ LThe token ID can be found in the affiliate interface on the RSS Resource Page.* o: _* t4 ?, d( M% u1 Q/ q
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
$ U A( p$ a* B( F, u. VThe URL is the landing page on the merchant's site. Special characters do not need to be encoded.9 h- B" ~2 U; ?+ u' D
A URL with these fields populated might look like:
1 a/ s5 J. w% P( F i- Fhttp://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
1 e/ u6 m6 L* f3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes2 Y) E$ I0 W+ p9 [3 k! w
6 q0 ^# Q. o6 v$ G @0 cLinkShare will return a click link in the form:3 C1 I' b0 A7 w4 I: U8 Z0 V
http://click.linksynergy.com/fs- ... pe=10&tmpid=939
0 x, N+ }2 `% @+ k4 f&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
0 u" N( w% u6 M$ D9 S2 M%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
; B$ B4 a" v5 H+ q, H, `- b%2526page%3D1%2526matches%3D24%2526qsort
9 p. j+ t* _6 E' x/ o4 `
9 P! k4 y! e. }9 r `7 J+ lThe system will give errors for the following situations:
$ a9 I% F a& {* Z- PThe link is provided in an invalid format that LinkShare cannot parse.
& l! K' }: o% U5 C- Z q: EThe link does not include a token ID.4 @0 K8 W B6 k9 _& ]* n+ f2 S
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.) c7 v% v+ d& T% z/ W# ^; t
The affiliate is not joined to the merchant MID included in the link.
8 O g1 S& {& H7 b& q: AThe merchant MID included in the link is invalid.* r) w/ C3 z" V" h
The link does not include a merchant MID.
$ S3 s- e8 Z2 {$ Z) i( {( rThe merchant does not have LinkGenerator enabled for affiliates.; i: {( V! z- ]6 E7 J+ x
The link does not include a merchant URL.6 R) z* `* ^) n6 ]2 @
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.2 g: ?' I# e& K# f# G
Once LinkShare has returned a click link, it can easily be placed on your affiliate site.
- @% `/ Q0 T* oThe format for a text link will be:
. E! j; I5 T) Q6 h& P5 i<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" >
7 r8 C- [( r& L& f7 y; ZPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
& a0 D: x; M; b1 `% n2 F2 w, ^, dProvide link text for the user in place of [LINK_TEXT].
2 S& @9 {- ?0 g$ B; R" iThe [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 U. [9 v; |3 R+ r' C1 _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].
$ Q3 x/ k3 R. CThe format for a banner link will be:( Y5 f x+ l( P5 d& H
<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" >
D% K6 o! B2 Z8 e& }& e6 D0 vPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].- @7 Z7 T* {$ p u/ ~3 A" I
Paste the URL of the image on the merchant's site in place of [IMAGE_URL]., n" f8 v) O* i6 U6 O: Z- K) k, Q
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].
% X+ R& }! z0 M" U2 `) F6 i$ w: KThe [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]. |
|