Hi,
I am trying to fetch some variables(both conversion & traffic variables) using reporting API , tried the QUEUE method which is step-1 in API explorer. PFB the code .
{
"reportDescription":{
"reportSuiteID":"XXXXXdev",
"dateFrom":"2017-12-01",
"dateTo":"2017-12-25",
"metrics":[
{
"id":"Visits"
}
],
"sortBy":"Visits",
"elements":[
{
"id":"eVar1",
"top":2
}
],
}
}
The above code is working and i am getting the response with the report ID. But , if i change the "id" in "elements" to some out-of-the box variable name , i am getting error. PFB the code and error message . Please help me on this.
CODE :
{
"reportDescription":{
"reportSuiteID":"XXXXXXdev",
"dateFrom":"2017-12-01",
"dateTo":"2017-12-25",
"metrics":[
{
"id":"Visits"
}
],
"sortBy":"Visits",
"elements":[
{
"id":"cities",
"top":2
}
],
}
}
ERROR:
{
"error":"element_id_invalid",
"error_description":"Element \"cities\" not found",
"error_uri":"https:\/\/marketing.adobe.com\/developer\/en_US\/documentation\/analytics-reporting-1-4\/elements"
}
"cities" is the out-of-the-box variable in Visitor Profile -> GeoSegmentation . There is no eVar/prop allocated , hence i am giving name of the variable only in "id" .