最新消息:20210917 已从crifan.com换到crifan.org

【记录】申请AWS的Associate Tag + 【整理】Associate Tag方面的心得

Amazon crifan 4450浏览 0评论

【背景】

想要利用Amazon的AWS的API去做一个C#项目。

之前已经申请了对应的access key id:

【记录】申请AWS的AWSAccessKeyId(AWS Access Key ID)

本来以为可以去用AWS的API了。

但是后来在折腾:

【记录】尝试使用AWS SDK for .NET去实现C#版本的ItemLookup

期间,得知了:

2011年11月后,好像对于所有的request,都要加上一个Associate Tag的,否则貌似返回都是null和错误。

 

对应的官网解释:

Product Advertising API Change Details

Associate Tag Parameter: Every request made to the API should include a valid Associate Tag. Any request that does not contain a valid Associate Tag will be rejected with an appropriate error message. For details on the Associate Tag parameter, please refer to our Developer guide.

 

所以,接着需要去注册一个Amazon的associate tag。

 

【折腾过程】

1。其实很简单,就是去:

https://affiliate-program.amazon.com/

去按照提示,一步步的注册,填写资料即可。

 

2.最终注册完毕后,得到那个Associate Tag的字符串

got your associate tag string

 

3.之后,你就可以去写代码,用到此associate tag,去访问Amazon的AWS的API了。

 

【总结: Associate Tag方面的心得】

1.其实amazon这个associate tag,是类似于百度联盟,google联盟之类的,

可以用来:你帮他们做广告,然后他们付钱给你。

达到靠广告赚钱的目的。

详见:

https://affiliate-program.amazon.com/gp/associates/join/getstarted

2.别人访问amazon的某个网页,其中网页地址(的query string)中,带有你的associate tag,说明是你推荐的。

然后你买了商品,最后amazon才可能据此,付给你推荐费。你才能赚钱。

比如,某个地址是:

http://www.amazon.com/b/ref=as_li_qf_br_sr_tl?_encoding=UTF8&camp=1789&creative=9325&linkCode=ur2&node=16261631&tag=xxxxxxxxx-20

其中的:

tag=xxxxxxxxx-20

就表示你的associate tag是xxxxxxxxx-20

 

3.associate tag这个字符串中后面的-xx,其中xx是数字,的含义是:

参考:

Amazon Product Advertising API Best Practices

得知:

地区

Associate tag的后缀

北美(North America)

-20

欧洲(Europe)

-21

日本(Japan)

-22

所以,默认申请到的associate tag,如果是美国的话,则是:

xxxxxxxxx-20

的样子了。

转载请注明:在路上 » 【记录】申请AWS的Associate Tag + 【整理】Associate Tag方面的心得

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.181 seconds, using 23.55MB memory