- Newest
- Most votes
- Most comments
Based on the information provided, it appears you're experiencing an issue with the Amazon Ads API where reports are remaining in a PENDING state for an unusually long time. This is a change from the previous behavior where reports would eventually move to COMPLETED status. While there's no specific information about recent changes to the Amazon Ads API processing times, this type of issue can occur due to various reasons.
-
Regarding potential API changes, it's not uncommon for cloud services to experience temporary processing delays or backlogs. However, without official confirmation from Amazon, we can't say for certain if there have been any changes to report processing times.
-
The reports staying in PENDING indefinitely could be due to a backlog on Amazon's side, or potentially a change in how long certain reports take to process. Your retry logic seems sound, using exponential backoff with a maximum wait time of 244 seconds.
-
For handling long-running reports in the Amazon Ads API, consider implementing a more robust long-polling mechanism. Instead of continuously retrying within a single request, you might want to implement a system that periodically checks the status of the report, perhaps every few minutes or hours, depending on the expected processing time.
-
To debug and work around this issue:
a. Increase your maximum retry attempts and maximum wait time to account for potentially longer processing times.
b. Implement a separate polling mechanism that runs independently of your main process, checking the status of pending reports at regular intervals.
c. Consider implementing a queuing system where report requests are stored and periodically checked for completion, rather than blocking on a single request.
d. Log more detailed information about each retry attempt, including the exact response from the API, to help identify any patterns or changes in behavior.
e. Reach out to Amazon Ads API support for information on any known issues or changes in report processing times.
Remember that when dealing with external APIs, it's important to design your system to be resilient to changes in processing times and potential service disruptions. Implementing a more flexible polling strategy and robust error handling can help mitigate these types of issues in the future.
Sources
Guidance for Ingesting Amazon Vendor Central and Amazon Ads Data on AWS
Long polling is not enabled in Amazon SQS | Amazon Q, Detector Library
answered 2 years ago
Relevant content
asked 6 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 years ago
