Hi team,
How to get CPI(cost per install) for UAC with Ads API? The metrics.cost_micros can not be selected together with segments.conversion_action_name or segments.conversion_action_category. Should I query campaign cost_micros first, then query install numbers? This is not very convenient.
query sql:
select
campaign.id,
campaign.name, segments.conversion_action_category, metrics.conversions, metrics.cost_micros from campaign where
campaign.id = 'xxx' and segments.date = '2020-04-10' and metrics.conversions > 0
error:
Request ID 0fs_ACYcCmqlPooYqRfXdA failed due to GoogleAdsException. Underlying errors:
Error 0: error_code {
query_error: PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE
}
message: "Cannot select the following segments because at least one unsupported metric is found in SELECT or WHERE clause: \'segments.conversion_action_category\'(unsupported metrics: \'cost_micros\')."