Subject: | Yahoo::Marketing::AdGroup bug |
Date: | Mon, 12 Apr 2010 11:49:50 -0700 |
To: | bug-yahoo-marketing [...] rt.cpan.org |
From: | Sean Brady <sbrady [...] reachlocal.com> |
Hello. I've come across an issue with one of the AdGroup elements -
adAutoOptimizationON. It's required during an add operation. But in
the code, it's under the _read_only_attributes. So the call fails.
I've moved it in my local code, to the _user_setable_attributes sub, and
the call works now:
MOVED INTO HERE:
sub _user_setable_attributes {
return ( qw/
ID
accountID
adAutoOptimizationON
advancedMatchON
campaignID
carrierConfig
contentMatchMaxBid
contentMatchON
name
sponsoredSearchMaxBid
sponsoredSearchON
status
watchON
/ );
}
MOVED FROM HERE:
sub _read_only_attributes {
return ( qw/
contentMatchBidStatus
contentMatchMaxBidTimestamp
contentMatchMinBid
createTimestamp
deleteTimestamp
lastUpdateTimestamp
sponsoredSearchMaxBidTimestamp
/ );
}
Thank you,
Sean Brady
ReachLocal, Inc.