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?)
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..."
}
Hi Jonathan, I appreciate you responding. But the link you gave me does not work.