API 1.4 and sub-classification

Avatar

Avatar

ursboller

MVP

Total Posts

1.0K

Likes

485

Correct Answer

250

Avatar

ursboller

MVP

Total Posts

1.0K

Likes

485

Correct Answer

250
ursboller
MVP

02-10-2018

need some help getting data out of API 1.4. I have a multi-level-classification (Multiple-Level Classifications) which looks something line this:

evar1

  |-- level1

      |---level1.1

the question is how can I return the values of level1.1 in a report by API 1.4? tried a lot of different calls but either get an error or no data returned. (I checked in workspace and I should get data)

I tried almost every combination of "classification" in the call as described here https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/reporting-api/data_types/r_reportDe...

any ideas or hints what to try?

remark: I have no problems getting data out of the first level (level1), but I want the sub-classification (level1.1)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ursboller

MVP

Total Posts

1.0K

Likes

485

Correct Answer

250

Avatar

ursboller

MVP

Total Posts

1.0K

Likes

485

Correct Answer

250
ursboller
MVP

04-10-2018

Thanks for your help, found it out myself.

AtulSingh​ you're call is just a filter, not an inline segment. the total is still for the unfiltered data...

Solution API 1.4

When trying "Inline-Segmentation" with Multi-Level-Classification you use just the display-name of the desired classification. it doesn't matter what level the classification is, just use the name.

lessons learned:

1) the level of classification doesn't matter, just use the name

2) never use the same name within the classification ...

3) watch your spelling

4) you can't filter for "~none~" eg to get the not classified values

Remark API 2.0: according to the workspace calls the problems should disappear since it's using a classification id.

Answers (2)

Answers (2)

Avatar

Avatar

atuls41837987

Employee

Avatar

atuls41837987

Employee

atuls41837987
Employee

04-10-2018

You can try something like this:

{

  "reportDescription": {

    "reportSuiteID": "RSID",

    "dateFrom": "Start",

    "dateTo": "End",

    "metrics": [

      {

        "id": "instances"

      }

    ],

    "elements": [

      {

        "id": "evar1",

        "classification": "level1.1"

        }

    ]

  }

}

Avatar

Avatar

hyderziaee

Employee

Avatar

hyderziaee

Employee

hyderziaee
Employee

03-10-2018

Can you share a sample request that you have used?