Hi,

Did you also complete the Steps to granting a service account impersonation 
abilities 
<https://developers.google.com/adwords/api/docs/guides/service-accounts#impersonation>,
 
using the new client ID?

Thanks,
Josh, AdWords API Team

On Thursday, August 20, 2015 at 4:11:04 PM UTC-4, Cory Shaw wrote:
>
> We recently had to switch to a new manager account for AdWords due to the 
> domain of the email associated with the account. We have an in-house 
> dashboard for our clients to sign in and visually see reports returned from 
> the AdWords API. On our previous MCC account we were accepted to the API 
> and had a working Developer Token and service account with .p12 key that 
> successfully connects to the API. To fix our domain issue, we created a new 
> MCC account that fit our domain problems. We then made our new MCC account 
> a manager of our old MCC account, and then continued to add the rest of our 
> clients to the new MCC account. 
>
> After doing so we needed to fix our dashboard to use the new MCC's 
> developer token and service account credentials. So we signed into the same 
> email as our new MCC account and went to the Developer's Console and 
> created a new service account. The same as we made our old MCC's service 
> account. We switched our dashboard to use the new service account's 
> credentials, p12 key, and Developer Token, then switched the Prn Email to 
> match. Unfortunately, it is returning:
>
> { 
>
>    "Failed to get access token for service account. 
>
>         { 
>
>              "error" : "unauthorized_client",  
>
>              "error_description" : "Unauthorized client or scope in 
>> request." 
>
>         } 
>
> }
>
>
> Our old Service Account worked immediately after we created it, but this 
> is giving us trouble if we try to connect at all. Our settings are 
> identical except for the credentials shown below:
>
>
>             //OLD MCC
>
>             ((AdWordsAppConfig) _user.Config).DeveloperToken = 
> "OLD_MCC_TOKEN";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2ClientId = "
> OLDapps.googleusercontent.com";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2ServiceAccountEmail = 
> "o...@developer.gserviceaccount.com";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2PrnEmail = "
> o...@gmail.com";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2CertificatePath = 
> AppDomain.CurrentDomain.GetData("DataDirectory") + "/OLD.p12";
>
>
>             //NEW MCC
>
>             ((AdWordsAppConfig) _user.Config).DeveloperToken = 
> "NEW_MCC_TOKEN";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2ClientId = "
> NEW.apps.googleusercontent.com";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2ServiceAccountEmail = 
> "n...@developer.gserviceaccount.com";
>
>             ((AdWordsAppConfig) _user.Config).OAuth2PrnEmail = "
> n...@gmail.com";
>             ((AdWordsAppConfig) _user.Config).OAuth2CertificatePath = 
> AppDomain.CurrentDomain.GetData("DataDirectory") + "/NEW.p12"; 
>
> I made the New MCC's developer console IDENTICAL to the old MCC's 
> developer console, and still no luck. I checked to make sure the new .p12 
> file exists and it does. I'm stumped.
>
> Any help would 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/7036a192-beb7-4c6d-a444-d0365271b5ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to