|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator) @, Q2 V0 I3 k) d
+ s% k E; ~0 a5 P5 k( v$ Y, a
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.) N2 U. P( V' U7 b( [* m, Y; o1 W- F# T0 y
7 k6 H. t5 |( B* `
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.6 C* O* X& d; F1 s
G1 s5 i6 _7 ^# O0 y
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):8 u- j) {7 ]0 D4 y$ j- t) i1 t
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>
/ }9 o# {6 r9 cThe token ID can be found in the affiliate interface on the RSS Resource Page.$ k- H4 w7 z: P
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.9 c6 N5 o, a0 Q ]( ~
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.
7 W# A8 t" t5 V; FA URL with these fields populated might look like:5 e) ~7 b) n9 q
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a/ _3 h) D% `" P' x2 v5 s6 z
3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
# w& l: C8 T, Y7 `( T1 l& ^6 x2 F3 u( @' k4 ~8 _ K p' H
LinkShare will return a click link in the form:; m4 O; j0 Q$ V4 R
http://click.linksynergy.com/fs- ... pe=10&tmpid=939
4 k2 t$ N) N5 _" Y&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
4 o+ W: V4 b9 \/ d6 I2 c% L%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D08 |+ q/ h" s7 D
%2526page%3D1%2526matches%3D24%2526qsort
# O2 l# B: H5 ~ ^( T6 d, M# c1 S5 R5 h( @3 m4 ^# T+ i
The system will give errors for the following situations:0 }. f* {+ F) ~' ]
The link is provided in an invalid format that LinkShare cannot parse.
- ], T8 s: W& f* \The link does not include a token ID.
4 {$ F/ X+ C+ P/ T5 v* L" EThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled./ t( N" z3 O: \ F. p
The affiliate is not joined to the merchant MID included in the link.1 d- C& }! T# D; W" Z5 s
The merchant MID included in the link is invalid.) K( X( y* q4 w1 k/ N6 k
The link does not include a merchant MID.! l( s% r+ d5 y, G+ a8 I" m4 v; j
The merchant does not have LinkGenerator enabled for affiliates.
0 T7 c; s/ y" O( oThe link does not include a merchant URL.
- \0 k3 |) b L5 F TThe affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
2 E, e- d* m: b. s2 sOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.
* m$ J7 E7 F# A7 uThe format for a text link will be:
( u1 j' i2 g. s r6 G* I5 l) e<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" >8 z1 C$ w" u3 s W
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].* S: B2 V' E, l( ]8 F# K& X; P0 Y
Provide link text for the user in place of [LINK_TEXT].' q9 M$ ^4 {2 U1 {! G1 U
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].% v- [+ R" |* N% E
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].
3 ^' e) Y0 {) b1 I. }$ y/ K9 qThe format for a banner link will be:
/ j7 j% Z: v/ z/ j<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" >$ i y- \8 R$ `- @% a* Q
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL]., }; b6 ?! t$ K s3 k+ x
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].
5 l1 U- P1 e1 lThe [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 R& O9 g8 E/ Y
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]. |
|