Open vanderWin opened 6 years ago
Thank you for the report, yes this is a bug where it can't rbind
if the columns are missing for days that have no data. I will look at a safer rbind
such as dplyr::bind_rows()
or improving the resulting data.frame
if no results are found.
What goes wrong
Binding results for search analytics fails if there's a day when there is not data at all. Could be that days with no data also won't have countryName data and might therefore skip a column?
Steps to reproduce the problem
Narrowing date ranges confirms that results are parsed properly for days where there is data, it just seems to be an issue for queries which trigger a "No data found for supplied dates - returning NA" response.
Additionally, this never occurs over the same date ranges querying for other dimensions such as Page or Device, this only happens for Country (which returns 7 columns instead of 6).
Expected output
Outputs that do function correctly follow the 7 headers of:
date | country | countryName | clicks | impressions | ctr | position
E.g.
Actual output
Session Info