Hey Eric, Are you able to share your code. I'm also trying to get this working. And can't seem to get it from what you've posted.
Thanks On Wednesday, 23 June 2021 at 5:01:40 am UTC+10 [email protected] wrote: > Hey Brad, > > I was able to set the HistoricalMetricsOptions like this (in Python): > > keyword_plan_service = client.get_service("KeywordPlanService") > metric_request = client.get_type("GenerateHistoricalMetricsRequest") > > resource_name = > keyword_plan_service.keyword_plan_path(customer_id, keyword_plan_id) > > metric_request.keyword_plan=resource_name > metric_request.historical_metrics_options.year_month_range.start.year=2019 > metric_request.historical_metrics_options.year_month_range.start.month= > client.get_type("MonthOfYearEnum").MonthOfYear.JANUARY > metric_request.historical_metrics_options.year_month_range.end.year=2021 > metric_request.historical_metrics_options.year_month_range.end.month= > client.get_type("MonthOfYearEnum").MonthOfYear.MAY > > response = > keyword_plan_service.generate_historical_metrics(metric_request) > > On Monday, June 21, 2021 at 3:37:40 PM UTC-7 Brad Wilcox wrote: > >> I am trying to define the YearMonth settings in the >> HistoricalMetricsOptions from this documentation: >> https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions >> I haven't been able to figure out how to use and haven't seen any example >> pieces of code. Can anyone help me with understanding how this object can >> be set? >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/9fe73aa6-44d6-4e35-9b98-7e79f00f7ea7n%40googlegroups.com.
