Skip to content

sponsored_products Reports BUG #65

@pengpengker

Description

@pengpengker

Describe the bug
1-bug: reports.py-41 kwargs.pop('body') is error,Nofound body in kwargs.
2-bug: client.py-239 Content-type is incorrect, resulting in a return status of 400/422, params should not use the passed data.In general there are multiple errors here

sponsored_products Reports post_report
Not submitting the request with the Content-type will result 422/400 status_code。

To Reproduce
Steps to reproduce the behavior:

  1. call sponsored_products.Reports(credentials=my_credentials, marketplace=Marketplaces.NA, debug=True).post_report(
    recordType="campaigns",
    metrics='impressions',
    reportDate="20220729"
    )

Additional context
I'll submit new code when I'm done, if you're willing to accept。 grateful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions