Hi,

By default, the library is going to look for your configuration file in 
your home directory. However, if you want it to load the file from an 
alternate location you can pass the path when creating your AdWords client 
<https://github.com/googleads/googleads-python-lib#user-content-caching-authentication-information>,
 
e.g.,

adwords_client = AdWordsClient.LoadFromStorage("*full_path_to_your_config*")

Cheers,
Josh, AdWords API Team

On Tuesday, December 2, 2014 5:20:34 PM UTC-5, Sam wrote:
>
> Probably a stupid question, but I'm just starting to play around using 
> Python and testing using the examples in the library, but am getting an 
> error where the googleads.yaml file (which is up to date) is being search 
> for in a location other than the one in which it sits (its original one 
> when unzipped - C:\Python27\TestApp\googleads-python-lib-master). The error 
> is:
>
> PS 
> C:\Python27\TestApp\googleads-python-lib-master\examples\adwords\v201409\reporting>
>  
> python get_report_fields.py
> Traceback (most recent call last):
>   File "get_report_fields.py", line 54, in <module>
>     adwords_client = adwords.AdWordsClient.LoadFromStorage()
>   File "build\bdist.win32\egg\googleads\adwords.py", line 218, in 
> LoadFromStorage
>   File "build\bdist.win32\egg\googleads\common.py", line 81, in 
> LoadFromStorage
> googleads.errors.GoogleAdsValueError: Given yaml file, 
> C:\Users\Sam\googleads.yaml, could not be opened.
>
> Do I need to move the file to this location? Why is this?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6d312f2d-e9a2-415d-ae75-f1f7feaef63a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to