unable to get value for aggregateMetrics key

14 views
Skip to first unread message

Raghuram V

unread,
Sep 29, 2023, 5:17:24 PM9/29/23
to Google Ads API and AdWords API Forum
I'm trying to use rest interface API to fetch keyword historical metrics for that I need to give some inputs like keywords as a list, includeAdultKeywords, geoTargetConstants, keywordPlanNetwork, aggregate metrics,historicalMetricsOptions, and languages when I try to give those above inputs im unable to get values for  aggregate metrics, help me what values will I need to put at the field of aggregateMetrics,

Google Ads API Forum Advisor

unread,
Oct 3, 2023, 4:07:36 AM10/3/23
to raghur...@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 would like to fetch aggregateMetrics field. I would suggest you refer to this document to know more about the KeywordPlanAggregateMetrics and values of KeywordPlanAggregateMetricType

Also,  you may follow this example: 
{
  "keywords": ["car", "truck", "SUV"],
  "includeAdultKeywords": false,
  "geoTargetConstants": ["21167"], // New York state
  "keywordPlanNetwork": "GOOGLE_SEARCH",
  "aggregateMetrics": ["UNKNOWN"], // supported enums are UNSPECIFIED,UNKNOWN,DEVICE
  "historicalMetricsOptions": {
    "months": 12
  },
  "languages": ["1000"] // English
}

If the issue still persists, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end 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 direct private reply to this email.

 
This message is in relation to case "ref:_00D1U1174p._5004Q2p2f1h:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages