Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!

Adobe Analytics API 2.0 dateRange filter

Avatar

Level 3

We are using Analytics API 2.0 to get data from the reportsuite. Today we came to face a strange thing in the API response in one of the requests.

We are using globalFilter dateRange to filter the data.

Request 1 ;-

"globalFilters":[{"type": "dateRange", "dateRange": "2020-09-22T00:00:00.000/2020-10-05T23:59:59.999"}]

Response 1 :-

"rows":[
{
"itemId":"xxxx",
"value":"Sep 21, 2020",
"data":[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"itemId":"xxx",
"value":"Sep 22, 2020",
"data":[
xx.0,
xx.0,
xx.0,
xx.xx,
xx.0,
0.xx
]
},
------
]

Request 2:-

"globalFilters":[{"dateRange": "2020-09-22T00:00:00.000/2020-10-05T23:59:59.999", "type": "dateRange"}]

Response 2:-

"rows":[
{
"itemId":"xxx",
"value":"Sep 22, 2020",
"data":[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"itemId":"xxx",
"value":"Sep 23, 2020",
"data":[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
{
"itemId":"xx",
"value":"Sep 24, 2020",
"data":[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
]
}....
]


There is no difference in the dateRange filter (except attribute order), but you can see the Response 1 starts with Sep 21 and the Response 2 starts with Sep 22.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies