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/ce77318a-d535-48cc-842d-f15b66cd6ccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to