Re: 429 errors are getting ridiculous

2023-12-26 Thread Amine Achergui
Hi Team,
Thank you for your answer.
With regards to  API Limits and Quotas
 I
haven't exceeded the daily limit any time but if there is a rate limit that
is expressed in terms of  requests per second or per minute, where can I
find it in the documentation?
Regards,
Amine

On Tue, Dec 26, 2023 at 9:40 PM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> Thank you for getting back to us.
>
> By reviewing your query, I understand that you are getting the error "
> RESOURCE_EXHAUSTED
> ",
> it means that a system frequency limit has been exceeded. Kindly prevent
> sending too many requests in a short period of time and also ensure to set
> up short delays between requests or combine more operations in fewer
> requests. Also, please check this sample code for how to Handle a Rate
> Exceeded Error
> 
>  for
> more information.
>
> Additionally, we also have daily API operation limits where requests that
> violate these limits are rejected with the error: RESOURCE_EXHAUSTED. You
> may check out API Limits and Quotas
>  for
> more information.
>
> If you are still encountering an error, kindly provide us with the
> complete API logs (request
> 
>  and response
> 
>  with request-id
> 
>  and request header
> )
> generated at your end to assist you better.
>
> If you are using a client library and haven't enabled the logging yet, I
> would request you to enable logging for the specific client library that
> you are using. You can refer to the guides Java
> 
> , .Net
> 
> , PHP
> 
> , Python
> 
> , Ruby
> 
>  or Perl
>  
> to
> enable logging at your end. For REST interface requests, you can enable
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct
> private reply* to this email.
>
>
> This message is in relation to case "ref:!00D1U01174p.!5004Q02r1p1V:ref"
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CACpJVMTrC84hxeznpwrbZHij%3DQOwKR8165cicxiZ5qiuPOs9Gg%40mail.gmail.com.


Re: 429 errors are getting ridiculous

2023-12-26 Thread Amine Achergui
Hi Team,

Thank you for answer.

Here is an excerpt of the logs that produced 429.

Regards,

Amine

On Tuesday, December 26, 2023 at 5:27:59 AM UTC+1 Google Ads API Forum 
Advisor wrote:

Hi Amine,

Thank you for getting back to us.

I would like to inform you that the logs which you have provided are not in 
the correct format and are incomplete. In order to investigate further, 
kindly provide us with the updated complete API logs in .txt format (request 

 and response 

 with request-id 

 and request header 
)
 
generated at your end to assist you better.


If you are using a client library and haven't enabled the logging yet, I 
would request you to enable logging for the specific client library that 
you are using. You can refer to the guides Java 
, 
.Net 

, PHP 

, Python 

, Ruby 

 or Perl 
 to 
enable logging at your end. For REST interface requests, you can enable 
logging via the curl command by using the -i flag.

You can send the details via *Reply privately to the author option*, or *direct 
private reply* to this email.
  
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1p1V:ref"

Thanks,
  [image: Google Logo] Google Ads API Team 

 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f101839e-ffbd-4b3d-97ab-af39da4830een%40googlegroups.com.
Request
---
MethodName: 
google.ads.googleads.v15.services.KeywordPlanIdeaService/GenerateKeywordIdeas
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=9386216798, 
x-goog-api-client=gl-java/17.0.6 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 
grpc/1.56.1}
Body: customer_id: "9386216798"
url_seed {
  url: "https://redcapnow.com/electrical/co2-monitors";
}
keyword_plan_network: GOOGLE_SEARCH_AND_PARTNERS
language: "languageConstants/1000"
geo_target_constants: "geoTargetConstants/1023191"
keyword_annotation: KEYWORD_CONCEPT


Response

Headers: 
Metadata(content-type=application/grpc,request-id=ZTorUMG95WuNrtqGuV5aeQ,date=Mon,
 25 Dec 2023 16:59:17 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000)
Body: null
Failure message: errors {
  error_code {
quota_error: RESOURCE_EXHAUSTED
  }
  message: "Too many requests. Retry in 1390 seconds."
  details {
quota_error_details {
  rate_scope: DEVELOPER
  rate_name: "Number of operations for basic access"
  retry_delay {
seconds: 1390
  }
}
  }
}
request_id: "ZTorUMG95WuNrtqGuV5aeQ"

Status: Status{code=RESOURCE_EXHAUSTED, description=Resource has been exhausted 
(e.g. check quota)., cause=null}.
2023-12-25 11:59:17.773 ERROR 235088 --- [ForkJoinPool.commonPool-worker-59] 
c.s.k.service.GoogleAdsKeywordService: Google Integration exception: 
Request ID - ZTorUMG95WuNrtqGuV5aeQ

com.google.ads.googleads.v15.errors.GoogleAdsException: errors {
  error_code {
quota_error: RESOURCE_EXHAUSTED
  }
  message: "Too many requests. Retry in 1390 seconds."
  details {
quota_error_details {
  rate_scope: DEVELOPER
  rate_name: "Number of operations for basic access"
  retry_delay {
seconds: 1390
  }
}
  }
}
request_id: "ZTorUMG95WuNrtqGuV5aeQ"

Re: 429 Errors Are Getting Ridiculous

2023-12-14 Thread Ian Campbell
I'm getting the same on this service. 
Including on making the first request in a 24 hour period.
I am getting the error to try again in 30 seconds
If I do try again, even after 1 hour gap, I get the same message.
I realise there is a 10,000 keyword limit on this call, which I presume is 
in a 24 hour period, which I have not exceeded.
Do we have a link to what the quota's are on this?
Both on
- the number of keywords we can request in a period
- the number of calls we can make to this service in a period

On Wednesday 13 December 2023 at 21:19:59 UTC Nick wrote:

> I've been using the Google Ads API for quite some time now.
>
> *FOR NOTE*: I use the API the same amount (volume) of requests throughout 
> the entire time period. 
>
> *I KNOW for a fact that I am not exhausting resources.*
>
> Okay, please keep that in mind, I am not exhausting my resources. I only 
> make around a *20-100 requests per DAY. *
>
> Yet, I keep going through periods where *50%-100%* of requests are being 
> rejected by the KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics 
> with a 429 error. 
>
> Here is the error:
> "grpc-status-details-bin": "\b\b\u0012/Resource has been exhausted (e.g. 
> check quota).\u001a\u0001\
> nDtype.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure\u0012G\n-\n\u0002X\u0002\u0012'Too
>  
> 
>  
> many requests. Retry in 30 seconds.\u0012\u0016aV38uYumnQH-5cXeegS5vw",
>
> Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics,
>  
> RequestId: aV38uYumnQH-5cXeegS5vw, IsFault: True, FaultMessage: Resource 
> has been exhausted (e.g. check quota).
>
> This is sometimes happening on the *VERY FIRST REQUEST* in a 24 hour 
> period.
>
> The exact same behavior is happening for other users. So it has nothing to 
> do with the actual volume of requests. 
>
> Google, I ask you, PLEASE fix this.
>
> *PLEASE* do not respond with the canned response of 
>
> "After reviewing your concern, I understand that you are getting the error 
> “429 Resource has been exhausted” in the Google Ads API. I would kindly 
> request you to provide us with the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end along with the uncropped UI screenshot to better 
> assist you on this request. "
>
> *Attached is a screenshot showing the error rate for 24 hours.*
> As you can see, i made 24 requests and 58% were rejected for 429. 
>
> That example shows that I am not exceeding the limit of requests yet still 
> getting rejected. 
>
> Why does the API work perfectly for weeks then all of a sudden start 
> rejecting more than half of the requests? Regardless of the amount of 
> requests. It's so frustrating. 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f84bb71f-57c8-4480-ba2f-9f5d2851c970n%40googlegroups.com.