Hello, I am trying set the date range for KeywordIdeas as stated in the documentation (PHP)
$requestOptionalArgs['historicalMetricsOptions'] = new HistoricalMetricsOptions([
'yearMonthRange' => new YearMonthRange([
'start' => new YearMonth([
"year" => 2020,
"month" => Month::JANUARY
]),
'end' => new YearMonth([
"year" => 2020,
"month" => Month::MAY
])
])
]);
it doesn't work, returns an error: "Invalid message property: yearMonthRange".
Please tell me how to do it correctly.