PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
355 stars 112 forks source link

Trends Time Series for Metro Area Geography #368

Closed blairlo closed 3 years ago

blairlo commented 4 years ago

Greetings,

Thank you for a great package--

Is it possible to mimic the DMA geography in the gtrends function, similar to the the one found in Google trends URL? for eg: https://trends.google.com/trends/explore?date=all&geo=US-AK-743&q=climate%20change

The following call sends an error, "Country code not valid. Please use 'data(countries)' to retreive valid codes":

ClimateChange <- gtrends(c("climate change"), time = "2004-01-01 2019-12-31", gprop = "web", low_search_volume = TRUE, geo = c("US-AK-743"))

It seems that this functionality was working in v1.4.1, was it since removed?

Thank you so much, Logan

ggershenfeld commented 4 years ago

Thank you for developing and maintaining this extremely helpful package.

This issue may be related to #367. FWIW, I tried running v1.4.1 via devtools::install_version but I am still receiving the same error.

PMassicotte commented 3 years ago

Fixed in #390