Hi Aryeh. Thank you for your reply. But it is still not clear how to get a 
monthly search volume for an array of keywords. 
For example, if I have an array of keywords *@keywords = ['cars for sale', 
'used cars for sale', 'new cars for sale' ] *and I need to get monthly a 
search volume for the past 3 months for each of these keywords.

According to documentation that you provided the first step that I need to 
do is to create a keywords plan object:


*client = Google::Ads::GoogleAds::GoogleAdsClient.new  keyword_plan = 
create_keyword_plan(client, customer_id)*

Could you please explain and provide code samples of the following: 
1) How to pass an array of keywords *@keywords *into the *keyword_plan * object 
in order to receive monthly search volume for these keywords in the array?
2) Ho to specify a needed past period of time, for example for the past 3 
months? How to tell API that we need monthly search volume for the past 3 
months?

Thanks. 


On Friday, November 19, 2021 at 8:51:32 PM UTC adsapi wrote:

> Hi Ruslan,
>
> The guide has instructions how to convert the "generate forecast metrics" 
> code sample so that it generates historical metrics instead. Both programs 
> have to run in order to generate using a library. 
>
> We don't have a sample that is already set up to generate historical 
> metrics, presumably because it's so similar to generating forecast metrics 
> and conversion of the sample is a trivial thing. I modified the sample 
> Generate 
> Forecast Metrics code 
> <https://developers.google.com/google-ads/api/docs/samples/generate-forecast-metrics>
>  to 
> generate historical metrics and ran it successfully before answering you 
> the last time.
>
> Let me lay out what I was trying to convey in the email before in a way 
> that is action oriented: 
>    
>    1. Run the  sample ad keyword plan code 
>    
> <https://developers.google.com/google-ads/api/docs/samples/add-keyword-plan>
>      
>    2. Change the code in generate forecast metrics to generate historical 
>    metrics instead of forecast metrics 
>    
> <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#generate_the_metrics>
>  Here's 
>    the sample Generate Forecast Metrics code 
>    
> <https://developers.google.com/google-ads/api/docs/samples/generate-forecast-metrics>
>    . 
>    3. Turn on the logger 
>    
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging> 
> with 
>    the logger set to 'DEBUG' 
>    4. Run that modified sample to pull your historical metrics. 
>
> Feel free to get back to us.
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so>
>
> Regards,
>   
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2RA8Jm: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 
"AdWords API and Google Ads 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/14ac92ae-4dbe-41c7-bbb2-f6ee70120a4en%40googlegroups.com.
  • Ho... Ruslan
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Ruslan
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Ruslan
            • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
              • ... Ruslan
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Ruslan
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to