I am making a request for historical data using the
GenerateHistoricalMetrics method on the Services.V11.KeywordPlanService
service. In the results that are returned the HasAverageCpcMicros field is
false and therefore there is nothing but zero in AverageCpcMicros. What do
I have to add to my KeywordPlan to enable this value?
For reference, my sources are publicly available on github
<https://github.com/axtens/Plugin_GoogleAds_Metrics>, and a full trace log
and the output JSON are attached.
-- Bruce
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac051715-4916-472b-a314-d9b1e1ee0124n%40googlegroups.com.
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:36Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name: /google.ads.googleads.v11.services.GoogleAdsService/Search
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params": "customer_id=7273576109"
}
{ "customerId": "7273576109", "query": "SELECT customer.id,
customer.descriptive_name, customer.currency_code, customer.time_zone,
customer.tracking_url_template, customer.auto_tagging_enabled, customer.status
FROM customer LIMIT 1" }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "V3lLTfZZBN9ui37nHNZmSA",
"date": "Mon, 18 Jul 2022 02:01:34 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "results": [ { "customer": { "resourceName": "customers/7273576109", "id":
"7273576109", "descriptiveName": "Chamberlain Auto Electrics - 7061",
"currencyCode": "AUD", "timeZone": "Australia/Perth", "autoTaggingEnabled":
true, "status": "ENABLED" } } ], "fieldMask":
"customer.id,customer.descriptiveName,customer.currencyCode,customer.timeZone,customer.trackingUrlTemplate,customer.autoTaggingEnabled,customer.status"
}
----------------END API CALL----------------
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:37Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v11.services.KeywordPlanService/MutateKeywordPlans
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params": "customer_id=7273576109"
}
{ "customerId": "7273576109", "operations": [ { "create": { "forecastPeriod": {
"dateInterval": "NEXT_QUARTER" }, "name": "Keyword plan GAM_2022-Jul-18
02-01-36-548079" } } ] }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "XncFhbKNsa3UaKrYwAowNQ",
"date": "Mon, 18 Jul 2022 02:01:36 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "results": [ { "resourceName": "customers/7273576109/keywordPlans/458319503"
} ] }
----------------END API CALL----------------
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:37Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v11.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params": "customer_id=7273576109"
}
{ "customerId": "7273576109", "operations": [ { "create": {
"keywordPlanNetwork": "GOOGLE_SEARCH", "geoTargets": [ { "geoTargetConstant":
"geoTargetConstants/1000676" } ], "keywordPlan":
"customers/7273576109/keywordPlans/458319503", "name": "GAM Campaign",
"languageConstants": [ "languageConstants/1000" ], "cpcBidMicros": "1000000" }
} ] }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "F3Bda5wShgVNkNgxWuEJrA",
"date": "Mon, 18 Jul 2022 02:01:37 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "results": [ { "resourceName":
"customers/7273576109/keywordPlanCampaigns/441776409" } ] }
----------------END API CALL----------------
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:38Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v11.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params": "customer_id=7273576109"
}
{ "customerId": "7273576109", "operations": [ { "create": {
"keywordPlanCampaign": "customers/7273576109/keywordPlanCampaigns/441776409",
"name": "GAM AdGroup", "cpcBidMicros": "2500000" } } ] }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "r5Eve_Ijqo-n4z6VF4ZMkw",
"date": "Mon, 18 Jul 2022 02:01:37 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "results": [ { "resourceName":
"customers/7273576109/keywordPlanAdGroups/449918600" } ] }
----------------END API CALL----------------
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:39Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v11.services.KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywords
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params": "customer_id=7273576109"
}
{ "customerId": "7273576109", "operations": [ { "create": { "matchType":
"BROAD", "keywordPlanAdGroup":
"customers/7273576109/keywordPlanAdGroups/449918600", "text": "alternators",
"cpcBidMicros": "2000000" } }, { "create": { "matchType": "BROAD",
"keywordPlanAdGroup": "customers/7273576109/keywordPlanAdGroups/449918600",
"text": "car batteries perth", "cpcBidMicros": "1500000" } }, { "create": {
"matchType": "BROAD", "keywordPlanAdGroup":
"customers/7273576109/keywordPlanAdGroups/449918600", "text": "driving lights",
"cpcBidMicros": "1990000" } } ] }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "fK70IAqN-3GHuL1Gj9Ll7w",
"date": "Mon, 18 Jul 2022 02:01:38 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "results": [ { "resourceName":
"customers/7273576109/keywordPlanAdGroupKeywords/962968572245" }, {
"resourceName": "customers/7273576109/keywordPlanAdGroupKeywords/962968572248"
}, { "resourceName":
"customers/7273576109/keywordPlanAdGroupKeywords/962968572251" } ] }
----------------END API CALL----------------
GoogleAds.DetailedRequestLogs Verbose: 1 : [2022-07-18 02:01:39Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v11.services.KeywordPlanService/GenerateHistoricalMetrics
Host: https://googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-dotnet/4.8.0 gapic/12.1.0
gax/3.5.0+6cfcac416e08abe8a5d580f8d87095c9fdba577e grpc/2.41.0 gccl/12.1.0
pb/3.18.1+0dab03ba7bc438d7ba3eac2b2c1eb39ed520f928",
"developer-token": "REDACTED",
"login-customer-id": "7212153394",
"x-goog-request-params":
"keyword_plan=customers%2F7273576109%2FkeywordPlans%2F458319503"
}
{ "keywordPlan": "customers/7273576109/keywordPlans/458319503" }
Response
--------
Headers: {
"content-disposition": "attachment",
"request-id": "O9iBZKoUbVYBxk_oKTTLKQ",
"date": "Mon, 18 Jul 2022 02:01:38 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
{ "metrics": [ { "keywordMetrics": { "competition": "LOW",
"monthlySearchVolumes": [ { "month": "JULY", "year": "2021", "monthlySearches":
"720" }, { "month": "AUGUST", "year": "2021", "monthlySearches": "720" }, {
"month": "SEPTEMBER", "year": "2021", "monthlySearches": "590" }, { "month":
"OCTOBER", "year": "2021", "monthlySearches": "590" }, { "month": "NOVEMBER",
"year": "2021", "monthlySearches": "590" }, { "month": "DECEMBER", "year":
"2021", "monthlySearches": "590" }, { "month": "JANUARY", "year": "2022",
"monthlySearches": "720" }, { "month": "FEBRUARY", "year": "2022",
"monthlySearches": "590" }, { "month": "MARCH", "year": "2022",
"monthlySearches": "590" }, { "month": "APRIL", "year": "2022",
"monthlySearches": "480" }, { "month": "MAY", "year": "2022",
"monthlySearches": "720" }, { "month": "JUNE", "year": "2022",
"monthlySearches": "590" } ], "avgMonthlySearches": "590", "competitionIndex":
"23", "lowTopOfPageBidMicros": "406376", "highTopOfPageBidMicros": "1921374" },
"searchQuery": "alternators" }, { "keywordMetrics": { "competition": "HIGH",
"monthlySearchVolumes": [ { "month": "JULY", "year": "2021", "monthlySearches":
"480" }, { "month": "AUGUST", "year": "2021", "monthlySearches": "320" }, {
"month": "SEPTEMBER", "year": "2021", "monthlySearches": "260" }, { "month":
"OCTOBER", "year": "2021", "monthlySearches": "320" }, { "month": "NOVEMBER",
"year": "2021", "monthlySearches": "260" }, { "month": "DECEMBER", "year":
"2021", "monthlySearches": "260" }, { "month": "JANUARY", "year": "2022",
"monthlySearches": "480" }, { "month": "FEBRUARY", "year": "2022",
"monthlySearches": "320" }, { "month": "MARCH", "year": "2022",
"monthlySearches": "390" }, { "month": "APRIL", "year": "2022",
"monthlySearches": "390" }, { "month": "MAY", "year": "2022",
"monthlySearches": "390" }, { "month": "JUNE", "year": "2022",
"monthlySearches": "320" } ], "avgMonthlySearches": "320", "competitionIndex":
"96", "lowTopOfPageBidMicros": "1348721", "highTopOfPageBidMicros": "3885217"
}, "searchQuery": "car batteries perth" }, { "keywordMetrics": { "competition":
"HIGH", "monthlySearchVolumes": [ { "month": "JULY", "year": "2021",
"monthlySearches": "210" }, { "month": "AUGUST", "year": "2021",
"monthlySearches": "210" }, { "month": "SEPTEMBER", "year": "2021",
"monthlySearches": "210" }, { "month": "OCTOBER", "year": "2021",
"monthlySearches": "140" }, { "month": "NOVEMBER", "year": "2021",
"monthlySearches": "110" }, { "month": "DECEMBER", "year": "2021",
"monthlySearches": "70" }, { "month": "JANUARY", "year": "2022",
"monthlySearches": "90" }, { "month": "FEBRUARY", "year": "2022",
"monthlySearches": "140" }, { "month": "MARCH", "year": "2022",
"monthlySearches": "140" }, { "month": "APRIL", "year": "2022",
"monthlySearches": "140" }, { "month": "MAY", "year": "2022",
"monthlySearches": "170" }, { "month": "JUNE", "year": "2022",
"monthlySearches": "170" } ], "avgMonthlySearches": "140", "competitionIndex":
"100", "lowTopOfPageBidMicros": "461794", "highTopOfPageBidMicros": "1554650"
}, "searchQuery": "driving lights" } ] }
----------------END API CALL----------------
{
"Metrics": [{
"SearchQuery": "alternators",
"HasSearchQuery": true,
"CloseVariants": [],
"KeywordMetrics": {
"AvgMonthlySearches": 590,
"HasAvgMonthlySearches": true,
"MonthlySearchVolumes": [{
"Year": 2021,
"HasYear": true,
"Month": 8,
"MonthlySearches": 720,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 9,
"MonthlySearches": 720,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 10,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 11,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 12,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 13,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 2,
"MonthlySearches": 720,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 3,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 4,
"MonthlySearches": 590,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 5,
"MonthlySearches": 480,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 6,
"MonthlySearches": 720,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 7,
"MonthlySearches": 590,
"HasMonthlySearches": true
}
],
"Competition": 2,
"CompetitionIndex": 23,
"HasCompetitionIndex": true,
"LowTopOfPageBidMicros": 406376,
"HasLowTopOfPageBidMicros": true,
"HighTopOfPageBidMicros": 1921374,
"HasHighTopOfPageBidMicros": true,
"AverageCpcMicros": 0,
"HasAverageCpcMicros": false
}
}, {
"SearchQuery": "car batteries perth",
"HasSearchQuery": true,
"CloseVariants": [],
"KeywordMetrics": {
"AvgMonthlySearches": 320,
"HasAvgMonthlySearches": true,
"MonthlySearchVolumes": [{
"Year": 2021,
"HasYear": true,
"Month": 8,
"MonthlySearches": 480,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 9,
"MonthlySearches": 320,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 10,
"MonthlySearches": 260,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 11,
"MonthlySearches": 320,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 12,
"MonthlySearches": 260,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 13,
"MonthlySearches": 260,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 2,
"MonthlySearches": 480,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 3,
"MonthlySearches": 320,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 4,
"MonthlySearches": 390,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 5,
"MonthlySearches": 390,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 6,
"MonthlySearches": 390,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 7,
"MonthlySearches": 320,
"HasMonthlySearches": true
}
],
"Competition": 4,
"CompetitionIndex": 96,
"HasCompetitionIndex": true,
"LowTopOfPageBidMicros": 1348721,
"HasLowTopOfPageBidMicros": true,
"HighTopOfPageBidMicros": 3885217,
"HasHighTopOfPageBidMicros": true,
"AverageCpcMicros": 0,
"HasAverageCpcMicros": false
}
}, {
"SearchQuery": "driving lights",
"HasSearchQuery": true,
"CloseVariants": [],
"KeywordMetrics": {
"AvgMonthlySearches": 140,
"HasAvgMonthlySearches": true,
"MonthlySearchVolumes": [{
"Year": 2021,
"HasYear": true,
"Month": 8,
"MonthlySearches": 210,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 9,
"MonthlySearches": 210,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 10,
"MonthlySearches": 210,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 11,
"MonthlySearches": 140,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 12,
"MonthlySearches": 110,
"HasMonthlySearches": true
}, {
"Year": 2021,
"HasYear": true,
"Month": 13,
"MonthlySearches": 70,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 2,
"MonthlySearches": 90,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 3,
"MonthlySearches": 140,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 4,
"MonthlySearches": 140,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 5,
"MonthlySearches": 140,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 6,
"MonthlySearches": 170,
"HasMonthlySearches": true
}, {
"Year": 2022,
"HasYear": true,
"Month": 7,
"MonthlySearches": 170,
"HasMonthlySearches": true
}
],
"Competition": 4,
"CompetitionIndex": 100,
"HasCompetitionIndex": true,
"LowTopOfPageBidMicros": 461794,
"HasLowTopOfPageBidMicros": true,
"HighTopOfPageBidMicros": 1554650,
"HasHighTopOfPageBidMicros": true,
"AverageCpcMicros": 0,
"HasAverageCpcMicros": false
}
}
],
"AggregateMetricResults": null
}