// Create ad with updated status.
Ad ad = new Ad();
ad.setId(adId);
// Create ad with updated status
AdGroupAd adGroupAd = new AdGroupAd();
adGroupAd.setAdGroupId(adGroupId);
adGroupAd.setAd(ad);
adGroupAd.setStatus(AdGroupAdStatus.PAUSED);
// Create operations.
AdGroupAdOperation operation = new AdGroupAdOperation();
operation.setOperand(adGroupAd);
operation.setOperator(Operator.REMOVE);
AdGroupAdOperation[] operations = new AdGroupAdOperation[] {operation};
// Remove ad.
AdGroupAdReturnValue result = service.mutate(operations);
AdGroupAd testAdGroupAd = result.getValue()[0];
assertEquals(AdGroupAdStatus.DISABLED, testAdGroupAd.getStatus());
}