Trying to access APIU AdWords: OAuth

29 views
Skip to first unread message

Oscar Martinez

unread,
Aug 21, 2014, 12:20:00 PM8/21/14
to adwor...@googlegroups.com
Hi, 

I'm trying to access Google AdWords Application, but I can't get the Refresh Token. I'm trying with an official MCC account (Token it's pending approval) and a Testing MCC Account. Using .Net Library I get the error "invalid_client" (see attachment). Based on other posts, I tried to create an app in Google Developers Console following this guide:
https://code.google.com/p/google-api-adwords-php/wiki/OAuth2

But, I don't have the "My Registeres Applications" option. You can see in attachment the error that I get trying to access OAuth and where I'm taking the data from (testing account)

Thank you, 

Oscar Martinez

unread,
Aug 21, 2014, 12:22:42 PM8/21/14
to adwor...@googlegroups.com
Sorry, I forot the attachments.
Error_Token_Generatir.jpg
Where_Data_Come_from.jpg

Ray Tsang (AdWords API Team)

unread,
Aug 21, 2014, 12:46:57 PM8/21/14
to adwor...@googlegroups.com
Oscar,

Please see the AdWords API Authentication guide.  The developer token is not the client secret.

Thanks,

Ray

Stacie Waleyko

unread,
Aug 21, 2014, 2:05:56 PM8/21/14
to adwor...@googlegroups.com
Hi Oscar, the guide that Ray posted is the one I used. The client ID and client secret that you give to the token generator comes from the developers console (not the customer ID on the top right corner of AdWords or the developer token). The "Create a client identifier and client secret" section of the guide has instructions for getting the client ID and client secret.

Stacie

Oscar Martinez

unread,
Aug 21, 2014, 2:21:53 PM8/21/14
to adwor...@googlegroups.com
Thanks Rai and Stacie.

Yes, I saw the error and I created the configuration for Developer Account. I have a progress and I got the code for the webconfig.xml. Now I get an exception executing an example to retrieve campaigns. But Maybe this is not the correct thread to post it.

Thank you, 


On Thursday, August 21, 2014 10:20:00 AM UTC-6, Oscar Martinez wrote:
Reply all
Reply to author
Forward
0 new messages