I am trying to fetch location-based reports from the *'**gegoraphic_view*
*'* and from campaigns, but the segments are not working, and I am getting
an empty response. Is there any other way I can get location-based metrics?
let query = `
SELECT geographic_view.country_criterion_id,
segments.geo_target_city,
segments.geo_target_county,
segments.geo_target_district,
segments.geo_target_postal_code,
segments.geo_target_region,
segments.geo_target_state,
campaign.name
FROM campaign
`;
if (campaign) {
query += ` AND campaign.name = '${campaign}'`;
}
console.log("GAQL Query:", query);
// Execute the query
const response = await customer.query(query);
console.log(response);
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/b5a56134-a574-4d8b-ad30-7a1938953ffcn%40googlegroups.com.