Is there a way to export target's metric data with daily granularity? | Community
Skip to main content
Level 2
April 24, 2018
Solved

Is there a way to export target's metric data with daily granularity?

  • April 24, 2018
  • 3 replies
  • 4985 views

I am looking for a way to export activity's metric data with daily granularity. I have gone through the target API documentation and it does not mention anything about granularity or date range. It only has the performance report section which does not give the option to set granularity or select a date range.

Please suggest, how can I use the API to get the granular data or suggest an alternate way to get the granular data. Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rajneesh_Gautam_

Hi Kartik, I know its not clearly stated it in Adobe documentation but I found my way to get report for specific interval using reportInterval parameter which looks like one below:

reportInterval": "2017-03-14T05:00Z/2017-07-10T07:00Z

Here's how your API URL will look like:

"https://mc.adobe.io/" & strTenant & "/target/activities/" & strActivityType & "/" & strActivityId & "/report/performance/?reportInterval=" & strReportingInterval

Hope this helps,

Rajneesh

3 replies

Rajneesh_Gautam_
Community Advisor
Rajneesh_Gautam_Community AdvisorAccepted solution
Community Advisor
April 24, 2018

Hi Kartik, I know its not clearly stated it in Adobe documentation but I found my way to get report for specific interval using reportInterval parameter which looks like one below:

reportInterval": "2017-03-14T05:00Z/2017-07-10T07:00Z

Here's how your API URL will look like:

"https://mc.adobe.io/" & strTenant & "/target/activities/" & strActivityType & "/" & strActivityId & "/report/performance/?reportInterval=" & strReportingInterval

Hope this helps,

Rajneesh

Level 2
April 30, 2018

Thanks Rajneesh for the response. It looks like your method will definitely work. I am currently not able to verify this since I am stuck at authentication part of the API, don't know what am I doing wrong. Anyways, I will give it a try once I am through the Authentication step.

Adobe Employee
May 9, 2018

kartikbhatia​ Here's a help document which has detailed steps to generate the authentication token and might help you to get through the authentication steps.

https://helpx-internal.corp.adobe.com/content/help/en/marketing-cloud-core/kb/adobe-io-authentication-step-by-step.html