Unable to retrieve country information

74 views
Skip to first unread message

Suhail

unread,
Nov 15, 2023, 4:31:26 AM11/15/23
to Google Ads API and AdWords API Forum
I am trying to obtain the following metrics based on country using the following query on my test campaign. but it is not returning any country id 

Request: {
  query: "SELECT campaign.id, geographic_view.country_criterion_id, metrics.clicks FROM geographic_view WHERE campaign.id = 20756757804 AND segments.date BETWEEN '2023-10-01' AND '2023-11-01'",
  returnTotalResultsCount: false,
  summaryRowSetting: 'NO_SUMMARY_ROW'
}
 and I receive the following response.
Response:
{
  fieldMask: 'campaign.id,geographicView.countryCriterionId,metrics.clicks'
}
Screenshot 2023-11-15 162753.png

Google Ads API Forum Advisor

unread,
Nov 15, 2023, 9:03:45 AM11/15/23
to msmsfr...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that you want to obtain metrics based on the country via the Google Ads API, but it is not returning any country ID. Kindly provide us with the complete API logs (request and response logs with request ID and request header) generated at your end, along with the uncropped UI screenshot of the Google Ads account with better visibility of the customer ID, to assist you better.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java , .Net , PHP , Python , Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option or a direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qCRMp:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages