Lingxing

SB广告活动报表

POST/pb/openapi/newad/hsaCampaignReports

请尽快调整OpenAPI中亚马逊广告接口请求头 X-API-VERSION 参数的建议

兼容说明:为兼容早期对接,亚马逊广告接口的请求头 X-API-VERSION 支持 1 和 2;未传时默认使用 1。

推荐方案:游标分页(X-API-VERSION=2)。需要处理 next_token 参数,数据获取效率高且稳定,强烈建议使用这种分页方案。

兼容方案:偏移量分页(X-API-VERSION=1)。随着分页偏移量增大,接口响应可能变慢,影响数据获取效率及稳定性。

生效规则:自 2026 年 12 月 1 日起,若未设置 X-API-VERSION 或将其设置为 1,且单个接口数据总量超过 100,000条,接口将返回【请将X-API-VERSION设置为2】的提示。

请及时评估并调整。如有疑问,请联系我们。

接口信息

API Path请求协议请求方式令牌桶容量
/pb/openapi/newad/hsaCampaignReportsHTTPSPOST10

请求头

标签必填说明类型示例
X-API-VERSION是【兼容旧版本】
不添加标签:offset 为分页页码,从1开始
值为 2 时:offset 为分页偏移量,从0开始
[int]2

请求参数

next_tokenstring
分页游标,使用上次响应中的 next_token。首次请求无需传入;与 offset 同时传入时,以 next_token 为准
sidinteger必填
店铺id ,对应查询亚马逊店铺列表接口对应字段【sid】
profile_idinteger必填
VC广告店铺profile_id,对应查询广告账号列表接口对应字段【profile_id】,sid跟profile_id其中一个必填
report_datestring必填
报表日期,格式:Y-m-d
offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认15

请求示例

{
    "sid": 109,
    "report_date": "2022-06-01",
    "offset": 0,
    "length": 15
}

返回结果

Json Object

next_tokenstring必填
分页游标,作为 next_token 传入下一次请求
示例 ODAwMDAwMDAwMDAwMDAyNDE3
codeinteger必填
状态码,0 成功
示例 0
messagestring必填
提示消息
示例 操作成功
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 nd8492d4-7a15-11ed-b162-0242ac1c0004
response_timestring必填
响应时间
示例 2022-11-03 14:09:15
totalinteger必填
总数
示例 1
dataarray<object>必填
响应数据
隐藏子属性显示子属性19 个子字段
campaign_idnumber必填
广告活动id
示例 191042766756511
profile_idnumber必填
亚马逊店铺数字id
示例 4062194157642357
impressionsnumber必填
展示量
示例 73
clicksnumber必填
点击量
示例 22
costnumber必填
花费
示例 99
vtrnumber必填
vtr
示例 10
vctrnumber必填
vctr
示例 1.00
report_datestring必填
报告日期
示例 2021-07-11
same_ordersnumber必填
直接成交订单数
示例 10
ordersnumber必填
订单数
示例 20
same_salesnumber必填
直接成交销售额
示例 60.00
salesnumber必填
销售额
示例 80.56
new_to_brand_ordersnumber必填
品牌新买家订单数量
示例 10
new_to_brand_order_percentagenumber必填
品牌新买家订单百分比
示例 10.55
new_to_brand_order_ratenumber必填
品牌新买家转换率
示例 10.66
new_to_brand_salesnumber必填
品牌新买家销售额
示例 10.00
new_to_brand_unitsnumber必填
品牌新买家销量
示例 10
unitsnumber必填
销量
示例 453
same_unitsnumber必填
直接成交量
示例 453