|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
8 H1 ~1 D1 G# a& k5 i9 F3 u
# v8 ~( j ~8 U7 {- N3 S7 Y# qThe 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.
" m) m4 ]7 S g9 h+ l
6 P" U0 w P9 b+ fTo 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 l6 W0 A* S, d) e7 Q0 A$ `, B
9 I+ u3 |' A' Y& z( e4 ~' ?7 HURLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order): V" ~4 S6 G; b0 a% x0 l
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>, a0 n& W3 U5 u6 v( A7 Z$ h+ R
The token ID can be found in the affiliate interface on the RSS Resource Page.
$ B$ T6 @1 l: A. t% j& jThe MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.0 Q5 L: o3 @: B/ K* P
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.4 x" f& o* e, V
A URL with these fields populated might look like:5 U; j& t) D3 s( R! m5 O; r
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
3 [0 o! W9 W( w$ r) U3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes- \# Q6 a: U; O( R7 L! f
' D; U4 E; H; ^4 ?5 v7 N( S
LinkShare will return a click link in the form:
, q' W: z0 w% Q& B5 i+ l1 I. `4 v2 Uhttp://click.linksynergy.com/fs- ... pe=10&tmpid=939
9 ^, n9 ~* K/ L; G0 Y7 X&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth/ n3 K. @, ^6 r9 q
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D05 n K% |4 ^. n9 Q+ |# v6 S7 q
%2526page%3D1%2526matches%3D24%2526qsort9 j4 i1 q- }4 w/ k' o
" T2 B2 W$ y0 k. u1 {The system will give errors for the following situations:
5 K2 n$ q( D# i! K( V3 O* VThe link is provided in an invalid format that LinkShare cannot parse.
4 L: U2 U; ~/ D# ^9 G4 k* lThe link does not include a token ID.
& S- k7 } g) Z' s0 b2 DThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.# a$ k# b2 ^8 q9 A" {
The affiliate is not joined to the merchant MID included in the link.; L+ y z! G+ M1 M a# n0 }: G: j2 \
The merchant MID included in the link is invalid.8 h2 b8 z: W8 C- A3 b/ k
The link does not include a merchant MID.
( F: X! S; b* d# Q$ m, t1 dThe merchant does not have LinkGenerator enabled for affiliates.+ j7 A( A; v7 ~ e$ Y: A
The link does not include a merchant URL.
8 o0 o3 V$ S4 K& T' uThe affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.9 N: d" v4 Y: k4 m
Once LinkShare has returned a click link, it can easily be placed on your affiliate site.
8 t4 X4 v- f9 c% @# F9 e. sThe format for a text link will be:
4 G% s. n3 u) F& P. p4 `/ p<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 X' H0 S+ e! G$ T9 tPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
$ Z5 L: y( m( jProvide link text for the user in place of [LINK_TEXT].$ r$ K( U( `* }/ 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].( r$ C7 i9 `8 |5 F3 K3 n5 B
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]." W, O( |- V J: O3 ]
The format for a banner link will be:
2 i0 e1 W9 p7 S1 I1 }) Q) k<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" >
; b7 ~: j e( P. uPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
7 U' ]8 a/ u* hPaste the URL of the image on the merchant's site in place of [IMAGE_URL].
7 d7 Z+ q2 o+ V$ xThe [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]. n' i1 D3 b+ I1 A0 h
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]. |
|