KeywordPlanIdeaService sometimes does not return data for 12 months.

133 views
Skip to first unread message

冨田英祐(pokotyamu えーちゃん)

unread,
Dec 22, 2023, 4:02:58 AM12/22/23
to Google Ads API and AdWords API Forum
Hi,

I'm trying to get search volume using KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics.

I expect to get back results for each month from January through December, respectively.
For example, the following request/response.

```
I, [2023-12-22T17:44:27.171658 #20828]  INFO -- : CID: xxxxxx, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v15.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics, IsFault: no, Request ID: 7S6lXI5Zz11cxAgA36Aj7Q
D, [2023-12-22T17:44:27.171843 #20828] DEBUG -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"xxxxxx","x-goog-api-client":"gl-ruby/3.2.2 gccl/25.0.0 gax/0.20.0 gapic/25.0.0 grpc/1.60.0 pb/3.25.1","x-goog-request-params":"customer_id=xxxxxx"} Payload: {"customerId":"xxxxxx","keywords":["macbook"],"keywordPlanNetwork":"GOOGLE_SEARCH"}
D, [2023-12-22T17:44:27.171884 #20828] DEBUG -- : Incoming response: Payload: {"results":[{"text":"macbook","keywordMetrics":{"avgMonthlySearches":"3350000","monthlySearchVolumes":[{"year":"2022","month":"DECEMBER","monthlySearches":"3350000"},{"year":"2023","month":"JANUARY","monthlySearches":"3350000"},{"year":"2023","month":"FEBRUARY","monthlySearches":"2740000"},{"year":"2023","month":"MARCH","monthlySearches":"3350000"},{"year":"2023","month":"APRIL","monthlySearches":"2740000"},{"year":"2023","month":"MAY","monthlySearches":"2740000"},{"year":"2023","month":"JUNE","monthlySearches":"2740000"},{"year":"2023","month":"JULY","monthlySearches":"3350000"},{"year":"2023","month":"AUGUST","monthlySearches":"3350000"},{"year":"2023","month":"SEPTEMBER","monthlySearches":"3350000"},{"year":"2023","month":"OCTOBER","monthlySearches":"3350000"},{"year":"2023","month":"NOVEMBER","monthlySearches":"4090000"}],"competition":"HIGH","competitionIndex":"100","lowTopOfPageBidMicros":"15486800","highTopOfPageBidMicros":"243427049"}}]}
```

However, after trying several words, I found one word that did not return 12 months of data.

If you know the characteristics of the words that do not return 12 months of data, please let me know.
I am wondering if words with very low search volume match this.

```
I, [2023-12-22T17:53:20.799901 #20828]  INFO -- : CID: xxxxxx, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v15.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics, IsFault: no, Request ID: gAZlEHhBHls_Iqp_26IVdQ
D, [2023-12-22T17:53:20.800048 #20828] DEBUG -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"xxxxxx","x-goog-api-client":"gl-ruby/3.2.2 gccl/25.0.0 gax/0.20.0 gapic/25.0.0 grpc/1.60.0 pb/3.25.1","x-goog-request-params":"customer_id=xxxxxx"} Payload: {"customerId":"xxxxxx","keywords":["ロングデニムサロペット"],"keywordPlanNetwork":"GOOGLE_SEARCH"}
D, [2023-12-22T17:53:20.800082 #20828] DEBUG -- : Incoming response: Payload: {"results":[{"text":"ロング デニム サロペット","closeVariants":["ロングデニムサロペット"]}]}
```

Thank you for your confirmation.

Google Ads API Forum Advisor

unread,
Dec 22, 2023, 8:58:36 AM12/22/23
to tom...@feedforce.jp, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are unable to fetch the data associated with a particular keyword across the 12 months.

In order to assist you further, kindly provide us with the "complete API logs" (request and response with request-id and request header) generated at your end and the uncropped UI screenshot (from Google Ads account) of the report highlighting the data that you are trying to fetch via the Google Ads API.

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.NetPHPPythonRuby 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.!5004Q02r3Ged:ref"

Thanks,
 
Google Logo Google Ads API Team


冨田英祐(pokotyamu えーちゃん)

unread,
Dec 25, 2023, 1:32:09 AM12/25/23
to Google Ads API and AdWords API Forum

Hi,

Thank you for your response.

In the first message, I'm sending the text of my request, but is that not enough?


> D, [2023-12-22T17:44:27.171843 #20828] DEBUG -- : Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"xxxxxx","x-goog-api-client":"gl-ruby/3.2.2 gccl/25.0.0 gax/0.20.0 gapic/25.0.0 grpc/1.60.0 pb/3.25.1","x-goog-request-params":"customer_id=xxxxxx"} Payload: {"customerId":"xxxxxx","keywords":["macbook"],"keywordPlanNetwork":"GOOGLE_SEARCH"}

I have replaced `login-customer-id` and `customer_id` with dummies.
Can I change those to actual values? (Is there a security issue with exposing that ID in this group?)


Thank you for your confirmation.


2023年12月22日金曜日 22:58:36 UTC+9 Google Ads API Forum Advisor:

Google Ads API Forum Advisor

unread,
Dec 25, 2023, 11:02:46 PM12/25/23
to tom...@feedforce.jp, adwor...@googlegroups.com
Hi,

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 and the uncropped UI screenshot (from Google Ads account) of the report highlighting the data that you are trying to fetch via the Google Ads API.
Reply all
Reply to author
Forward
0 new messages