Trouble with access to property writes!

38 views
Skip to first unread message

Peter Ekairia

unread,
Sep 1, 2015, 4:50:12 AM9/1/15
to Google Analytics Management API
Hi! I obtained Analytics Beta access from Google then created a new Apps Script project. I added the following code to the project, saved it and ran it.

ANALYTICS_ID = "66883730";
function test() {
props = Analytics.Management.Webproperties;
prop = Analytics.newWebproperty();
prop.name = "testProperty";
props.insert(prop, ANALYTICS_ID);
}

Got the message "Your project does not have access to this feature. (line 6, file "")". Why am I unable to perform Analytics Web property writes, when I already have obtained beta access?

Matt

unread,
Sep 1, 2015, 12:58:35 PM9/1/15
to Google Analytics Management API
HI Please ensure that you are using the same project you used to  request access to the beta. Note that the Project Number is NOT the same thing as the API Key or Project ID. The Project Number only contains numbers. You need to provide the Project Number to be whitelisted for access. Visit the APIs Console to find the Project Number or create a new project: https://console.developers.google.com

People often get there project white listed and then attempt to use the API explorer, which is of course a separate project and will not work.
-Matt
Reply all
Reply to author
Forward
0 new messages