广告API对接总体流程>>>

下图中出现的相关URL,是以北美站为例

亚马逊广告各实体间关系>>>

1. 广告API对接准备

​​​​​​​1.1 申请亚马逊开发者帐号和广告API访问帐号

(略)API申请如有问题,可以入群交流。

1.2 生成访问广告API的access token

1.3 生成访问授权码(generate an authorization code)

说明:访问授权码是为了生成访问广告api时的access token

1) Paste the authorization URL determined above into your browser's address bar. Navigate to the URL.

地址如下:

https://www.amazon.com/ap/oa?client_id=YOUR_LWA_CLIENT_ID&scope=advertising::campaign_management&response_type=code&redirect_uri=YOUR_RETURN_URL

2) Sign in using the Amazon account that has permission to access Amazon Ads services for the products you want to advertise. (This is an Advertiser account, which may not be the same as the Amazon Developer account you used to create the LwA client.)

拥有广告访问权限亚马逊帐号访问上述地址,在登录店铺情况下,将出现下图授权:

3) You will be redirected to a consent form:

4)You will be redirected to the redirect_uri that you specified previously, with query parameters appended to the URL. Copy the address from your browser's address bar, and note the value of the code parameter (the xxxx in the example below):

Amazon.comhttps://www.amazon.com/?code=xxxxxxxxxxxxxxxxxxx&scope=advertising%3A%3Acampaign_management

复制下code的值,该值就是 authorization code

1.4 生成访问授权码(generate an authorization code)

生成access token和 refresh token(Create access and refresh tokens)

1)、Post 提交如下报文

地址:https://api.amazon.com/auth/o2/token

参数:

grant_type=authorization_code&code=AUTH_CODE&redirect_uri=YOUR_RETURN_URL&client_id=YOUR_CLIENT_ID&client_secret=YOUR_SECRET_KEY

说明:AUTH_CODE就是

Amazon.comhttps://www.amazon.com/?code=xxxxxxxxxxxxxxxxxxx&scope=advertising%3A%3Acampaign_management

里的code值,content-type需要设置为: application/x-www-form-urlencoded;charset=UTF-8

Parameter

Description

grant_type

Must be authorization_code.

code

The authorization code retrieved in step 4. Note this code expires after 5 minutes.

redirect_uri

One of the values in the Allowed Return URLs field in your Login with Amazon account.

client_id

The Client ID of your Login with Amazon account.

client_secret

The Client Secret of your Login with Amazon account.

2)、返回access token 和 refresh token(Access token response)

范例:

{

"access_token": "Atza|XXXXXXXXXXXX",

"refresh_token": "Atzr|XXXXXXXXXXXX",

"token_type": "bearer",

"expires_in": 3600

}

参数说明:

Field

Description

access_token

The access token.

refresh_token

The refresh token.

token_type

The type of OAuth 2.0 token. Always set to bearer.

expires_in

The length of time until the access token expires, in seconds.

  1. Note that access tokens are valid for 60 minutes. A new access token can be generated at any time using the refresh token. Refresh tokens do not expire.
  2. access token 有效期是60分钟,refresh token 没有有效期,通过 refresh token可生成 access token.

3)、用refresh token换取 access token

地址:https://api.amazon.com/auth/o2/token

参数:

grant_type=refresh_token&client_id=YOUR_CLIENT_ID&refresh_token=YOUR_REFRESH_TOKEN&client_secret=YOUR_CLIENT_SECRET

说明:YOUR_REFRESH_TOKEN就是步骤2获取到的refresh_token.

content-type需要设置为: application/x-www-form-urlencoded;charset=UTF-8

2. 其他资源:

2.1 访问广告API权限

详见:
Amazon Advertising Advanced Tools Centerhttps://advertising.amazon.com/API/docs/en-us/concepts/permissions

​​​​​​​ 2.2  访问广告API限制

详见:Amazon Advertising Advanced Tools Centerhttps://advertising.amazon.com/API/docs/en-us/concepts/rate-limiting

访问受限,返回429错误代码,同时在http头里会包含Retry-After字段,用于指示此值对应的秒数后再请求。

​​​​​​​  2.3 开发人员应注意事项

详见:Amazon Advertising Advanced Tools Center

​​​​​​​ 2.4  沙箱测试

详见:Amazon Advertising Advanced Tools Center

例子:

curl \

-X PUT \

-H "Content-Type:application/json" \

-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \

-H "Amazon-Advertising-API-ClientId: YOUR_CLIENT_ID" \

--data '{"countryCode":"US"}' \

https://advertising-api-test.amazon.com/v2/profiles/register

亚马逊广告API对接概述相关推荐

  1. 亚马逊广告api v2版php扩展库

    概述 easy-amazon-advertising easy-amazon-advertising 是一个开源的非官方的亚马逊广告业务sdk. 环境需求 easy-amazon-advertisin ...

  2. 亚马逊 广告接口对接 amazon advertising

    Amazon Advertising API 最终目标效果 1. 授权 (加入亚马逊开发者白名单) 官方文档 https://advertising.amazon.com/API/docs/en-us ...

  3. 对接亚马逊 ads api( Amazon Advertising API) 第三章:对接 Sponsored Products

    目录 官方下载报告 demo 需求 对接 Sponsored Products 的 reports 报告 1. 获取 profileId 2. 请求 report 3. 获取 report 4. 获取 ...

  4. 对接亚马逊 ads api( Amazon Advertising API) 第一章:申请授权

    目录 1.申请亚马逊开发者账号 1.1.登录/注册,进入页面,并点击右上角的登录 1.2.登录或者注册亚马逊开发者账号 1.3.新建security profile 1.3.1.在菜单栏找到 logi ...

  5. 亚马逊广告接口 amazon advert api 申请流程

    #亚马逊广告接口 amazon advert api 申请流程 官方文档 https://advertising.amazon.com/API/docs/en-us 申请连接 : https://ad ...

  6. 亚马逊广告接口 amazon advertising

    亚马逊广告接口官方说明:https://advertising.amazon.com/API/docs/en-us/setting-up/account-setup 一:注册aws开发者账号 注册地址 ...

  7. 亚马逊广告授权流程说明

    亚马逊广告授权流程说明 原创 1 年前 TOOL8 分钟 读完 (大约 1139 个字)  总访问量  586次 AMAZON 广告授权进入第三方网站流程 授权流程说明 一.用户进入第三方网站,如ww ...

  8. 亚马逊商品详情API接口-(item_get-获得AMAZON商品详情接口),亚马逊详情API接口

    一.亚马逊商品详情API接口-(item_get-获得AMAZON商品详情接口),亚马逊详情API接口可以获取到商品价格,商品库存,商品销量,商品ID,商品图片,商品sku属性,sku详情,sku图片 ...

  9. ctr多少正常_亚马逊广告ctr多少才算合格,如何提升亚马逊CTR

    亚马逊广告ctr多少才算合格,如何提升亚马逊CTR 很多亚马逊卖家并不重视点击率,其实点击率和转化率是同样重要的.好的点击率可以提升产品listing的流量,间接影响转化,促进销量.一般来说亚马逊点击 ...

最新文章

  1. cv2.waitKey(1) == ord('key')的等待键盘用法
  2. mac 中登陆mysql忘记密码解决办法
  3. web访问 FastDFS 方法思路
  4. java自定义字段_自定义字段的设计与实现(Java实用版)
  5. kali怎么成为管理员_网站死链是什么、是怎么引起的以及死链对SEO优化的影响?...
  6. 进程间通信(IPC)之内存映射mmap和共享内存shm
  7. javascript实现下拉条联动_JavaScript gt;gt;gt; 003
  8. 人工智能python的缺点_浅谈人工智能的优缺点及使用环境
  9. Android重力感应实现方式简介
  10. 清华山维软件EPS2012常用快捷键
  11. 我们工作到底为了什么
  12. UIUC云计算概念(chord)
  13. 本地差分隐私 随机响应_本地化差分隐私:如何面对非可信的世界
  14. 论文中出现的 cf. i.e. s.t. e.g. w.r.t. et al. etc等英文缩写是什么意思
  15. 一首很好听的英文歌曲Peerless
  16. 【蓝桥杯】基础练习 字母图形
  17. 华为信息与网络技术学院2016-2017大学生ICT技能大赛圆满闭幕
  18. 百度掉队了?正好相反,未来掉队的或许是腾讯阿里
  19. 搭建属于自己的发卡小店-独角数卡
  20. 接连三个百度副总裁都栽在“违纪”、“腐败”上,这是怎么了?

热门文章

  1. Claude2完全免费!GPT4 强劲竞争对手来了
  2. 安卓手机 8.0系统以上 webview添加视频录制功能报错
  3. Mac 下导出ANR错误日志
  4. OpenCV 3.4.0安装教程
  5. 人工智能 之 NLP的Precision(查准率,精确率),Recall(查全率,召回率),Accuracy(准确率)以及综合评价指标(F1-Measure)
  6. 塑料袋 (Demo) (《缝纫机乐队》电影插曲) - 缝纫机乐队
  7. Matlab使用plot等画图的线型、符号及颜色汇总
  8. python scrapy 简单教程_Scrapy的简单使用教程
  9. 香港城市大学刘晨老师组招收机器学习方向全奖博士/博后/研究助理
  10. php中readfile的用法,怎么在php中利用readfile() 函数设置文件的大小