custom dimensions-export report using API

Not applicable

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

Solved Solved
0 2 145
1 ACCEPTED SOLUTION

Not applicable

Hi

@venkat ch

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"

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

View solution in original post

2 REPLIES 2

Not applicable

Hi

@venkat ch

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"

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

Not applicable

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?opti...

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.