|
|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
4 W x; r* j4 g( W! f5 F9 d+ U; d5 r4 p
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.3 h; k+ d% z! \
4 ]2 h l. H6 [
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.
' B+ `, D: r6 m. x, e! t1 n! y$ q1 |, o/ h6 r
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):1 q& b; G) J0 _; ~% X
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>; o: ~' n* p" {8 E$ Q
The token ID can be found in the affiliate interface on the RSS Resource Page.( j1 W, k! U1 e/ b6 ^
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
+ ^+ B* i% K" P2 Y% ^% ~) h7 t v! RThe URL is the landing page on the merchant's site. Special characters do not need to be encoded.
, M* p1 u0 m5 s0 ?' K: G+ kA URL with these fields populated might look like:
& O7 d: V$ y4 L: _/ ghttp://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
6 U* N8 S0 V1 j2 D' J3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
" {$ Z4 A% e' m& T- T. m; E, a, {- Z3 w, T9 d. K* ^
LinkShare will return a click link in the form:# H# P$ o+ p! F/ ^7 F
http://click.linksynergy.com/fs- ... pe=10&tmpid=939
9 @5 @7 c+ G' f) a1 m&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
; w0 c, f Z' Q& `% n) c0 f+ g) x%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
6 e& K$ ^, m- D9 {7 K%2526page%3D1%2526matches%3D24%2526qsort# ?) Z0 g$ P: L( }
! \+ l) t6 _0 t5 ?The system will give errors for the following situations:' q0 z, x" `5 E, ?; ]4 L
The link is provided in an invalid format that LinkShare cannot parse.
- g4 c0 }$ `$ _# q. y5 FThe link does not include a token ID.
4 V5 B$ l3 p6 [% E& L" s& ?& DThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
; n7 {# J) ~1 v, W2 DThe affiliate is not joined to the merchant MID included in the link.
. P! S$ O- ~6 a7 J/ A5 D3 iThe merchant MID included in the link is invalid.' }8 e3 q! `1 W% p1 C1 N- R
The link does not include a merchant MID.* J$ E5 B9 v3 X+ d9 ]7 k
The merchant does not have LinkGenerator enabled for affiliates. w* [0 G% ]/ b: k
The link does not include a merchant URL.
+ i* ]4 M0 |8 C& L7 h7 ~The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
1 v( L6 ^5 s3 Q7 g* bOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.
0 w9 Y, Q( I) Y/ k0 k/ |, hThe format for a text link will be:
/ _; U) v/ Q. X7 e" Z* `; Y<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" >
& \2 t% O# C. D* U4 wPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
( C: I T, Q' d$ @* ]Provide link text for the user in place of [LINK_TEXT].
0 Z7 X# s5 A2 f1 I- ? aThe [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].4 @ X& G9 Z% \: ?
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].% |' C/ y* }' V
The format for a banner link will be:8 {! ^' j6 O3 |2 I6 z+ W+ S
<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" >
; e( X* D' c# o/ X! z Y$ {Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].1 K3 _* e! l E+ L* W9 g6 ]
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].
, a' E5 p+ W0 W* [5 d! B$ A5 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].8 N* v& U Y E4 u- Y; h! f/ I. U
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]. |
|