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!
SOLVED

Adobe warehouse segment doesn't work

Avatar

Level 2

I have tried with 3 types of segments, but none of them works. There are data in the result but it doesn't consider segment.  Could someone help me?

{
    "reportDescription": {
        "reportSuiteID": "{reportSuiteID}",
        "dateFrom": "2015-10-01",
        "dateTo": "2015-10-01",
        "source": "warehouse",
        "elements": [{
            "id": "browser"
        }],
          "segments":[
            {
                "id":"{segmentId}"
            }
        ],
    }
}

{
    "reportDescription": {
        "reportSuiteID": "{reportSuiteID}",
        "dateFrom": "2015-10-01",
        "dateTo": "2015-10-01",
        "source": "warehouse",
        "elements": [{
            "id": "browser"
        }],
          "segments":[
            {
                "id":"dw:{segmentId}"
            }
        ],
    }
}

{
    "reportDescription": {
        "reportSuiteID": "{reportSuiteID}",
        "dateFrom": "2015-10-01",
        "dateTo": "2015-10-01",
        "source": "warehouse",
        "elements": [{
            "id": "browser"
        }],
       "segment_id":"{segmentId}"
    }
}

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You will want to use API 1.4 to request this data. Are there any obstacles preventing you from doing so?

View solution in original post

7 Replies

Avatar

Level 2

I am using the API 1.4. I found I can not find segments with the version 1.3 DataWarehouse.GetSegments. It may explain why the first request returns a segment with name null. But is that means a confliction between version 1.3 and 1.4? 

        "segments":[
            {
                "id":"{segmentId}",
                "name":null
            }
        ],

Avatar

Level 2

Is the segment created with API 1.3 different from the segment created with dashboard version 15? I can find the segment created by API 1.3 on the dashboard 15 but the modification and delete of dashboard have no effect on th segment of API 1.3

Avatar

Level 10

Hi,

Thanks for reaching out.

Could you please give an example what values you are using in place of 'segmentid' in the code snippet? That would help in troubleshooting the problem.

Thanks!

TM

Avatar

Level 2

Hi, 

Here's the details of the segment(https://api.omniture.com/admin/1.4/rest/?method=ReportSuite.GetSegments). I am not sure what is the parameter suite_enabled, because I can not set it in dashboard 15.Maybe it relates with my problem

            {
                "id":"s1011_565c65d5e4b000f255c10aa7",
                "name":"warehouse test6",
                "folder":"",
                "class":"",
                "suite_enabled":false,
                "read_only":false
            }

Avatar

Level 2

Excuse me, do you have any news?

Avatar

Correct answer by
Employee Advisor

You will want to use API 1.4 to request this data. Are there any obstacles preventing you from doing so?

Avatar

Level 2

Hi Gigazelle,

I want to use warehouse with segment. But neither segment container nor segment id works. Here is my reportDescription.

{
    "reportDescription": {
        "reportSuiteID": "xxxxxx",
        "dateFrom": "2015-10-01",
        "dateTo": "2015-10-01",
        "source": "warehouse",
        "elements": [{
            "id": "browser"
        }],
        "segments":[
        {
        "id":"s1011_565c65d5e4b000f255c10aa7"
        }]
    }
}

 The segment is created with dashboard and it's available for warehouse. It's a segment browser="Android 4.0", but I can see all the browsers(Chrome,Safari...) in the result. That means the segment can pass the validation but is not used for warehouse. 

Could you tell me the right way to use segment for warehouse?