Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Hello Analytics Reporting API v4 "Password verification failed"

mdb
Bronze 1
Bronze 1

Hi, I am a software engineer just getting into Google API's. I am administrating a Google Analytics account and was informed Google is moving away from the current GA to a new GA system. So I need to export all my data before I lose it. I found this example of a Java batch program and followed the instructions. (Is there a better way?)

Hello GA example 

I get an error, "Password verification failed". I tried the password for the local store I created and my GA account to no avail. 

I am running this in batch mode, so no servers are involved. There are several url's to private keys, I tried using client_x509_cert_url to get the .crt file and make a local store. Not sure if that is correct. 

Here is the JSON GA created when I made the service account and key. I removed the private info. 

{
"type": "service_account",
"project_id": "view-project",
"private_key_id": "the generated key id",
"private_key": "-----BEGIN PRIVATE KEY-----generated private key----END PRIVATE KEY-----\n",
"client_email": "(PII Removed by Staff)",
"client_id": "the generated client id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/view-project%40view-project.iam.gserviceaccount.co..."
}

 

 

 

0 1 274
1 REPLY 1

Hi Jonathan, I appreciate you responding. But the link you gave me does not work.

Top Labels in this Space
Top Solution Authors