Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Amazon Apis sends campaignId as number/integer #975

Description

@NishealJ

I came through a problem where I can see clear disparency in data.

When I send the request from postman the data is different and when I send it from amazon-advertising-api-sdk the data is different.

The reason is amazon ads API send campaignId as a number https://advertising.amazon.com/API/docs/en-us/sponsored-products/2-0/openapi#/Campaigns/listCampaigns and javascript cannot support long numbers so it just rounds offs.

For example, when I hit the API through postman the campaign id is 123456789123456789 but when I hit from sdk it becomes 123456789123456780.

Any work around this? @moltar @nguyentoanit

Screenshot 2022-08-04 at 8 04 21 PM

Screenshot 2022-08-04 at 7 59 27 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions