Hello,
I use Java client for downloading CAMPAIGN_LOCATION_TARGET_REPORT with such Query:
ReportQuery query = new ReportQuery.Builder()
.fields("CampaignId", "CampaignName", "Id", "Date", "Clicks", "Impressions", "Conversions", "Cost")
.from(ReportDefinitionReportType.CAMPAIGN_LOCATION_TARGET_REPORT)
.during(ReportDefinitionDateRangeType.LAST_7_DAYS)
.build();
The result is the following:
Campaign ID,Campaign,Location,Day,Clicks,Impressions,Conversions,Cost
...
<campaign_id_1>,<campaign_name_1>,2586,2019-06-29,5,3500,25.00,5500000
...
<campaign_id_1>,<campaign_name_1>,9061362,2019-06-29,0,2,0.00,4500
...
After that, I want to map
Location to the Country Name via
LocationCriterionService (
https://developers.google.com/adwords/api/docs/reference/v201809/LocationCriterionService).
But in the result I have different locations, which belong to one country (like in the result above):
1) 2586 - it's
Pakistan county
2) 9061362 - it's Pakistan county, BUT it's only specific region of the country - Federally Administered Tribal Area
In my case I would like to have metrics for the countries not for the regions. That's why I have questions:
Are metrics in the report for the regions, cities and e.t.c are already included in the metrics for the country?
Or should I sum all metrics, which are related to different locations but belonged to one county, in order to get aggregated result?
For instance, what result should I have for county Pakistan?
1) <campaign_id_1>,<campaign_name_1>,2586,2019-06-29,5,3500,25.00,5500000
or this:
2)
<campaign_id_1>,<campaign_name_1>,2586,2019-06-29,5,3500,25.00,5500000
+
<campaign_id_1>,<campaign_name_1>,9061362,2019-06-29,0,2,0.00,4500
=
<campaign_id_1>,<campaign_name_1>,Pakistan,2019-06-29,5,3502,25.00,5504500