Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Anaytics API Date Range last 1h, last 24h, etc

New Here ,
Oct 27, 2024 Oct 27, 2024

Hi,

 

I am trying to figure out if there would there be a way to specify (say) last 24h in the dateRange for an Adobe Analytics API call, instead of concrete dates such as:"2024-10-13T00:00:00.000/2024-10-14T00:00:00.000" in the following JSON below {
            "type": "dateRange",
            "dateRange": "2024-10-13T00:00:00.000/2024-10-14T00:00:00.000",
            "dateRangeId": "thisMonth"
        }

 

Does anybody know if that is posible and the syntax of a sample JSON. I am sucessfully

calling this:  https://appservice-reporting5-1.omniture.com/reporting/1.0/analytics/users/reports/ranked?locale=en_... with the JSON:

{
"rsid": "schopreprodmain",
"globalFilters": [
{
"type": "dateRange",
"dateRange": "2024-10-13T00:00:00.000/2024-10-14T00:00:00.000",
"dateRangeId": "thisMonth"
}
],
"metricContainer": {
"metrics": [
{
"columnId": "metrics/visits:::0",
"id": "metrics/visits",
"filters": [
"STATIC_ROW_COMPONENT_1"
]
},
{
"columnId": "metrics/visitors:::2",
"id": "metrics/visitors",
"filters": [
"STATIC_ROW_COMPONENT_3"
]
},
{
"columnId": "metrics/visits:::4",
"id": "metrics/visits",
"filters": [
"STATIC_ROW_COMPONENT_5"
]
},
{
"columnId": "metrics/visitors:::6",
"id": "metrics/visitors",
"filters": [
"STATIC_ROW_COMPONENT_7"
]
}
],
"metricFilters": [
{
"id": "STATIC_ROW_COMPONENT_1",
"type": "segment",
"segmentId": "xxxx"
},
{
"id": "STATIC_ROW_COMPONENT_3",
"type": "segment",
"segmentId": "xxxx"
},
{
"id": "STATIC_ROW_COMPONENT_5",
"type": "segment",
"segmentId": "xxxx"
},
{
"id": "STATIC_ROW_COMPONENT_7",
"type": "segment",
"segmentId": "xxxx"
}
]
},
"settings": {
"countRepeatInstances": true,
"includeAnnotations": true
},
"statistics": {
"functions": [
"col-max",
"col-min"
]
},
"capacityMetadata": {
"associations": [
{
"name": "applicationName",
"value": "Analysis Workspace UI"
}
]
}
}
123
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Oct 27, 2024 Oct 27, 2024

Hi there,

 

Please post your question in the following community: https://adobe.ly/3NI8n1q

Experts here will be able to assist you better. Thanks


^BS

Translate
Adobe Employee ,
Oct 27, 2024 Oct 27, 2024
LATEST

Hi there,

 

Please post your question in the following community: https://adobe.ly/3NI8n1q

Experts here will be able to assist you better. Thanks


^BS

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines