AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.2K members online now
3.2K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Analytics Core Reporting API Unsampled Reports "invalid accountId"

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am a developer working for a client that has Analytics 360. I have a service account, and I can query sampled data using the Java API, however when I try to create an UnsampledReport I get the following error where I have replaced my service account email address with ...:

 

CompilerException com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "invalid accountId: ...",
"reason" : "badRequest"
} ],
"message" : "invalid accountId: ..."
}, compilingSmiley Sadanalytics.clj:34:14)

 

 

Is there something more than needs to be done for me to be able to create UnsampledReports?