Skip to content

aggregate_metric_results field not included in GenerateHistoricalMetricsResponse #721

@jlgleason

Description

@jlgleason

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?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions