amzn / ads-advanced-tools-docs

Code samples and supplements for the Amazon Ads advanced tools center
https://advertising.amazon.com/API/docs/en-us/index
MIT No Attribution
87 stars 33 forks source link

sp campaign update the end date is fail #273

Closed CoderWeiAden closed 2 months ago

CoderWeiAden commented 3 months ago

i have he sp campaign ,and it have startDate(2024-07-01) and endDate(2024-07-05), now i want to update the sp campaign without endDate, my param is : {"campaigns":[{"budget":{"budget":2,"budgetType":"DAILY"},"campaignId":"369356990030083","dynamicBidding":{"placementBidding":[{"percentage":0,"placement":"PLACEMENT_TOP"},{"percentage":0,"placement":"PLACEMENT_PRODUCT_PAGE"},{"percentage":0,"placement":"PLACEMENT_REST_OF_SEARCH"}],"strategy":"LEGACY_FOR_SALES"},"name":"HFX3XL-sp-adentest0523","startDate":"2024-06-12","state":"PAUSED","tags":{"property1":"{\"businessId\":\"2128\"}"}}]}

and it have not endDate ,but don`t update the campain endDate actually,

and i try to set the endDate is empty string ,like '' ,but it does`t work ,

so how can i set the campaign endDate to null

kdwivedi13 commented 3 months ago

To remove or clear the endDate for a campaign, you can try including "endDate": null in the request payload when updating the campaign.