custom dimensions-export report using API

Hello All,

I have created new custom variables with ‘javascript’ policy and with the ‘collector statistics’ policy these are saved in the analytics tables.

After that I have created a custom report using them as a dimensions and I see the aggregated data very well.

However when i execute the below api, i’m not receiving the report data, instead providing me error

“{ “code”: “Missing select parameter”, “message”: “Missing select parameter”, “contexts”: }”

https://managementurl.test.com/v1/o/testorg/e/test/stats/Company?“select=sum(message_count)&timeRange=02/20/2016%2000:00~02/21/2016%2000:00&timeUnit=day”

Company is the custom dimension.

Note:

  1. Have defined name as “Company” in stats collector policy

  2. However in report-custom dimension is being visible as “company”

Please help in resolving this issue.

Regards,

Ch.Venkat

Hi

@venkat ch

*[https://managementurl.test.com/v1/o/testorg/e/test/stats/Company](https://managementurl.test.com/v1/o/testorg/e/test/stats/Company?select=sum%28message_count%29&timeRange=02/20/2016%2000:00~02/21/2016%2000:00&timeUnit=day)?"select=sum(message_count)&timeRange=02/20/2016%2000:00~02/21/2016%2000:00&timeUnit=day"*

Can you remove the quotes before select and after day and try ?

Hello Sanjoy,

Thanks. it’s working now.

However i would like to optin for daily summary reports. I have used

https://managementurl.test.com/v1/o/testorg/e/test/stats/preferences/reports/dailysummaryreport?optin=true

it’s giving again same error, select parameter missing.

How to subscribe to daily reports. I have already created a custom report .

Regards,

Ch.venkat.