> I'm using the Google::Adwords perl module and I can't get the > addCriteria call to return the new criterion's id. Can anyone see > what I'm doing wrong? > > my $criterion_keyword = Google::Adwords::Criterion->new > ->adGroupId($adgroupid) > ->criterionType('Keyword') > ->text($text) > ->type($type); > my $addcriterion = $criterion_service->addCriteria > ($criterion_keyword); > > The new keyword appears in the Adwords account, but $addcriterion is > only equal to '1' so I can't get the id.
This is fixed now. I needed to change to this: my @addcriterion = $criterion_service->addCriteria ($criterion_keyword); $keyword_id = $addcriterion[0]->id; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---