Google Advertisements API Useful resource Utilization Coverage Replace
What’s altering?
We’re updating the Google Advertisements API useful resource utilization coverage to throttle GoogleAdsService.Search and GoogleAdsService.SearchStream question patterns that eat extreme quantities of API assets. If a specific question sample is throttled, different companies, strategies, and question patterns will proceed to work unaffected.
Beginning the week of June 17, 2024, and just for the throttled question patterns, requests shall be affected as follows:
- For those who use model v16 or older of the API, you’ll obtain a
QuotaError.RESOURCE_TEMPORARILY_EXHAUSTEDerror. - For those who use model v17 or later of the API, you’ll obtain a
QuotaError.EXCESSIVE_SHORT_TERM_QUERY_RESOURCE_CONSUMPTIONorQuotaError.EXCESSIVE_LONG_TERM_QUERY_RESOURCE_CONSUMPTION, relying on whether or not the extreme useful resource consumption was for a brief time period (a couple of minutes), or a protracted time period.
That can assist you determine and monitor your costly experiences, we may even return a price metric for particular person experiences. To view the fee for profitable experiences, see the next fields:
Why this variation?
We’re making this variation to protect the reliability and stability of the API.
What do I have to do?
Earlier than June 17, 2024, replace your functions to do the next:
- Deal with the brand new error codes when making
GoogleAdsService::Search or GoogleAdsService::SearchStreamcalls- For those who use model v16 or earlier of the Google Advertisements API, then deal with
QuotaError.RESOURCE_TEMPORARILY_EXHAUSTEDerrors. - For those who use model v17 or later of the API, deal with the
QuotaError.EXCESSIVE_SHORT_TERM_QUERY_RESOURCE_CONSUMPTIONandQuotaError.EXCESSIVE_LONG_TERM_QUERY_RESOURCE_CONSUMPTIONerrors. - If a number of of your reporting question patterns are throttled, you must evaluation and repair the question sample. Listed here are some methods to enhance question efficiency:
- Run the question much less continuously.
- Use a cheaper question sample or view.
- For those who use model v16 or earlier of the Google Advertisements API, then deal with
To be taught extra about optimizing your queries, see handle information effectivity.
- [Optional] Incorporate the brand new
query_resource_consumptionmetric into your monitoring techniques to detect and deal with new costly queries.
Learn how to get assist
If in case you have any questions on this variation or need assistance optimizing particular question patterns, try the Google Advertisements API assist web page for choices.