|
|
楼主 |
发表于 2013-1-17 10:54:21
|
显示全部楼层
Automated LinkGenerator
3 N) U: ?2 x, j, I6 w4 a9 D# ]. ^, h) `& 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.: D+ z2 s' B3 B# V9 E) ?3 l) v
6 G& ^& z8 c2 h) O/ a3 YTo 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.7 h" i/ p7 u# Y1 p
! ^9 ]' W2 ~. x0 b. I1 Y9 W7 O
URLs are sent to LinkShare in this format (with the token, mid, and murl parameters in this order):! Y/ d c, D- J$ x! b! D
http://getdeeplink.linksynergy.com/createcustomlink.shtml?token=<token-ID>&mid=<MID>&murl=<URL-from-merchant>1 Y! K$ ^; v1 S6 ]
The token ID can be found in the affiliate interface on the RSS Resource Page.
$ m$ R4 o! z; Z9 }The MID is a unique identifier for the merchant. It can be obtained from the Web Services--Merchant Links Feed.0 d' @8 v# m" h
The URL is the landing page on the merchant's site. Special characters do not need to be encoded.' G) Q: v, l- i5 v7 w! B' j0 T# n
A URL with these fields populated might look like:
5 {" _" t3 u! z+ q( thttp://getdeeplink.linksynergy.c ... 637c015c38358d4c01a
+ ~ ] R% s; }1 x! K% H Z! o. ]3f48876d62ff7409bed1&mid=560&murl=http://www.merchant.com/productpage?prodid=1224231&buylink=yes
, v! c1 y( r, g# K' H3 A; @! J' r8 X7 W5 Q, A% n+ l9 \
LinkShare will return a click link in the form:
$ m$ N- ?' i* u9 h% G# [http://click.linksynergy.com/fs- ... pe=10&tmpid=939
/ y: ]6 i+ ~. i$ E0 \. U* h3 ]&RD_PARM1=http%3A%2F%2Fwww.merchantname.com%2Fsearch%2Fdetail.cfm%3Fchunk%3D25%2526mtype%3D%2526wauth
+ X) c0 r- K/ L6 o6 Y+ ?* [%3Da%2520name%2526qwork%3D2875272%2526S%3DR%2526bid%3D8713366401%2526pbest%3D2%252E95%2526pqtynew%3D0
' c9 x+ E% a/ J5 |%2526page%3D1%2526matches%3D24%2526qsort
+ _* `) N* ]% @$ T5 x
# u( R, w' {$ Z! J; [8 y& ]' f# O+ IThe system will give errors for the following situations:5 f/ ]. B* h8 `
The link is provided in an invalid format that LinkShare cannot parse.
# I5 T& F1 c/ A) N4 NThe link does not include a token ID.
/ q+ O" Y# ?$ c3 Y# ^1 JThe link includes an invalid token ID, for example if the affiliate no longer has Automated LinkGenerator enabled.
% X3 s |4 P0 ~The affiliate is not joined to the merchant MID included in the link.. E8 D5 n$ G- x! q! p- i0 E
The merchant MID included in the link is invalid.
# r0 f7 |* E, M! ` hThe link does not include a merchant MID.. r' U9 k- |! ^- D! T$ [3 M
The merchant does not have LinkGenerator enabled for affiliates.3 [2 k3 U3 @/ K% C i; E, W/ \/ f, z- k
The link does not include a merchant URL." J, I' I5 c! d0 G T- N: Z# h2 D
The affiliate has exceeded its hourly limit for using the Automated LinkGenerator tool.
! F }7 N" w8 ~' BOnce LinkShare has returned a click link, it can easily be placed on your affiliate site.1 W4 O; ], f( |5 v3 s
The format for a text link will be:6 _/ k k3 x$ W
<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" >% _+ ~1 Y7 ^2 f8 F$ y. @1 W$ B! w! }
Paste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].
9 R9 d$ P T' \0 BProvide link text for the user in place of [LINK_TEXT].' K/ i6 Y& b5 u [7 E+ p6 a4 C+ t
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].
/ j9 A1 L% v* hThe [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].
- z: t0 N; Q; y) _The format for a banner link will be:, U+ e6 ^' u# K/ ~
<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" >
7 d& p- W" @7 |- ePaste the exact return value from the Automated LinkGenerator tool in place of [CLICK_URL].3 d) Y' a& d* [: `* h; V
Paste the URL of the image on the merchant's site in place of [IMAGE_URL].
- i/ f% c! t' m1 FThe [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 K+ e* \) K' L& i/ }3 L. |- U' CThe [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]. |
|