Tatvic / RGoogleAnalytics

R Library to easily extract data from the Google Analytics API into R
227 stars 147 forks source link

Unused Arguments #45

Closed Paullenssen closed 6 years ago

Paullenssen commented 6 years ago

Hi,

I've been working with the RGoogleAnalytics package to set up data extraction from GA into R. However when following the steps from the manual and writing the following script:

query.list <- Init(start.date = "2017-08-01", end.date = "2017-09-01", dimensions = "ga:sourceMedium", metrics = "ga:sessions", max.results=1000, table.id = "ga:80023194")

I keep on having the following error message:

Error in Init(start.date = "2017-08-01", end.date = "2017-09-01", dimensions = "ga:sourceMedium", : unused arguments (max.results = 1000, table.id = "ga:80023194")

i'm quite convinced that i need to fill the table.id argument to select the preferred view but it for some reason R says no.

I'm using the RGoogleAnalyticsPremium package because the regular version was not available for R version 3.4.4.

Kind regards,

Paul