We have an old MCC account who's email had branding that we no longer use
or want clients to see. So in turn we created a new MCC account that no
longer uses that branding and then made the new MCC account a manager of
the old MCC account. On our old MCC account we had API access for use with
a custom dashboard that we made for clients to view reports so we applied
for a new API key for the new MCC and got accepted.
Our dashboard uses a service account to interact with the API using the
service account's credentials, the developer token from the MCC account,
and customer id's that we save in-house. We have had our dashboard working
the old MCC's service account and developer token for nearly a year, but
now we are attempting to port over to the new MCC's account service account
and key. The old account's settings worked immediately after creating the
service account and never gave us any problems, but when we attempt to
connect using the new settings we get this error:
{
Failed to get access token for service account.
{
"error" : "unauthorized_client",
"error_description" : "Unauthorized client or scope in request."
}
}
I have no clue what could be causing it, since I made sure that the two
account's developer consoles were identical with the same APIs enabled,
same type of client credentials, etc. Here are the settings we used for
each (took out the confidential stuff obviously):
//OLD MCC ACCOUNT
((AdWordsAppConfig) _user.Config).DeveloperToken =
"OLD_MCC_TOKEN";
((AdWordsAppConfig) _user.Config).OAuth2ClientId =
"OLD.apps.googleusercontent.com";
((AdWordsAppConfig) _user.Config).OAuth2ServiceAccountEmail =
"[email protected]";
((AdWordsAppConfig) _user.Config).OAuth2PrnEmail =
"[email protected]";
((AdWordsAppConfig) _user.Config).OAuth2CertificatePath =
AppDomain.CurrentDomain.GetData("DataDirectory") + "/OLD.p12";
//NEW MCC ACCOUNT
((AdWordsAppConfig) _user.Config).DeveloperToken =
"NEW_MCC_TOKEN";
((AdWordsAppConfig) _user.Config).OAuth2ClientId =
"NEW.apps.googleusercontent.com";
((AdWordsAppConfig) _user.Config).OAuth2ServiceAccountEmail =
"[email protected]";
((AdWordsAppConfig) _user.Config).OAuth2PrnEmail =
"[email protected]";
((AdWordsAppConfig) _user.Config).OAuth2CertificatePath =
AppDomain.CurrentDomain.GetData("DataDirectory") + "/NEW.p12";
I made sure that the new .p12 file exists correctly, the token is correct,
the service account information is correct, but I still just get that error
above.
Anyone have any clue what the problem is? Any help will be greatly
appreciated!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/fd6611d2-e6d1-4cca-ba0d-ccbcb0aa2d04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.