Re: Keep on getting Resource_Exhausted error when I should not

2024-07-10 Thread Parth Vallabhdas Makadiya
Hey,
I am having similar issues on the same topic. We are using 
`KeywordPlanService.GenerateHistoricalMetrics`. We have standard access 
developer token. (So only 1QPS limit applies here.)

I am getting `RESOURCE_EXHAUSTED` (yesterday everything was working fine.)
I am using rate limitting and I am calling the api every 10 seconds .

Time of Calls (with <=9000 keywords in each req)
18:40:13 success > next : 18:40:32 success -> next 18:40:52 fail

Error Details:
```
Headers: 
Metadata(content-type=application/grpc,request-id=qwUXyYeO1kGLjvVZYRnN4g,date=Wed,
 
10 Jul 2024 16:40:52 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 30 seconds."
}
request_id: "qwUXyYeO1kGLjvVZYRnN4g"
```

Please let me know what is wrong ?
Thank you.

Parth Makadiya

On Thursday 8 December 2022 at 20:58:30 UTC+1 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Having standard access allows for unlimited operations per day. 
> However, you would still be subject to the rate limits or QPS limit 
> discussed here 
> 
> .
>
> Encountering the RESOURCE_EXHAUSTED error when having standard access 
> indicates that you could be performing too many requests within a short 
> period of time, or that the API's servers are imposing a limit based on all 
> users traffic : 
>
>- "The Google Ads API buckets requests for rate limiting by queries 
>per second (QPS) per client customer ID (CID) and developer token, meaning 
>that metering is enforced independently on both CIDs and developer tokens. 
>The Google Ads API uses a Token Bucket 
> algorithm to meter 
>requests and determine an appropriate QPS limit, so the exact limit will 
>vary depending on the overall server load at any given time." 
>
> That said, we recommend mitigating the number of requests being made 
> within a short period of time, checking for any parallel processes that 
> also uses your account and developer token, as well as performing retries 
> and the methods mentioned in the guide 
> ,
>  
> to avoid or manage this error. 
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2giL6I: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/90ebb19e-d98b-4a48-9a90-dae1a4b879adn%40googlegroups.com.


Ads API Language id usage

2024-04-19 Thread Parth Vallabhdas Makadiya
Hello Team,
I have two questions regarding usage of language ID and country code id. I 
am mainly using it for Keyword search volume for now. 
(`GenerateKeywordHistoricalMetricsRequest` in java library)

I tried using multiple languages with multiple countries and try to get the 
search volume and found that all the volume are same. irrespective of 
langugae. So I was thinking what role does it play here. What if we dont 
pass it ?

1. Does language ID matter in getting Historical keyword search volume ?
2. Are the CSV provided will change ? (I mean does the country Id and 
language ID changes ?) If not then we can add those in configuration and 
use it from there. (If changes how frequently country code Id changes ?)

Thank you in advance.

Parth Makadiya

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c81e6c35-8b6d-4ccf-91d6-2d5c60cddbe7n%40googlegroups.com.


Re: keywordplanideaservice historical data does not return data for keyword

2024-01-05 Thread Parth Vallabhdas Makadiya
Hi,
Here is the UI spreadsheet required by you. Please have a look. I am 
getting data for the keyword from the google ads UI. (but in the response 
it was empty. This is just a small list but it happens with a lot of 
keywords. (around 1200 keyword out of 12000 keywords. (empty data)))

Thank you.


On Friday, January 5, 2024 at 9:25:38 AM UTC+1 Google Ads API Forum Advisor 
wrote:

> Hi Parth,
>
> Thank you for providing the additional information.
>
> We have received the API log files "gads-req-res.txt, general req.txt" and 
> "DE_output_with_response_data_monthly(02.01.2024).xlsx" file. In order to 
> assist you further, as requested in the earlier email, kindly provide us 
> with the uncropped UI screenshot (from Google Ads account) of the report 
> that you are trying to fetch via the Google Ads API. Also, highlight the 
> discrepancy in the data. Kindly note that the Google Ads API mirrors the 
> Google Ads UI.
>
> 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.!5004Q02r54XI: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/0dc5a49a-dafe-4bd1-a4d7-eac96f9f3df0n%40googlegroups.com.


Keyword Stats 2024-01-05 at 09_24_03.xlsx
Description: MS-Excel 2007 spreadsheet


Re: keywordplanideaservice historical data does not return data for keyword

2024-01-04 Thread Parth Vallabhdas Makadiya
Hi, I have shared the necessary details please check and let me know. ( I 
have used replied to author feature. Let me know if you have got it or not )
On Thursday 4 January 2024 at 13:09:55 UTC+1 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for getting back to us.
>
> Kindly note that I didn't receive any logs, so I request you to resend the 
> logs as a .txt attachment for further investigation.
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02r54XI: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/c8041d54-6e11-4a1c-8409-4d4c0bb9e346n%40googlegroups.com.


Re: keywordplanideaservice historical data does not return data for keyword

2024-01-04 Thread Parth Vallabhdas Makadiya
Hi,
I have shared all the details privately. Let me know if you need anything 
else.

Thank you.

On Wednesday 3 January 2024 at 18:42:02 UTC+1 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for contacting the Google Ads API support team. Please ignore my 
> previous response.
>
> After reviewing your query, I understand that you are not able to get any 
> data for some keywords through Google Ads API. To investigate this issue 
> further, please provide us with the below details.  
>
>- Customer Id 
>- Uncropped screenshots of UI data which you are trying to retrieve 
>via API. Also, highlight the keywords that you are not receiving data from 
>the API 
>- Provide the complete API *request* 
>
> 
> and *response* 
>
> 
> logs with *request ID* 
>
> 
> and *request header* 
>
> 
>  generated 
>at your end. 
>
> 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.!5004Q02r54XI: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/b1222fc8-b13b-4c43-97ce-b5ba43bc248cn%40googlegroups.com.


Re: Not being able to request historical data for keywords because we are limited to have 10,000 keywordPlans

2024-01-03 Thread Parth Vallabhdas Makadiya
As far as I know the limit per request is 1 and you have 1 req per 
day. So I think you need to optimise how you call.

On Monday 23 January 2023 at 10:56:01 UTC+1 sudarshan gowda wrote:

> Hi, we are also facing a similar issue. Basically, we are using google ads 
> API to get historical data for the keywords.  Now we have reached the 
> 10,000 limits and want to remove the limit. Does the above solution works? 
> If yes, could you please provide me the code snippet for the reference? 
> That would be appreciated because we are quite confused about how and where 
> to use "KeywordPlanOperation"? We created a loop to get the historical data 
> for 10,000 keywords. Thanks in advance. 
> On Tuesday, March 29, 2022 at 5:51:08 AM UTC+2 ashl...@shopalyst.com 
> wrote:
>
>> Thanks Ernie for this.
>>
>> We will give this solution a try. Thanks alot. Have a nice day.
>>
>> Thanks,
>> Ashly
>>
>> On Tue, Mar 29, 2022 at 7:59 AM Google Ads API Direct Support <
>> googleadsa...@google.com> wrote:
>>
>>> Hi Ashly,
>>>
>>> Thank you for following up. I would like to reiterate the response of my 
>>> colleague below to this concern:
>>> "
>>>
>>>
>>>
>>>
>>>
>>> *Thank you for reaching out to us. Since you have encountered 
>>> resource_count_limit_exceeded_error: RESOURCE_LIMIT error, it means that 
>>> this request would exceed a limit on the number of allowed resources. The 
>>> details of which type of limit was exceeded will eventually be returned in 
>>> ErrorDetails. Since the logs returned the 
>>> ENABLED_KP_PLANS_PER_USER_PER_CUSTOMER, then this indicates that you may 
>>> have exceeded the limit of enabled keyword plans you can create within a 
>>> single account. You can also check this guide 
>>> 
>>>  as 
>>> reference for the keyword plan limits per account. It should also be 
>>> possible to remove plans if the limit is reached. You can try and use 
>>> the KeywordPlanOperation 
>>> 
>>>  to remove 
>>> 
>>>  on 
>>> a keyword plan.*"
>>>
>>> Let me know if you have questions with the suggestion provided by my 
>>> colleague.
>>>
>>> Regards,
>>> [image: Google Logo] 
>>> Ernie John 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2YrUYj: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/bc9e6a65-3b93-4930-9849-cf9ebd9b4c4an%40googlegroups.com.


KeywordPlanIdeaService Historical data does not return data for keyword

2024-01-03 Thread Parth Vallabhdas Makadiya
Hello,
I am trying to get search volume for some keywords. I get data for most of 
the keyword. For 5-10% of the keyword I don't get any data. I am using 
python library using v15.

Here is my req and response:

```[2024-01-03 14:55:53,583 - DEBUG] Request
---
Method: 
/google.ads.googleads.v15.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics
Host: googleads.googleapis.com
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "XXX",
  "x-goog-api-client": "gl-python/3.8.18 grpc/1.44.0 gax/2.15.0 gccl/22.1.0 
pb/4.25.1",
  "x-goog-request-params": "customer_id=XX"
}
Request: customer_id: "XX"
keywords: "winterjacken jungen"
keywords: "jungen winterjacken"
keywords: "winterjacke jungen 164"
keywords: "winterjacke herren sale"
keywords: "windbreaker kinder"
keywords: "weihnachtsoutfit baby"
keywords: "trekkingsandalen kinder"
keywords: "kinder trekkingsandalen"
keywords: "t shirt kinder"
keywords: "t-shirt kinder"
keywords: "sweatjacke kinder"
keywords: "still t shirt"
keywords: "still t-shirt"
keywords: "stiefel braun damen"
keywords: "sportschuhe kinder"
keywords: "kinder sportschuhe"
keywords: "sneakers weiß damen"
keywords: "sneakers weiss damen"
keywords: "damen sneakers weiß"
keywords: "damen sneakers weiss"
keywords: "kinderschuhe mädchen"
keywords: "kinderschuhe maedchen"
keywords: "kinder klamotten"
keywords: "kinder bikini"
keywords: "maedchen bikini"
keywords: "mädchen bikini"
keywords: "washing machine"
keywords: "waschmaschine"
keywords: "wasch maschine"
language: "languageConstants/1001"
geo_target_constants: "geoTargetConstants/2276"
keyword_plan_network: GOOGLE_SEARCH


Response
---
Headers: {
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "content-disposition": "attachment",
  "date": "Wed, 03 Jan 2024 13:55:53 GMT",
  "request-id": "SBfYqZ7u-tvQ6XqzsRKt-g"
}
Response: results {
  text: "winterjacke herren sale"
  keyword_metrics {
avg_monthly_searches: 14800
monthly_search_volumes {
  year: 2022
  month: DECEMBER
  monthly_searches: 49500
}
monthly_search_volumes {
  year: 2023
  month: JANUARY
  monthly_searches: 22200
}
monthly_search_volumes {
  year: 2023
  month: FEBRUARY
  monthly_searches: 14800
}
monthly_search_volumes {
  year: 2023
  month: MARCH
  monthly_searches: 9900
}
monthly_search_volumes {
  year: 2023
  month: APRIL
  monthly_searches: 5400
}
monthly_search_volumes {
  year: 2023
  month: MAY
  monthly_searches: 1900
}
monthly_search_volumes {
  year: 2023
  month: JUNE
  monthly_searches: 1600
}
monthly_search_volumes {
  year: 2023
  month: JULY
  monthly_searches: 2400
}
monthly_search_volumes {
  year: 2023
  month: AUGUST
  monthly_searches: 4400
}
monthly_search_volumes {
  year: 2023
  month: SEPTEMBER
  monthly_searches: 8100
}
monthly_search_volumes {
  year: 2023
  month: OCTOBER
  monthly_searches: 27100
}
monthly_search_volumes {
  year: 2023
  month: NOVEMBER
  monthly_searches: 49500
}
competition: HIGH
competition_index: 100
low_top_of_page_bid_micros: 204128
high_top_of_page_bid_micros: 764873
  }
}
results {
  text: "still t shirt"
  close_variants: "still t-shirt"
  keyword_metrics {
avg_monthly_searches: 1900
monthly_search_volumes {
  year: 2022
  month: DECEMBER
  monthly_searches: 1300
}
monthly_search_volumes {
  year: 2023
  month: JANUARY
  monthly_searches: 1900
}
monthly_search_volumes {
  year: 2023
  month: FEBRUARY
  monthly_searches: 1900
}
monthly_search_volumes {
  year: 2023
  month: MARCH
  monthly_searches: 2400
}
monthly_search_volumes {
  year: 2023
  month: APRIL
  monthly_searches: 2400
}
monthly_search_volumes {
  year: 2023
  month: MAY
  monthly_searches: 3600
}
monthly_search_volumes {
  year: 2023
  month: JUNE
  monthly_searches: 2400
}
monthly_search_volumes {
  year: 2023
  month: JULY
  monthly_searches: 2400
}
monthly_search_volumes {
  year: 2023
  month: AUGUST
  monthly_searches: 1900
}
monthly_search_volumes {
  year: 2023
  month: SEPTEMBER
  monthly_searches: 1600
}
monthly_search_volumes {
  year: 2023
  month: OCTOBER
  monthly_searches: 1300
}
monthly_search_volumes {
  year: 2023
  month: NOVEMBER
  monthly_searches: 1000
}
competition: HIGH
competition_index: 100
low_top_of_page_bid_micros: 478846
high_top_of_page_bid_micros: 1256973
  }
}
results {
  text: "sneakers weiss damen"
  keyword_metrics {
avg_monthly_searches: 22200
monthly_search_volumes {
  year: 2022
  month: DECEMBER
  monthly_searches: 5400
}