I am trying to get the device type breakdown using the aggregate_metrics field of the GenerateHistoricalMetricsRequest. Specifically, my code looks like this:
agg_metrics = client.get_type("KeywordPlanAggregateMetrics")
agg_metric = client.enums.KeywordPlanAggregateMetricTypeEnum.DEVICE
agg_metrics.aggregate_metric_types.append(agg_metric)
request = client.get_type("GenerateHistoricalMetricsRequest")
request.aggregate_metrics = agg_metrics
However, the aggregate_metric_results field in the GenerateHistoricalMetricsResponse is empty.
Am I adding this parameter to the request correctly?