Hi, have you added your service account email to Google Analytics? From the error you posted it looks like the credentials you are using are incorrect, this might mean few various things (email not added to GA, email copied to configuration incorrectly or something else).
Thread Starter
abdm
(@abdm)
The email is copied from the generated json file. About the service account, yes, is added. Look:
capture
I have no idea to be honest, can you email me here https://wpadverts.com/contact/ a screen from your WPAdverts Google Analytics configuration, maybe this will help?
Hi, I followed the installation guide mentioned above, tried to save it, but I get the same error message:
Google Service Exception: stdClass Object ( [error] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [domain] => global [reason] => required [message] => Login Required [locationType] => header [location] => Authorization ) ) [code] => 401 [message] => Login Required )
My service account email is added to Google Analytics, any ideas?
Thanks so much for your help!
Hi, please make sure you are pasting the whole key into the Key field, that is starting with
{
"type": "service_account",
...