Re: googleads.yaml Location Problem
What is the name of the config file? On Tuesday, December 2, 2014 at 2:48:21 PM UTC-8, Josh Radcliff (AdWords API Team) wrote: 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/b3c9bb82-4729-45c4-bbe1-cd11eedb2824%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: googleads.yaml Location Problem
Hi, The file is named googleads.yaml https://github.com/googleads/googleads-python-lib#user-content-caching-authentication-information. There's a sample version of this file https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml in the library as well. Thanks, Josh, AdWords API Team On Thursday, March 5, 2015 at 5:37:35 PM UTC-5, atro...@prosper.com wrote: What is the name of the config file? On Tuesday, December 2, 2014 at 2:48:21 PM UTC-8, Josh Radcliff (AdWords API Team) wrote: 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/be257eef-a877-44ea-af5e-be2f1ef11b61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
googleads.yaml Location Problem
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/ab8e4f1c-d2b5-492f-81c2-ec16bea06a1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: googleads.yaml Location Problem
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.