亚马逊广告 api asins 报告类型返回空列表

Amazon advertisement api asins report type returning empty list

我正在尝试从亚马逊广告中获取 asins 报告 api。 header 和 json 用于创建报告如下,

headers = {
        "Authorization": f"Bearer {access_code}",
        "Amazon-Advertising-API-ClientId": "client_id",
        "Amazon-Advertising-API-Scope": "Profile_id"
    }

asins_json_data = {
    "reportDate": "20220227",
    "campaignType": "sponsoredProducts",
    "metrics": ",".join([
        "adGroupId",
        "adGroupName",
        "asin",
        "attributedSales14dOtherSKU",
        "attributedSales1dOtherSKU",
        "attributedSales30dOtherSKU",
        "attributedSales7dOtherSKU",
        "attributedUnitsOrdered14d",
        "attributedUnitsOrdered14dOtherSKU",
        "attributedUnitsOrdered1d",
        "attributedUnitsOrdered1dOtherSKU",
        "attributedUnitsOrdered30d",
        "attributedUnitsOrdered30dOtherSKU",
        "attributedUnitsOrdered7d",
        "attributedUnitsOrdered7dOtherSKU",
        "campaignId",
        "campaignName",
        "currency",
        "keywordText",
        "matchType",
        "otherAsin",
        "targetingExpression",
        "targetingType"

    ])

创建报告returns这个,

{'recordType': 'otherAsin',
 'reportId': 'report_id',
 'status': 'IN_PROGRESS',
 'statusDetails': 'Report is being generated.'}

获取报告数据的请求returns,

{'expiration': 1654041600000,
 'fileSize': 22,
 'location': 'https://advertising-api-eu.amazon.com/v1/reports/report_id/download',
 'reportId': 'report_id',
 'status': 'SUCCESS',
 'statusDetails': 'Report has been successfully generated.'}

但是在调用位置 link 以及尝试使用 V2 link 时 "https://advertising-api-eu.amazon.com/v2/reports/report_id/download", 我得到一个这样的空列表,

[]

日期也应该有数据,知道为什么会这样吗?

我已经弄清楚了,如果我把“asin”和“otherAsin”都放在一起,由于某种原因存在冲突在 asins_json_data 词典中。它必须是指标中的其中之一。 根据 official document 它不应该发生。