Akash Tomar
Akash Tomar

Reputation: 970

Google Analytics API V4 and Management API V3

I have been updating the Google Analytics Core Reporting API from V3 to V4 recently. Our application uses the Management API V3 and earlier it was running with the V3 of Analytics API. Now that I am updating Analytics Reporting API, how do I integrate the older version of this API with the latest version of Analytics API?

Is this even possible to run both of them together where Analytics is running on V4 and Management is running on V3. I tried to do it but V3 of Management API complains about the Google.API version to not be matching its requirements.

I am trying to do this in dotnet. Let me know if you need any other information.

Snippet from the google analytics documentation:

A snippet from the google documentation

Upvotes: 2

Views: 4676

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116918

The Google Analytics core reporting API (v3) was replaced by the Google Analytics Reporting API (v4). You can technically run both of them in different scripts, but some of the dimensions and metrics only work in v4 and wont work in v3. Both of these APIs allow you to access your Google Analytics data.

The Google Analytics Management API is a standalone API used for Accessing the account information of Google Analytics it has nothing to do with accessing the Actual Google analytics data. There is no new version of this API so nothing for you to be upgrading.

Note: You will need to include the reporting API scope in your client on Google developer console as well as the analytics API if you want to use both. I think the management API still falls under the analytics API scope so your still going to need that even if you enable the reporting api

Upvotes: 3

Related Questions