|

楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
* l2 O3 ?8 ]7 H+ Z% B' P3 L4 c! A' h( a0 G) E3 k. o0 e j
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.* P) n. W0 d- @3 u9 W* o4 K; U
4 Z: v$ |4 j$ X) lTo 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.
' \- Q' \& f* _8 w& y/ j4 d2 g5 W7 O, y5 ]% M( D3 u/ T
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):
# G) O) v) F; |* e. J. x% mhttp://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>
% R" ~$ v2 a* ^0 s0 pThe token ID can be found in the affiliate interface on the RSS Resource Page.6 q4 Y) F: e8 A# O1 C
The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.0 }- Z3 F* L) l8 A% X$ c
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.' ]8 c* x6 S. M7 X- I5 u& V
A URL with these fields populated might look like:
$ M; S+ N7 X- ] Z. _http://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
: _! m/ ~1 X/ J+ J$ W6 N0 M3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes/ o2 B* V4 a' {' N: E
/ G# J( n9 X3 P Z+ A- M4 G
LinkShare will return a click link in the form:
4 }, d0 n$ m3 T, ` j1 n# ?9 |http://click.linksynergy.com/fs- ... pe=10&tmpid=939
4 [. O6 ]- l* J' U&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth3 }" g! o1 w2 _* Q: K! A' y
%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D00 d8 l0 S% h4 j! w
%2526page%3D1%2526matches%3D24%2526qsort% m) F8 k. M( @ w
. e2 _$ v2 G }' G+ L) f/ o iThe system will give errors for the following situations:* Q5 F. Z# H; G) D
The link is provided in an invalid format that LinkShare cannot parse.
3 H1 c p! ~- ] wThe link does not include a token ID., W( g& v7 ^- n# I& M
The link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
9 l5 ]3 Y( Y6 L' ` T1 b7 q& pThe affiliate is not joined to the merchant MID included in the link." i: b9 j3 L0 R* x, a
The merchant MID included in the link is invalid.
+ b3 C& e% F) A1 u( o" qThe link does not include a merchant MID.- P5 A' @& f, L# \- c# |
The merchant does not have LinkGenerator enabled for affiliates.6 S( a: `- w2 s1 t4 ^5 M% S+ D
The link does not include a merchant URL.$ e1 g* v3 J% Z3 X: @1 r* D! v, }
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
& f/ _, |9 t' Y! U0 i9 d4 f% N) e+ R' NOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.3 Z. c% c v. v$ I. ^, q% h# k: f
The format for a text link will be:6 e! d+ R; N. [3 r) X8 F
<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" >! c f$ n! ~* m- w1 v
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL]./ R, ~2 F! w8 k R7 u* r- V$ r
Provide link text for the user in place of [LINK_TEXT].& B8 a# a. O. h6 Y' U: a, A
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].) L* r& N4 n& P" s8 T! d `# t
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].
' S: [. V/ K7 D7 TThe format for a banner link will be:
' u$ w6 H3 y" {+ Z<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" >
5 x6 G7 ]. z: D" s+ v; g( K. NPaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
' D8 `# ?0 Y; N; m+ QPaste the URL of the image on the merchant's site in place of [IMAGE_URL].
7 w" Y+ G8 F& u* ~+ g$ u$ O& A/ l* rThe [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].( h' ^9 W5 `# E$ H4 @ 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]. |
|