Re: Quota: Requests per service per method?

2022-12-19 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Markus,


Thank you for getting back to us. I hope you are doing well today.

Moving forward to your concern, yes you may try less the RPS limit and let us 
know if what goes on. If you still encounter the problem you may reach out to 
us again so that our team further checks your concern again.

Regards,

Darwin
Google Ads API Team
ref:_00D1U1174p._5004Q2g0e2e:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/MCkuX0RN5I0I00rPWn2geFR6i-zZEunokg3A%40sfdc.net.


Re: Quota: Requests per service per method?

2022-12-19 Thread Markus Heiden
Hello Darwin,

thanks for taking a second look. 

I was pretty sure that we don't violate the 1 RPS limit because we use a 
Guava rate limiter that should ensure that.
So maybe I'll try a little less than 1 RPS to avoid this kind of problem.

Thanks,
Markus

adsapi schrieb am Montag, 14. November 2022 um 07:53:55 UTC+1:

> Hi Markus,
>
>
> I'm Darwin, also a member of the Google Ads API team. I work with Yasar 
> and allow me to assist you here. I hope you are doing well today.
>  
>
> Upon checking your issue. It appears that you encountered a RESOURCE 
> EXHAUSTED 
> 
>  error, 
> and my colleague assisted you in resolving the issue. I believe my 
> colleague, explained your problem very well. As he provide this to you ;
>  
>
> *"Kindly note that the **generateKeywordIdeas* 
> *
>  is 
> the planning services in the Google As API. Due to cost and complexity, the 
> Planning service methods listed below are subject to separate limits from 
> other types of requests.*
>
>  
>
>- *Limited to 1 request per second per CID or developer token:* 
>   - *KeywordPlanService.GetKeywordPlan* 
>   
> 
>  
>   - *KeywordPlanService.GenerateHistoricalMetrics* 
>   
> 
>  
>   - *KeywordPlanService.GenerateForecastMetrics* 
>   
> 
>  
>- *Requests that violate these limitations are rejected with the 
>error: **RESOURCE_EXHAUSTED* 
>
> 
>*.* 
>- *1 QPS is calculated as 60 requests per 60 seconds.* 
>
>  
>
> *If you are having the basic access level developer token, then the 15,000 
> API operations per day limit is still applicable. As all requests to 
> Keyword Planning services for both standard and basic access are rate 
> limited. **Fewer requests* 
> * 
> are 
> allowed per minute when compared to other services. Our recommendation is 
> to cache or store results as you will receive the same response over a long 
> time span. For example, if you request a set of existing keywords, the 
> response is not going to change over a period of hours or days. In the case 
> of historical metrics, the statistics refresh monthly. "*
>
>
> If you want to know more about another limit in Google Ads API, then, you 
> may refer to this Rate limit 
> 
>  and System Limits 
> 
>  documentation.
>
>
> Let us know if you have further questions.
>  
>
> Regards,
> [image: Google Logo] 
> Darwin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2g0e2e:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c19341f2-ea48-40f8-8599-7ef48cc11c8fn%40googlegroups.com.


Re: Quota: Requests per service per method?

2022-11-13 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Markus,


I'm Darwin, also a member of the Google Ads API team. I work with Yasar and 
allow me to assist you here. I hope you are doing well today.

Upon checking your issue. It appears that you encountered a RESOURCE EXHAUSTED 
error, and my colleague assisted you in resolving the issue. I believe my 
colleague, explained your problem very well. As he provide this to you ;

"Kindly note that the generateKeywordIdeas is the planning services in the 
Google As API. Due to cost and complexity, the Planning service methods listed 
below are subject to separate limits from other types of requests.


Limited to 1 request per second per CID or developer token:

KeywordPlanService.GetKeywordPlan
KeywordPlanService.GenerateHistoricalMetrics
KeywordPlanService.GenerateForecastMetrics

Requests that violate these limitations are rejected with the error: 
RESOURCE_EXHAUSTED.
1 QPS is calculated as 60 requests per 60 seconds.


If you are having the basic access level developer token, then the 15,000 API 
operations per day limit is still applicable. As all requests to Keyword 
Planning services for both standard and basic access are rate limited. Fewer 
requests are allowed per minute when compared to other services. Our 
recommendation is to cache or store results as you will receive the same 
response over a long time span. For example, if you request a set of existing 
keywords, the response is not going to change over a period of hours or days. 
In the case of historical metrics, the statistics refresh monthly. "


If you want to know more about another limit in Google Ads API, then, you may 
refer to this Rate limit and System Limits documentation.


Let us know if you have further questions.

Regards,

Darwin
Google Ads API Team
ref:_00D1U1174p._5004Q2g0e2e:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/_fcq-0RLBSHD00-Tg84RxzQ82E_5-mPZ324Q%40sfdc.net.


Re: Quota: Requests per service per method?

2022-11-13 Thread Markus Heiden
Hello Yasar,

I already found that limit.  But IMO I do not exceed the 1 QPS limit. 

As the error message reads this is IMO not the 1 QPS limit that I hit but 
the concurrency limit per service method.

I issue a query each second, even if the prior query has not finished yet.
If these requests take longer than one second they may pile up (up to a 
limit defined by our application).
IMO there is another limit in place. Please provide documentation on that.

Regards,
Markus

adsapi schrieb am Montag, 7. November 2022 um 07:09:15 UTC+1:

> Hi Markus,
>
> Thanks for reaching out to the Google Ads API Forum.
>
> Kindly note that the generateKeywordIdeas 
> 
>  
> is the planning services in the Google As API. Due to cost and complexity, 
> the Planning service methods listed below are subject to separate limits 
> from other types of requests.
>  
>
>- Limited to 1 request per second per CID or developer token: 
>   - KeywordPlanService.GetKeywordPlan 
>   
> 
>  
>   - KeywordPlanService.GenerateHistoricalMetrics 
>   
> 
>  
>   - KeywordPlanService.GenerateForecastMetrics 
>   
> 
>  
>- Requests that violate these limitations are rejected with the error: 
>RESOURCE_EXHAUSTED 
>
> 
>. 
>- 1 QPS is calculated as 60 requests per 60 seconds. 
>
>  
> If you are having the basic access level developer token, then the 15,000 
> API operations per day limit is still applicable. As all requests to 
> Keyword Planning services for both standard and basic access are rate 
> limited. Fewer requests 
>  
> are allowed per minute when compared to other services. Our recommendation 
> is to cache or store results as you will receive the same response over a 
> long time span. For example, if you request a set of existing keywords, the 
> response is not going to change over a period of hours or days. In the case 
> of historical metrics, the statistics refresh monthly. 
>
> Moreover, you may need to avoid 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 being said, I would recommend setting up short delays between 
> requests or combine more operations in fewer requests. Also, we suggest 
> setting a reasonable upper bound for the total number of concurrent tasks 
> that are going to make requests (across all processes and machines), and 
> adjusting upward to optimize your throughput without exceeding the rate 
> limit is recommended. Otherwise, you may possibly experience the exceeding 
> rate limits that the client app is spawning an excessive number of parallel 
> tasks since we don't limit the number of parallel requests a client app can 
> have, this can easily exceed the Requests Per Second limit at the developer 
> token level. However, Throttles can be implemented at the consumer side by 
> limiting the number of concurrent consumers, or implement rate limiters or 
> throttlers for either the producers or consumers.For more information, you 
> may refer to this throttling QPS from the client side (check out Throttling 
> and rate limiters 
> 
> ).
>
> Let us know if you need further clarification.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2g0e2e:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c74fb057-8411-4ffa-91a6-af708223ab36n%40googlegroups.com.


RE: Quota: Requests per service per method?

2022-11-06 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Markus,

Thanks for reaching out to the Google Ads API Forum.

Kindly note that the generateKeywordIdeas is the planning services in the 
Google As API. Due to cost and complexity, the Planning service methods listed 
below are subject to separate limits from other types of requests.

Limited to 1 request per second per CID or developer token:

KeywordPlanService.GetKeywordPlan
KeywordPlanService.GenerateHistoricalMetrics
KeywordPlanService.GenerateForecastMetrics

Requests that violate these limitations are rejected with the error: 
RESOURCE_EXHAUSTED.
1 QPS is calculated as 60 requests per 60 seconds.


If you are having the basic access level developer token, then the 15,000 API 
operations per day limit is still applicable. As all requests to Keyword 
Planning services for both standard and basic access are rate limited. Fewer 
requests are allowed per minute when compared to other services. Our 
recommendation is to cache or store results as you will receive the same 
response over a long time span. For example, if you request a set of existing 
keywords, the response is not going to change over a period of hours or days. 
In the case of historical metrics, the statistics refresh monthly.

Moreover, you may need to avoid 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 being said, I would recommend setting up short delays between requests or 
combine more operations in fewer requests. Also, we suggest setting a 
reasonable upper bound for the total number of concurrent tasks that are going 
to make requests (across all processes and machines), and adjusting upward to 
optimize your throughput without exceeding the rate limit is recommended. 
Otherwise, you may possibly experience the exceeding rate limits that the 
client app is spawning an excessive number of parallel tasks since we don't 
limit the number of parallel requests a client app can have, this can easily 
exceed the Requests Per Second limit at the developer token level. However, 
Throttles can be implemented at the consumer side by limiting the number of 
concurrent consumers, or implement rate limiters or throttlers for either the 
producers or consumers.For more information, you may refer to this throttling 
QPS from the client side (check out Throttling and rate limiters).

Let us know if you need further clarification.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2g0e2e:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0ixG00RKYRR1009Zu2aZI0St--TvIfWjUJ-w%40sfdc.net.