/**
* Test removing a campaign ad extension.
*/
public void testRemove() throws Exception {
// Create campaign ad extension
CampaignAdExtension extension = new CampaignAdExtension();
extension.setCampaignId(campaignId);
extension.setAdExtension(new AdExtension(adExtensionId, null));
// Create operations.
CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation();
operation.setOperand(extension);
operation.setOperator(Operator.REMOVE);
CampaignAdExtensionOperation[] operations = new CampaignAdExtensionOperation[] {operation};
// Add campaign ad extension.
CampaignAdExtensionReturnValue result = service.mutate(operations);
CampaignAdExtension testExtension = result.getValue()[0];
assertEquals(CampaignAdExtensionStatus.DELETED, testExtension.getStatus());
}