Hello, Im trying to remove adgroup from api in SEARCH campaign
if (addedAdGroups != null) {
try {
List<AdGroupOperation> operations = new ArrayList<>(10000);
for (AdGroup adGroup : addedAdGroups) {
adGroup.setStatus(AdGroupStatus.REMOVED);
AdGroupOperation operation = new AdGroupOperation();
operation.setOperand(adGroup);
operation.setOperator(Operator.SET);
operations.add(operation);
}
adGroupService.mutate(operations.toArray(new AdGroupOperation[0]));
} catch (ApiException e2) {
throw new AdwordsFailureException(e2, currentAdwordsAccount);
}
}
Is It possible to remove adgroup? Im able to remove adgroup manually from
ads interface
Also If this option cannot be handled at all please could you tell me how
to Implement transactional logic when some adwords operation fails with
exception? Thanks
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/2c440eff-3dee-46c4-ba86-c344c0475cad%40googlegroups.com.