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 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d9afda38-fb10-41b8-bc60-bebea61af094%40googlegroups.com.

Reply via email to