Hi
With AdWords API it was my mistake, so finally I made it work. However, now I also need to get this report type for UAC campaigns and having some troubles validating data. To get the report I am using user_location_view which should return data grouped by location of the user specified in segments. If I am running the query below
SELECT
user_location_view.country_criterion_id,
segments.date,
segments.geo_target_region,
segments.geo_target_city,
metrics.clicks,
metrics.cost_micros,
metrics.impressions
FROM user_location_view
WHERE segments.date = '2021-03-25'
I am getting smaller amount of clicks, cost and impressions in comparison to:
SELECT
user_location_view.country_criterion_id,
metrics.clicks,
metrics.cost_micros,
metrics.impressions
FROM user_location_view
WHERE segments.date = '2021-03-25'
I guess this is happening because of the segments used in the query (segments.geo_target_city, segments.geo_target_region). If the city is missing for metrics, it is not returning the row, just omits rows with empty columns. Is that possible to control that and add all the data?
In AdWords API it returned "--" if there is an empty column.
Just to make it clear let me provide an example. In case of Adwords, API GEO PERFORMANCE REPORT returns country_id, region_id and city_id. If city_id is missing (I guess for those clicks which were not matched to particular city), it returns "--". In case of user_location_view I get different data, because if there is no matched city, there is no row with the metrics which were matched on regions, but not cities. I can provide additional account info for which I am requesting data via private messages if needed.
Other than that UI shows a bit different numbers which are bigger, even when I do not use segments.