For the end point https://googleads.googleapis.com/v13/customers/${
customerclientid}:generateKeywordHistoricalMetrics

we are seeing only results object in response, we are not getting 
aggregateMetricResults for devices

As aggregateMetricTypess is mentioned it should return
Are there any restrictions?
can we get devices data for 5,000 keywords at a time,  or only one keyword 
at a time?


let link=`https://googleads.googleapis.com/v13/customers/${customerclientid}
:generateKeywordHistoricalMetrics`;
//googleads.googleapis.com
const fetchresult=await fetch(link,{
method: 'POST',
body:JSON.stringify({
// "keywords": keywordstobeplanned,
"keywords": ["sharad pawar"],
// "includeAdultKeywords": true,
"geoTargetConstants": [
"geoTargetConstants/2356","geoTargetConstants/2826",
"geoTargetConstants/2036"
], 
"keywordPlanNetwork": 'GOOGLE_SEARCH',
"aggregateMetrics": 
{
"aggregateMetricTypes":["DEVICE"]
}, 
"language": "languageConstants/1000"
}),
headers:{
"Content-Type": 'application/json',
"Authorization": `Bearer ${access_token}`,
"developer-token": `xxxxxxxxxxxxxxxxx`,
"login-customer-id": customerid
}
});

var finalresult=await fetchresult.json();

Response {"results":[{"text":"sharad 
pawar","keywordMetrics":{"competition":"LOW","monthlySearchVolumes":[{"month":"APRIL","year":"2022","monthlySearches":"201000"},{"month":"MAY","year":"2022","monthlySearches":"135000"},{"month":"JUNE","year":"2022","monthlySearches":"550000"},{"month":"JULY","year":"2022","monthlySearches":"246000"},{"month":"AUGUST","year":"2022","monthlySearches":"110000"},{"month":"SEPTEMBER","year":"2022","monthlySearches":"110000"},{"month":"OCTOBER","year":"2022","monthlySearches":"135000"},{"month":"NOVEMBER","year":"2022","monthlySearches":"135000"},{"month":"DECEMBER","year":"2022","monthlySearches":"301000"},{"month":"JANUARY","year":"2023","monthlySearches":"301000"},{"month":"FEBRUARY","year":"2023","monthlySearches":"246000"},{"month":"MARCH","year":"2023","monthlySearches":"246000"}],"avgMonthlySearches":"246000","competitionIndex":"0"}}]}
 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/4dae588b-cb43-4e41-96c9-022f58852e8en%40googlegroups.com.

Reply via email to