Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the start date and end date of an SP activity are the same, changing the end date of this activity to no end date will result in an error: START_DATE_AFTER_END_DATE,Start date cannot be after end date. #311

Open
CoderWeiAden opened this issue Sep 10, 2024 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@CoderWeiAden
Copy link

When the start date and end date of an SP activity are the same, changing the end date of this activity to no end date will result in an error:
START_DATE_AFTER_END_DATE,Start date cannot be after end date.

the interface is :
https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod#tag/Campaigns/operation/UpdateSponsoredProductsCampaigns

my param is:
{
"campaigns": [
{
"campaignId": "289634794537571",
"portfolioId": "240367241152955",
"endDate": null,
"name": "ZXSVT9-sp-Yamila-test0906",
"targetingType": "AUTO",
"state": "PAUSED",
"dynamicBidding": {
"placementBidding": [
{
"percentage": 0,
"placement": "PLACEMENT_TOP"
},
{
"percentage": 0,
"placement": "PLACEMENT_PRODUCT_PAGE"
},
{
"percentage": 0,
"placement": "PLACEMENT_REST_OF_SEARCH"
}
],
"strategy": "LEGACY_FOR_SALES"
},
"startDate": "2026-10-01",
"budget": {
"budgetType": "DAILY",
"budget": 1
},
"tags": {
"property1": "{"businessId":"1832004097431105537"}"
}
}
]
}

the result is :
image

When the start date and end date do not match, this situation will not occur

@CoderWeiAden CoderWeiAden added bug Something isn't working documentation Improvements or additions to documentation labels Sep 10, 2024
@DrRockett
Copy link

Hi, I'm curious if this was your intended actual use case, or were you just testing? i.e., did you actually want to create a campaign with the exact same start and end date?

@CoderWeiAden
Copy link
Author

Hi, I'm curious if this was your intended actual use case, or were you just testing? i.e., did you actually want to create a campaign with the exact same start and end date?

yes,i wanna to create a campaign for the begin date and end date is same。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants