Problem with oauth2 service account authentication (Ruby)

42 views
Skip to first unread message

Michael Ng

unread,
Mar 1, 2016, 9:21:12 AM3/1/16
to AdWords API Forum, ahow...@hotmail.com
Hi there, I'm currently developing a web application using rails where one of the modules uses Adwords API data such as keyword search volume and CPC. Here's a short flow of the process:

The user creates a campaign and add in seeder keywords/keywords and the web application will get the adwords api data for the keywords. 

Problem is, I'm having a very hard time in authenticating the service account and making calls to get data from the api. I have tried using the googleauth gem using the information provided on its page but it was quite confusing for me and didn't work out in the end. I have also tried following this method in Step 3 which uses the old 0.8.x version of google-api-client and didn't work out either.

Is there a guide or simpler way of getting authenticated and the api data? Would appreciate it anyone could help :)

Yin Niu

unread,
Mar 1, 2016, 11:21:13 AM3/1/16
to AdWords API Forum, ahow...@hotmail.com
Hello, 

Have you had a change to take a look at the OAuth 2.0 Authentication Guide and the Ruby sample code? For web application with webflow, please checkout here and the Ruby client library. 

Thanks,
Yin, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages