question on generating yaml file for API

740 views
Skip to first unread message

AR

unread,
Nov 17, 2014, 8:42:34 PM11/17/14
to adwor...@googlegroups.com
Hi,

I recently was granted access to the AdWords API for a project I'm working on. I fetched the Python API and was wondering if there were instructions on how to fill out the configuration file for it (googleads.yaml)?

I have my developer_token and client_id but was unsure as to these:
  user_agent: INSERT_USER_AGENT_HERE
  client_secret: INSERT_CLIENT_SECRET_HERE
  refresh_token: INSERT_REFRESH_TOKEN_HERE

Thanks.

Michael Cloonan (AdWords API Team)

unread,
Nov 18, 2014, 9:53:10 AM11/18/14
to adwor...@googlegroups.com
Hello,

Your user_agent is a string of your choice that uniquely identifies your project. This can be useful for troubleshooting, since we would be able to look up your requests by the user agent.

The client_secret should have been generated along with your client_id, and you can look it up in the Google Developers Console.

The refresh_token is how you authenticate with OAuth 2.0. Please read our guide on OAuth 2.0 for AdWords to get started on generating a refresh token.

Regards,
Mike, AdWords API Team

Jagat Bhat

unread,
Jun 18, 2015, 9:34:03 AM6/18/15
to adwor...@googlegroups.com, atr...@gmail.com

In google developers console I generated the .json file, where i could find client id, but i didn't obtain client secret.. Is it the private key id present in the generated .json file.?
Please help me out.. :)

Michael Cloonan (AdWords API Team)

unread,
Jun 18, 2015, 9:51:55 AM6/18/15
to adwor...@googlegroups.com, jagat...@gmail.com, atr...@gmail.com
Hello,

There should be no reason to generate a .json file. Please see our Authorization Guide, which includes step by step instructions for fetching this data with screenshots.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages