Subject: | bug in Google::Adwords::KeywordToolService |
Date: | Mon, 11 Feb 2008 13:32:12 -0800 |
To: | <bug-google-adwords [...] rt.cpan.org> |
From: | "Charlie McElfresh" <charlie [...] mcelfresh.com> |
Hello, thank you for your excellent Google::Adwords module.
When I run the code in the "synopsis" section of this page:
http://search.cpan.org/~rohan/Google-Adwords-v1.5.0/lib/Google/Adwords/KeywordToolService.pm
This code works:
print "moreSpecific \n";
for ( @{$keyword_variations->moreSpecific} ) {
print "Keyword # text : " . $_->text . " | searchVolumeScale : " . $_->searchVolumeScale . "\n";
}But the following code throws this error: Can't use an undefined value as an ARRAY reference at line 100 print "additionalToConsider \n";
:100 for ( @{$keyword_variations->additionalToConsider} ) {
print "Keyword # text : " . $_->text . " | searchVolumeScale : " . $_->searchVolumeScale . "\n";
}I looked at the source and I cannot see why one works and the other doesn't.
Charlie McElfreshCalifornia, USA