AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Have a way to programmatically access the current list of dimensions and metrics available for use with Google analytics API. #299

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Name of related component: Core Reporting API

Request summary:
Have a way to programmatically access the current list of dimensions and 
metrics available for use with Google analytics API.  I would like to see all 
of the data for each dimensions and metric. As well as any invalid combinations 
for each.

XML Example:

<Dimensions>
<ID>50</ID>
<Name>Second Page Path</Name>
<APIName>ga:secondPagePath</APIName>
<Description>The path component of the second page in a user&apos;s 
session.</Description>
<Category>Content</Category>
<DataType>DT_WSTR</DataType>
<Length>4000</Length>
<Precision></Precision>
<Scale></Scale>
<Invalid>
    <Metric>8</metric>
</Invalid>
</Dimensions>
 ....... (continue)

<Metrics>
<Name>Visitors</Name>
<APIName>ga:visitors</APIName>
<Description>Total number of visitors to your website for the requested time 
period.</Description>
<ID>8</ID>
<Category>Visitor</Category>
<DataType>DT_I4</DataType>
<Length></Length>
<Precision></Precision>
<Scale></Scale>
<Invalid>
   <DimensionsID>50</DimenisonID>
</Invalid>
</Metrics>

.... (continue)

Use Cases:
I am currently working on an SSIS source adaptor which coupled with my SSIS 
connection adaptor to Google analytics.   Displays a list to the user of each 
of the Dimensions and metrics they can select to export.
(contact me for more info on the project)

Original issue reported on code.google.com by laurl...@gmail.com on 3 Jun 2013 at 7:12

GoogleCodeExporter commented 9 years ago
Use the metadata API: 
https://developers.google.com/analytics/devguides/reporting/metadata/v3/

Original comment by n...@google.com on 27 Mar 2014 at 7:16