bug in Keyword Planning -> historicalMetricsOptions

49 views
Skip to first unread message

Andrey Eblukov

unread,
Sep 9, 2021, 2:14:30 AM9/9/21
to AdWords API and Google Ads API Forum

Hello, seems I found a bug in the AdsAPI. If trying to set the month of JANUARY in KeywordPlanService.GenerateHistoricalMetrics and KeywordPlanIdeaService.GenerateKeywordIdeass in the format:

"year_month_range" => new YearMonthRange([
"start" => new YearMonth([
"year" => 2019,
"month" => Month::value("JANUARY")
]),
"end" => new YearMonth([
"year" => 2021,
"month" => Month::value("JUNE")
])
])

date range works, but you can't specify start with "JANUARY", for example:

"start" => new YearMonth([
"year" => 2019,
"month" => Month::value("JANUARY")

tried on all years (2018, 2019, 2020, 2021), it doesn't work, returns an error:

"message": "Internal error encountered.", 
"code": 13, 
"status": "INTERNAL",

At the same time, if you set the month "JANUARY" in 'year_month_range' -> 'end' - it works correctly.

Google Ads API Forum Advisor

unread,
Sep 10, 2021, 11:39:33 AM9/10/21
to in...@startupkeeper.com, adwor...@googlegroups.com
Hi Andrey,

Thanks for reaching out. Can you please reply privately with your complete request and response logs for the call that generated the internal error? 

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NSec9:ref
Reply all
Reply to author
Forward
0 new messages