When requesting device breakdown it responds with only the combined totals for monthly data
def generate_historical_metrics(client, customer_id, keywords, output_csv): keyword_plan_idea_service = client.get_service("KeywordPlanIdeaService") request = client.get_type("GenerateKeywordHistoricalMetricsRequest") request.customer_id = customer_id request.keywords.extend(keywords) request.include_adult_keywords = True request.keyword_plan_network = client .enums.KeywordPlanNetworkEnum.GOOGLE_SEARCH request.language = client.get_service("GoogleAdsService" ).language_constant_path("1000") request.historical_metrics_options.year_month_range.start.year = today.year - 4 request.historical_metrics_options.year_month_range.start.month = client .enums.MonthOfYearEnum.DECEMBER request.historical_metrics_options.year_month_range.end.year = today.year request.historical_metrics_options.year_month_range.end.month = client .enums.MonthOfYearEnum.NOVEMBER request.aggregate_metrics.aggregate_metric_types = [client.get_type( "KeywordPlanAggregateMetricTypeEnum").KeywordPlanAggregateMetricType.DEVICE] -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 visit https://groups.google.com/d/msgid/adwords-api/aca70f23-dace-4c99-bca6-618d726e66ben%40googlegroups.com.