MarkEdmondson1234 / searchConsoleR

R interface with Google Search Console API v3, including Search Analytics.
http://code.markedmondson.me/searchConsoleR/
Other
114 stars 41 forks source link

New discover feature #72

Closed MarkEdmondson1234 closed 2 years ago

MarkEdmondson1234 commented 2 years ago

Add this https://developers.google.com/search/blog/2021/10/search-analytics-discover-gnews

MarkEdmondson1234 commented 2 years ago

Added as documented, not run tests yet:

MarkEdmondson1234 commented 2 years ago

Try it out by installing via remotes::install_github("MarkEdmondson1234/searchConsoleR")

This should work, let me know any issues as would like to test before making a CRAN release

discover_queries <-
        search_analytics("http://www.example.com",
                         start = "2021-10-01", end = "2021-10-21",
                         dimensions = c("query", "page"),
                         dimensionFilterExp = c("query**^a"),
                         searchType = "discover", rowLimit = 100)
eatom commented 2 years ago

Hi Mark,

I love the regex filter implementation, but unfortunately it does not work for me and my colleagues. We all get the same error message:

Error in FUN(X[[i]], ...) : dimension not one of: countrydevicepagequerysearchAppearance Got this: query**^a

Thank you, Emil

eatom commented 2 years ago

To build on the above this I think something is missing in 'dim_ex' here:

https://github.com/MarkEdmondson1234/searchConsoleR/blob/70601debfb05baf9d7072022b6af8eb6affc88aa/R/utility.R#L66

but I am not 100% sure.

MarkEdmondson1234 commented 2 years ago

Thanks @eatom - I missed a bit as you say. Try it now?

eatom commented 2 years ago

Thanks @eatom - I missed a bit as you say. Try it now?

Thanks @MarkEdmondson1234 , it is working now 👍