Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Analytics API 2.0 dateRange filter

eldhov19157560
Level 3
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