|
|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator7 { U5 N+ Y/ Y5 J: G
$ T+ C* |5 H. _- J$ n9 J" C7 t- OThe 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.$ a: L: f$ s: N! L o/ z: c( Y. u" l8 B
[% ?/ S* B3 B f
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.
' m! _# M- o; |! J7 ~+ `# R/ K% q, e, X& s
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):5 E9 x' ?7 N5 e) r% ?- \' a
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>
% f- l! u( y9 @3 IThe token ID can be found in the affiliate interface on the RSS Resource Page.
- d% r) y. \& {" A1 y) q6 O L( kThe MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.
4 s5 I# e: |& |# ]4 u7 t4 ^The URL is the landing page on the merchant's site. Special characters do not need to be encoded.7 J% r, v- o, T! J1 |8 D
A URL with these fields populated might look like:" n6 `( X# q! ?' `
http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a% U' n: ?/ L% G h' C) g
3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
F' V0 i4 j- t9 N8 Y: u+ S
& F1 A% U# P5 s4 i8 KLinkShare will return a click link in the form:
7 ?' O! T& y1 c* Nhttp://click.linksynergy.com/fs- ... pe=10&tmpid=939( W5 p' t! w# P
&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
1 w" Q1 c V$ `+ H2 B%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
. `& S& w1 {, |9 A- N5 O& `%2526page%3D1%2526matches%3D24%2526qsort
# L6 v) F/ |1 u& F4 s* C! m# F/ ~8 B$ f ^* E( f: E' [& `
The system will give errors for the following situations:
9 v- S3 B* e+ J. _- Z0 }) s+ [" ~5 EThe link is provided in an invalid format that LinkShare cannot parse.
" a! R$ n; B, N& c8 ?The link does not include a token ID.& p& m. l/ m% ]' V" G! s j
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
) O, V! K7 D+ V! o1 {The affiliate is not joined to the merchant MID included in the link.9 j& p0 O; z `; n9 W! V6 \
The merchant MID included in the link is invalid.' g# X0 J+ P- Q. O- k# }
The link does not include a merchant MID.
* S8 o3 N4 l7 I' c( [The merchant does not have LinkGenerator enabled for affiliates.
4 A6 b9 i+ z* \7 s( ~! NThe link does not include a merchant URL.
4 b3 d4 K. e# t# K1 [5 nThe affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
5 D P6 e" v- s. t* DOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.9 y% z( Y) s# C/ A% I' A$ r
The format for a text link will be:
: S1 g! m6 f! u+ E0 x% R<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" >4 L) y4 i5 B0 B4 i" z [
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].: D- `7 A3 N Q5 t, S: e. H
Provide link text for the user in place of [LINK_TEXT].
5 S1 B+ F9 v& P" N( yThe [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].7 H# u& H8 ^5 t: W9 b# n3 L! S, e+ P
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].1 t1 g8 R* }" V" y% M6 Y: s
The format for a banner link will be:- C+ c/ y& v/ v, F+ P
<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" >
( G: b$ v, c9 JPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL]./ g' J3 X" E) j+ V& x
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].. {) J) q1 p& c5 c8 v
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].
) e9 q: x# C( N; X4 h1 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]. |
|