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

Can't get data with 0 clicks using byDate #49

Open jcchouinard opened 5 years ago

jcchouinard commented 5 years ago

What goes wrong

I get 14000ish observations and when I look at data, I have no pages with 0 clicks

Steps to reproduce the problem

remotes::install_github("MarkEdmondson1234/searchConsoleR")

options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/webmasters", "https://www.googleapis.com/auth/webmasters.readonly"))

options("googleAuthR.client_id" = "xxxxxxxxxxx.apps.googleusercontent.com") options("googleAuthR.client_secret" = "xxxxxxxxxxxxxxxxxxx") googleAuthR::gar_auth()

indexed_pages <- search_analytics(siteURL="https://www.example.com", startDate = Sys.Date() - 6, endDate = Sys.Date() - 4, dimensions = c("date","page"), walk_data = "byDate")

Expected output

400k pages

Actual output

14k pages

rt3722 commented 4 years ago

same issue