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

SOLVED

Adobe Report API for Segmented Data

Vyom
Level 2
Level 2

I am trying to pull SiteCat segmented data using the below code through https://marketing.adobe.com/developer/api-explorer#Report.Run (1.4 REST). The requirement is to pull top pages reports with page view as a metric. We have multi-suite tagging, I just wanted to pull only some pages by applying a segment, but the segment code is not working. Can you please help!

  {
"reportDescription": {
       "reportSuiteID": "xxxx",

       "metrics": [
           { "id": "pageviews" }
       ],
       "elements": [
           { "id": "page" }
       ],
   "ReportSuite.GetSegments": [
           { "id": "58855e1ae4b0d27de3125a98"}
       ],
 "source": "realtime"
     }
}

1 Accepted Solution
hyderziaee
Correct answer by
Employee
Employee

Hi Kamal,

From your API request it looks like you are trying to segment real-time data. Unfortunately segmentation is not allowed on real-time. It is only on full processed data that you can apply.segments.

If you were trying to not use real-time, then the you would use Report.Queue and the request would be something like this:

{ "reportDescription": { "reportSuiteID": "RSIDXXXX", "dateFrom": "2017-01-24", "dateTo": "2017-01-25", "sortBy": "pageviews", "segments": [ { "id": "58855e1ae4b0d27de3125a98" } ], "metrics": [ { "id": "pageviews" } ], "elements": [ { "id": "page", "top": 10, "startingWith": 1 } ] } }

View solution in original post

1 Reply
hyderziaee
Correct answer by
Employee
Employee

Hi Kamal,

From your API request it looks like you are trying to segment real-time data. Unfortunately segmentation is not allowed on real-time. It is only on full processed data that you can apply.segments.

If you were trying to not use real-time, then the you would use Report.Queue and the request would be something like this:

{ "reportDescription": { "reportSuiteID": "RSIDXXXX", "dateFrom": "2017-01-24", "dateTo": "2017-01-25", "sortBy": "pageviews", "segments": [ { "id": "58855e1ae4b0d27de3125a98" } ], "metrics": [ { "id": "pageviews" } ], "elements": [ { "id": "page", "top": 10, "startingWith": 1 } ] } }