Lingxing

SB广告组报表

POST/pb/openapi/newad/hsaAdGroupReports

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

请求头

标签必填说明类型示例
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
示例 B86AF260-2D3E-7C9C-777E-7B1DC54FE4AS
response_timestring必填
响应时间
示例 2023-08-11 11:25:08
totalinteger必填
总数
示例 3
dataarray<object>必填
响应数据
隐藏子属性显示子属性20 个子字段
campaign_idnumber必填
广告活动id
示例 1640591451
ad_group_idnumber必填
广告组id
示例 1640591452
profile_idnumber必填
亚马逊店铺数字id
示例 121923590660074
impressionsnumber必填
展示量
示例 792
clicksnumber必填
点击量
示例 34
costnumber必填
花费
示例 12.32
vtrnumber必填
vtr
示例 0.00
vctrnumber必填
vctr
示例 0.00
report_datestring必填
报告日期
示例 2023-05-11
same_ordersnumber必填
直接成交订单
示例 6
ordersnumber必填
订单数
示例 6
same_salesnumber必填
直接成交销售额
示例 74.60
salesnumber必填
销售额
示例 74.60
new_to_brand_ordersnumber必填
品牌新买家订单数量
示例 10
new_to_brand_order_percentagenumber必填
品牌新买家订单百分比
示例 10.00
new_to_brand_order_ratenumber必填
品牌新买家转换率
示例 6.00
new_to_brand_salesnumber必填
品牌新买家销售额
示例 5.00
new_to_brand_unitsnumber必填
品牌新买家销量
示例 6
unitsnumber必填
销量
示例 453
same_unitsnumber必填
直接成交量
示例 453

返回成功示例

{
    "code": 0,
    "message": "操作成功",
    "error_details": [],
    "request_id": "133e5b8f-65ec-408e-b18a-7f41a950cf0c",
    "response_time": "2023-08-09 11:29:50",
    "total": 1,
    "data": [
        {
            "campaign_id": 1640591451,
            "ad_group_id": 1640591452,
            "profile_id": 121923590660074,
            "impressions": 792,
            "clicks": 34,
            "cost": 12.32,
            "vtr": 0.00,
            "vctr": 0.00,
            "report_date": "2023-05-11",
            "same_orders": 6,
            "orders": 6,
            "same_sales": 74.60,
            "sales": 74.60,
            "new_to_brand_orders": 10,
            "new_to_brand_order_percentage": 10.00,
            "new_to_brand_order_rate": 6.00,
            "new_to_brand_sales": 5.00,
            "new_to_brand_units": 6
        }
    ]
}