I am attempting to bring Doubleclick Campaign Manager dimensions through the GA API and am getting the following error message -
"Restricted dimension(s): (DCM dimensions I entered in the query string) can only be queried under certain conditions. For details see https://developers.google.com/analytics/devguides/reporting/core/dimsmets.
There is no guidance on that referencing site. Has anyone run into and solved this - or is it an auth restriction (shouldn't be: I have admin rights to the property).
thanks
If your property is not Google Analytics 360 you cannot query any of the metrics of the DCM. Take a look again here beside each metrics explanation there is the (Analytics 360 only). That is the only thing I can think if you also have admin rights on the property. Also check if you are authenticated with the correct account in any API or Query Explorer you are using
Related
Is it possible to retrieve user's data from a GA4 property using the User Activity API (https://developers.google.com/analytics/devguides/reporting/core/v4/user-reporting)?
I have checked the documentation but have not found anything so far. Some endpoints of the v4 API explicitly display a warning saying it is not compatible with GA4, but this User API does not display such warning.
no it is not as stated at the top of the page for the Reporting api Overview there for it apply sto the full Reporting API v4.
Note: This API does not support Google Analytics 4 (GA4) properties. Please use the Google Analytics Data API to access the new reporting features for GA4 properties.
As far as i can see there is no equivalent in GA4 yet.
Note: I pinged the team to have them add the quote to the top of that page as well.
I have an application that fetches GA reports with API of users after they give us permission.
Added "useResourceQuotas" and it works fine. I can see quotas left. If a user doesn't use GA 360 there is a message stating the user is not eligible to use this parameter.
Is there a way to determine whether a user has GA 360 before I request a report?
Something from Management API maybe?
Currently I am using an empty report (with only dates) for that, but that looks like an ugly workaround.
You can fetch Google Analytics Account Summaries using Management API and check Web Property Level in the response i.e. webProperties[].level
It can be either STANDARD or PREMIUM where PREMIUM stands for GA360 web property.
I would like to know if it's possible to get the navigation path and timing spent on each page and some information about the client (browser, os, source) using the Google Analytics API. I could store the user id using Google Tag Manager DataLayer.
Is possible to get that information using Google Analytics API? (Another service is also welcome)
The Google analytics api supports a large number of dimensions and metrics which can be extracted. You should consult the dimensions and metrics explorer to see if these suite your needs. Your user id should be saved as a custom dimension if you wish to be able to extract that.
User Timings - Dimensions & Metrics Explorer
Platform or Device - Dimensions & Metrics Explorer
I am trying to fetch Double Click for Publishers data from my Google Analytics account, but the dfp metrics are not possivble to fetch via the reporting api.
Am I right that I need to have GA360 for this?
That's the error message:
Restricted metric(s): ga:dfpRevenue can only be queried under certain conditions. For details see https://developers.google.com/analytics/devguides/reporting/core/dimsmets.
Can I fetch this data via the google DFP API?
Set up the DoubleClick for Publishers reporting integration
Preflight checklist To see DFP reports in GA the following criteria
must be met:
You have a Google Analytics 360 account.
The majority of tags on your site are Google Publisher Tags (GPT).
Select a user who will be an administrator of both DFP and GA Premium.
This will only work with a 360 account which has been set up to use GPT
I'm trying to pull data from a google analytics and put it into a google doc spreadsheet. The main issues seems to be I can't enter my GA Key. All the tutorials have said to enter it in a text box that should be at the end of the resources -> use Google API form. But I see no textbox there, only a message that I have to enable the APIs in the API console to use them.
I've confirmed that I do have Google Analytics enabled in the API console.
The error messages I get are either User does not have sufficient permissions for this profile. or Analytics not defined if I try to type my API key in the text box that says 'Analytics' (which leads me to believe that's defining the variable image).
Since the script is running as "you" you do not need to enter the GA id - it will use the permissions for the account that you were logged in with while creating and authorising that script. That account needs admin permissions for the Google Analytics account you intend to query.
The box that you thought is for the API key holds the name for the analytics object in the script. If you change that you'd need to change all instances of "Analytics" in the script to the name you entered.
For example there is a line in the script that goes:
var accounts = Analytics.Management.Accounts.list();
This will list all accounts connected to the user who authorised that script. You see that the first part is "Analytics" (the global Analytics object in the script), if you enter something in the resources->Google APIs tab you'd need to change that as well - that's why you get an error message "Analytics is not defined" when you change that value.
Hard to tell about your actual problem, probably you are just missing admin permissions in analytics.