Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ParseDataFeedJSON(GA.Data) : code : 400 Reason : Invalid value ' #43

Open
donaldan opened this issue Dec 3, 2017 · 0 comments

Comments

@donaldan
Copy link

donaldan commented Dec 3, 2017

Hi, I am getting this issue when I use the following segment and it gives me this error

query.list <- Init(start.date = "2017-11-01",
end.date = "2017-11-30",
dimensions = "ga:pagePath",
metrics = "ga:pageviews",
sort = NULL, filters = NULL,
segments = my_segment,
max.results = 1000,
table.id = "ga:104288048",
start.index=NULL)

Create the Query Builder object so that the query parameters are validated

ga.query <- QueryBuilder(query.list)

Extract the data and store it in a data-frame

ga_data <- GetReportData(ga.query, token, split_daywise = T)

Error in ParseDataFeedJSON(GA.Data) : code : 400 Reason : Invalid value '

My segment i have followed an example as below: i am looking to retrieve (i found an example pulls the top 10 pages for the last thirty days, for visits that occurred on a mobile device

my_segment_element <- segment_element("deviceCategory",
operator = "EXACT",
type = "DIMENSION",
expressions = "Mobile")

my_segment_vector <- segment_vector_simple(list(list(my_segment_element)))

my_segment_definition <- segment_define(list(my_segment_vector))

my_segment <- segment_ga4("Mobile Sessions Only",session_segment = my_segment_definition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant