Thanks for your reply. Basically, I want to get statistics for example for
Alaska = clicks, cost, conversions, etc
What I have so far is this:
$campaignService = $adWordsServices->get($session, CampaignService::class);
$selector = new Selector();
$selector->setFields(array('Id', 'Name', 'Status'));
$selector->setOrdering(array(new OrderBy('Name', 'ASCENDING')));
That's for getting the campaign.
$campaignId = $campaign->getId();
$campaignCriterionService = $adWordsServices->get($session, CampaignCriterionService::class);
$selector = new Selector();
$selector->setFields(['Id', 'CriteriaType', 'CampaignId','BidModifier', 'LocationName']);
$selector->setPredicates([
new Predicate('CampaignId', PredicateOperator::IN, [$campaignId]),
new Predicate('CriteriaType', PredicateOperator::IN, ['LOCATION'])]);
$page = $campaignCriterionService->get($selector);
That's for getting location.
I used what you suggested CAMPAIGN_LOCATION_TARGET_REPORT:
$query = 'SELECT CampaignId,Clicks, Cost, Conversions, CostPerConversion, Ctr,CampaignName,ConversionRate, BidModifier
FROM CAMPAIGN_LOCATION_TARGET_REPORT
WHERE CampaignId = ' . $campaignId
But I'm getting duplicate values. I'm confused on how to get stats for exact location.