googleads / googleads-perl-lib

AdWords API Perl Client Library
Apache License 2.0
5 stars 19 forks source link

ReportUtils - runtime error trying to access (Google::Ads::AdWords::Client) $client->get_reporting_config()->get_skip_header() #7

Closed dashirov closed 10 years ago

dashirov commented 10 years ago

A bug seems to have been introduced recently into the ReportUtils.pm on line 129.

Client does not (yet ?) implement get_reporting_config() and somehow returns undef, attempt to use the return value on the line below causes a runtime error.

https://github.com/googleads/googleads-perl-lib/blame/master/lib/Google/Ads/Common/ReportUtils.pm#L129

jradcliff commented 10 years ago

Thanks for pointing this out. I was able to reproduce this error by removing the adwords.properties file from my home directory. Am I correct in thinking that you do not have this file in your home directory and instead are configuring your Client manually?

jcb123 commented 10 years ago

I see the same issue, and yes I am configuring the Client manually.

jradcliff commented 10 years ago

This has been fixed in release 3.1.1. Note that due to issue #6, the name of the distribution has changed to Google::Ads::AdWords::Client.