|
|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
: V3 G) ?$ J8 } `1 H3 \
) ^2 `6 O7 ~8 U8 f9 q1 xThe 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.0 H2 e) c' k3 R' P% \
+ w* O& m0 p, d/ r1 b; S! v3 r
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.
) n, w( \1 {4 B0 b: G- X
8 A' I; U: B% i. t0 a3 K4 TURLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):0 {0 d+ i- O) C
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>
# z7 x7 R% p0 d, Z. GThe token ID can be found in the affiliate interface on the RSS Resource Page.# h8 i# [; Y9 G5 }+ ]% U
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.$ l$ w6 I8 |# W- z/ U; M* d
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.; J! c( ]- K; Q
A URL with these fields populated might look like:( ^/ v5 u5 c+ M. o2 J+ A& ?
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
6 z" u7 ?3 V) p3 B+ p3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
1 s: L/ F2 [8 Y) [5 O: V# ]$ h0 D1 q9 M. E% M
LinkShare will return a click link in the form:9 p8 u. p E2 @; D$ F, x; _; a
http://click.linksynergy.com/fs- ... pe=10&tmpid=9395 f; w+ n( D3 A
&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
$ ^ p0 Q' l; ^/ j2 s& F%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0& Z4 v8 n( {2 v8 _3 B
%2526page%3D1%2526matches%3D24%2526qsort
. A. p! J/ Y6 w5 T7 ~: F* V/ s7 a1 G
The system will give errors for the following situations:
5 B9 Z+ w, U* k7 p! @The link is provided in an invalid format that LinkShare cannot parse.8 S6 d; a( B- T% w* Y h
The link does not include a token ID.- e' J* k j5 E" x8 D+ w1 C$ \1 ^
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled. s# Y' u/ I6 J. q$ X, s& |
The affiliate is not joined to the merchant MID included in the link.
3 h* q; _3 S8 @, n- NThe merchant MID included in the link is invalid.
+ v! Y; F( a: ?7 ZThe link does not include a merchant MID./ F' y! U8 G9 |
The merchant does not have LinkGenerator enabled for affiliates.% K: ~# \/ w; ?: X! W/ j
The link does not include a merchant URL.
" q; n" [6 {/ P- v& [# yThe affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
/ U6 q3 A1 I0 n5 `# I6 bOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.
; i1 t9 e: o; n7 X$ ?The format for a text link will be:3 v$ Q' A: b. 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" >: e( @# j+ w: B% h, V) h
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].1 a7 ~: _8 v. R8 |0 a
Provide link text for the user in place of [LINK_TEXT]." i0 ^0 u+ z' b# a$ o/ i) k
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% Z! y3 W7 O$ m% v- aThe [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].
g8 q) q+ _8 t" {$ f4 tThe format for a banner link will be:
' S' g0 e% z2 p' P( ^8 P/ R4 |<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" >
( |- s4 u6 o# t! ^5 b; [Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
1 A* B U) c, ~) M7 \: CPaste the URL of the image on the merchant's site in place of [IMAGE_URL].
# l( i4 u1 p& jThe [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].5 k4 i: @ F8 K2 J
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]. |
|