Skip Menu |

This queue is for tickets about the Google-Adwords CPAN distribution.

Report information
The Basics
Id: 46385
Status: new
Priority: 0/
Queue: Google-Adwords

People
Owner: Nobody in particular
Requestors: EWILHELM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: v1.13
Fixed in: (no value)



Subject: Can't use an undefined value as an ARRAY reference at Google/Adwords/TrafficEstimatorService.pm line 278.
The NetworkTarget object uses an accessor/mutator to modify it's "_networkTypes" hash value, but TrafficEstimatorService tries to access the "networkTypes" key directly.
Subject: adwords-TrafficEstimatorService.diff
--- CPAN/Google/Adwords/TrafficEstimatorService.pm 2009-04-11 04:38:37.000000000 -0700 +++ local/Google/Adwords/TrafficEstimatorService.pm 2009-05-26 13:44:10.000000000 -0700 @@ -275,12 +275,12 @@ if ( defined $campaign->networkTargeting ) { my $network_ref = $campaign->networkTargeting; - if ( scalar @{ $network_ref->{'networkTypes'} } > 0 ) + if ( scalar @{ $network_ref->networkTypes } > 0 ) { push @campaignrequest_params, SOAP::Data->name( 'networkTargeting' => \SOAP::Data->name( - 'networkTypes' => @{ $network_ref->{'networkTypes'} } + 'networkTypes' => @{ $network_ref->networkTypes } )->type('') )->type(''); }