Creating AdwordsClient without LoadFromStorage

170 views
Skip to first unread message

Jeremy Thiesen

unread,
May 11, 2015, 12:57:30 PM5/11/15
to adwor...@googlegroups.com
Hey there, just started with the Adwords API and I'm a bit lost.

I want to create an AdwordsClient object. And using the guide from the First Request Page https://developers.google.com/adwords/api/docs/first-request, they create their Adwords client as such:

client = AdWordsClient.LoadFromStorage()

However, it says you can also supply the credentials manually, which is what I want to do since I maintain many different accounts and hold the credentials in a database. However, there is no link or reference that I could find on how to do it without the LoadFromStorage function. How should I create the AdwordsClient? 

Anthony Madrigal

unread,
May 12, 2015, 10:04:52 AM5/12/15
to adwor...@googlegroups.com, jeremy....@gmail.com
Hi Jeremy, 

In the client library, check out the create_adwords_client_without_yaml.py example, which shows how to pass credentials and other information when creating an AdWordsClient. All you need to do is just put in the values for the variables that are in there.

Cheers,
Anthony, AdWords API Team
Reply all
Reply to author
Forward
0 new messages