Upgraded client not working
Closed this issue · 4 comments
Hi all,
We recently received notice that the version of the api that we were using was reaching end of life, so we upgraded. After the upgrade, things have stopped running. So, I redid the upgrade by installing from cpan as root.
When I run my script, I get this error message:
Can't call method "isa" on an undefined value at /usr/local/share/perl5/Google/Ads/Common/ReportUtils.pm line 86.
I've confirmed that Google::Ads::AdWords::Client is version 5.7.0.
So, what have I done wrong, and how do I fix it?
Thanks in advance,
Mike Diehl.
Hello,
My apologies for the delay in responding. I've been trying to reproduce this, but I've been unable to do so. I'll keep trying a few more things. That line that you are failing at is very basic. I'll try a few more things, and I'll get back to you.
Best,
Nadine, AdWords API Team
Hello Mike,
I just pulled everything down from CPAN on the newest build and tried running an example. Everything was working, so I'm not sure what may be different in your environment. There are two Constants file. One in AdWords and one in Common. The one in AdWords should have changed to 5.7.0. The one in Common should have stayed at 3.6.0. Perhaps, it would have been best if I had increased that one as well, but I don't change that one unless something happens to the core infrastructure. So, in my example, when I run:
print ${Google::Ads::AdWords::Constants::VERSION};
it comes back as 5.7.0. That's expected.
I'm going to step back here and ask another question. The line that's failing has an exception where OAuth logic starts. Did anything change in your config files at all during the upgrade?
Best,
Nadine
Hi Nadine,
Yes, "stepping back" was the way to go. It turned out to be a problem with our OAuth configuration.
Thanks.