3.8K members online now
3.8K 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

fetching data from service account using json private key in c# or jquery code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I need to fetch the data from google analytics using service Account through JSON private key using C# or Jquery.

I am facing below issue



Request had invalid authentication credentials. [401]

Errors [

Message[Request had invalid authentication credentials.] Location[ - ] Reason[unauthorized] Domain[global]



Where as when i am trying the same with p12 private key we are getting the complete data .

Can any one please help me out in this.