Lingxing

SB广告归因于广告的购买报告

POST/pb/openapi/newad/hsaPurchasedAsinReports

请尽快调整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/hsaPurchasedAsinReportsHTTPSPOST10

请求头

标签必填说明类型示例
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
}

返回结果

next_tokenstring必填
分页游标,作为 next_token 传入下一次请求
示例 ODAwMDAwMDAwMDAwMDAyNDE3
codeinteger必填
状态码,0 成功
示例 0
messagestring必填
提示消息
示例 操作成功
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 4e95c95f-42bc-42e2-ac35-1fef22fef4f7
response_timestring必填
响应时间
示例 2023-08-17 16:16:51
totalinteger必填
总数
示例 126
dataarray<object>必填
响应数据
隐藏子属性显示子属性19 个子字段
profile_idnumber必填
亚马逊店铺数字id
示例 121923590660074
report_datestring必填
报告日期
示例 2022-12-10
campaign_namestring必填
广告活动名称
示例 B07BWBQ66J CampaignName
campaign_idnumber必填
广告活动id
【亚马逊官方解释:如果是非SB2,则campaign_id为空】
示例 230107425919319
ad_group_namestring必填
广告组名称
示例 B07BWBQ66J AdGroupName
ad_group_idnumber必填
广告组id
【亚马逊官方解释:如果是非SB2,则ad_group_id为空】
示例 256144625584796
asinstring必填
已购买的asin
示例 B07BWBQ66J
attribution_typestring必填
引流类型 :
Promoted 促销
Brand Halo 品牌光环
示例 Promoted
sales14dnumber必填
14天总销售额
示例 6037.94
orders14dnumber必填
14天总订单数
示例 33
units_sold14dnumber必填
14天总件数
示例 49
new_to_brand_sales14dnumber必填
14天新客户订单销售额
示例 853.37
new_to_brand_purchases14dnumber必填
14天新客户订单
示例 37
new_to_brand_units_sold14dnumber必填
14天新客户订单件数
示例 26
new_to_brand_sales_percentage14dnumber必填
14天新客户订单销售额百分比
示例 36.26
new_to_brand_purchases_percentage14dnumber必填
14天新客户订单百分比
示例 52.9
new_to_brand_units_sold_percentage14dnumber必填
14天新客户订单件数百分比
示例 27.41
unitsnumber必填
销量
示例 453
same_unitsnumber必填
直接成交量
示例 453

返回成功示例

{
    "code": 0,
    "message": "操作成功",
    "error_details": [],
    "request_id": "2fc8aff8-46dd-469a-8fec-d0a85cea9d04",
    "response_time": "2023-08-17 17:58:53",
    "total": 126,
    "data": [
        {
            "campaign_id": 230107425919319,
            "ad_group_id": 256144625584796,
            "profile_id": 121923590660074,
            "campaign_name": "B07BWBQ66J CampaignName",
            "ad_group_name": "B07BWBQ66J AdGroupName",
            "attribution_type": "Promoted",
            "sales14d": 8295.34,
            "orders14d": 35,
            "new_to_brand_sales14d": 4022.59,
            "new_to_brand_purchases14d": 36,
            "new_to_brand_units_sold14d": 8,
            "new_to_brand_sales_percentage14d": 9.17,
            "new_to_brand_purchases_percentage14d": 77.03,
            "new_to_brand_units_sold_percentage14d": 71.49,
            "report_date": "2022-12-10",
            "asin": "B07BWB066J",
            "units_sold14d": 88
        }
    ]
}