fetching data from service account using json private key in c# or jquery code
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. 
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.