Hi P.W.,
The order of the parameters to the constructor for the different
operations (CampaignOperation, AdGroupOperation, AdGroupAdOperation)
are not consistent. This is because these classes are automatically
generated from the WSDL files and the order cannot be manipulated for
consistency. As an alternative, create the object with an empty
constructor and set the fields manually in an order of your choosing:
$operation = new AdGroupAdOperation();
$operation->operand = $adText;
$operation->operator = 'ADD';
Best,
- Eric