Generate Forecast Metrics

200 views
Skip to first unread message

Artyom

unread,
Feb 10, 2022, 5:48:31 AM2/10/22
to Google Ads API and AdWords API Forum
Hello all,

We are quite new to google api, so sorry for dumb question.
Can someone give us some hints on "Generate Forecast Metrics" rates limits.

we have "basic access" level to Google ads api at the moment.

we understand that for "KeywordPlanService.GenerateForecastMetrics" can be use max 1 per second, while any other requests from "Generate Forecast Metrics" like "MutateKeywordPlanAdGroupKeywords" can be used 60 times per 60 sec.

This in general those limits should be fine to generate forecast once a second. We are using 1 campaign 2-5 ad groups inside with 10-20 keywords each.

In total we will have 4 calls to google ads api
1. MutateKeywordPlans
2. MutateKeywordPlanCampaigns
3. MutateKeywordPlanAdGroups
4. GenerateForecastMetrics

For the first implementation we didn't follow Google ads api limit rules, and we were able to generate about 100 estimates one after another, before we got error like this:

"Failure": {
    "errors": [
      {
        "errorCode": {
          "quotaError": "RESOURCE_EXHAUSTED"
        },
        "message": "Too many requests. Retry in 5797 seconds.",
        "details": {
          "quotaErrorDetails": {
            "rateScope": "DEVELOPER",
            "rateName": "Number of operations for basic access",
            "retryDelay": "5797s"
          }
        }
      }
    ]
  }
Today we have implemented all the restrictions from Google ads api limit guide, waited for time form error message has passed and tried again, but now we was able to get just 3-5 times the estimates before getting again this error.

We have some other services working as well, but totals amount of daily usage are far from daily limits.
Those are method usage for "1 day" window:
google.ads.googleads.v9.services.CampaignBudgetService.GetCampaignBudget        14
google.ads.googleads.v9.services.GoogleAdsService.SearchStream        190
google.ads.googleads.v9.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords        172
google.ads.googleads.v9.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups        177
google.ads.googleads.v9.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns        197
google.ads.googleads.v9.services.KeywordPlanIdeaService.GenerateKeywordIdeas        1
google.ads.googleads.v9.services.KeywordPlanService.GenerateForecastMetrics        119
google.ads.googleads.v9.services.KeywordPlanService.MutateKeywordPlans        219


Thanks in advance for any help!

Google Ads API Forum Advisor

unread,
Feb 10, 2022, 12:57:48 PM2/10/22
to a.ki...@gotu.io, adwor...@googlegroups.com
Hi Artyom,
 

adsapi


unread,
Feb 7, 2022, 11:18:03 AM (3 days ago) 



to YuK1, adwor...@googlegroups.com

Hello there,

Thanks for reaching out to the Google Ads API support.

The RESOURCE_EXHAUSTED error usually occurs when you are sending too many requests in a short period of time. The server throws this error once it detects that your request has exceeded the system frequency limit. That said, I would recommend setting up short delays between requests or combine more operations in fewer requests. Please refer to the Best practices guide to optimize the efficiency and performance.
You may also experience this error if you have already exceeded the daily (1,000 requests) quota for GET requests/operations. Please refer to this documentation for the quota values you need to consider daily when performing requests using the API.

If the issue persists, please share the complete request and response logs with the request-id, so that our team may take a closer look. Please send via the Reply privately to the author option while sharing the details.

For the client library logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. ?Let me know if you have any questions.

Thanks,

Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W61iD:ref
Reply all
Reply to author
Forward
0 new messages