Hi,
I'm trying to update Ad (actually to remove it and recreate new one with updated fields).
I created two operations:
operations = new[]
{
new AdGroupAdOperation
{
@operator = Operator.ADD,
operand = adGroupAd
},
new AdGroupAdOperation
{
@operator = Operator.REMOVE,
operand = new AdGroupAd
{
adGroupId = adGroupAd.adGroupId,
ad = new Ad {id = oldId}
},
}
};
Then the array of these operations is sent through BatchJobService at once (will be generated one batch job Id). I want to be sure that before removing the ad, the new one was created. In case of failure to create Ad I don't want to remove the old one. Is it possible to achieve it using just one batch job call to Adwords api?