|
|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
& m4 E# W# u3 z& f9 i& P8 R+ H( k2 k+ v# ?5 n; x" 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.
: D! u6 P( L0 A2 _( c4 N/ b4 ?: @- o. s, V4 J& x- {, o
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.
5 p( X( J' \# v# Z# \
1 \5 s( d% k% e! Y& p" I8 MURLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):
; A& W6 ]( ]& T H$ thttp://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>7 j; [2 o( g8 f* |) r
The token ID can be found in the affiliate interface on the RSS Resource Page.' p. z6 t8 c2 Z
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.1 m5 ^$ b9 b: R$ @. {6 M
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.
D9 A& q d! _: d7 [& RA URL with these fields populated might look like:
W i; b+ ]5 G4 uhttp://getdeeplink.linksynergy.c ... 637c015c38358d4c01a5 B7 O' g" ]3 @7 t
3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
6 X a: X; q6 p5 q( C3 i% ?* ]! e% i E
LinkShare will return a click link in the form:9 k, E4 s$ i- j! l Y' Z5 p4 c
http://click.linksynergy.com/fs- ... pe=10&tmpid=9395 }+ F; C% S9 J8 q- ^/ i/ N+ a
&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth; U; D) t/ \0 z6 \: ]
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D04 K5 o7 t- t1 W3 P# Z
%2526page%3D1%2526matches%3D24%2526qsort
5 U; x3 u$ |# w4 g/ s s5 [2 j. {: c" C9 t+ P% O# s" b' ^
The system will give errors for the following situations:/ e( n+ ]1 K/ }0 V# M
The link is provided in an invalid format that LinkShare cannot parse.+ u, F$ z4 m9 G3 a, z8 D2 A
The link does not include a token ID.; s3 m! h9 _2 I; E& t+ t
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
1 c$ J6 k% c' y: S( h& y) v oThe affiliate is not joined to the merchant MID included in the link.! S- O) k3 n; i% ^: g
The merchant MID included in the link is invalid.
1 G2 [ Q7 t5 S' J I1 K/ h# y+ vThe link does not include a merchant MID.3 C1 h h8 ?! N, @4 [: v5 K
The merchant does not have LinkGenerator enabled for affiliates.% q! S; e1 j* d
The link does not include a merchant URL./ f0 w5 I+ ~" Y1 o9 M
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
' k2 s& A1 Z" bOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.
( |5 T4 ~$ p! Y; Z x9 LThe format for a text link will be:; \- I: K k( `1 l
<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" >0 b" ]4 g0 L* r, @ G
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
, N, l) g" L, R+ W, [; @9 QProvide link text for the user in place of [LINK_TEXT].
- X) v) s5 C( x! o6 ]$ c, CThe [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].3 e) G, o- f1 S. P3 b! v+ ^4 A$ u1 }
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].
! u j" @ X. J* ?8 f i. M" KThe format for a banner link will be:
' |' f" ]" 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" >
3 T2 F0 \1 v7 i' {5 v: zPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].1 G* r" ~6 z; s% Y2 L8 `" `
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].
! F: e' ]/ z5 L4 \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].' e% u* ^/ q a$ K1 ~. o
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]. |
|