textAd.setDescription2("Low-gravity fun for everyone!");
textAd.setDisplayUrl("www.example.com");
textAd.setUrl("http://www.example.com");
// Create ad group ad.
AdGroupAd ad = new AdGroupAd();
ad.setAdGroupId(adGroupId);
ad.setAd(textAd);
// Create operations.
AdGroupAdOperation textAdGroupAdOperation = new AdGroupAdOperation();
textAdGroupAdOperation.setOperand(ad);
textAdGroupAdOperation.setOperator(Operator.ADD);
AdGroupAdOperation[] operations = new AdGroupAdOperation[] {textAdGroupAdOperation};
// Add ads.
AdGroupAdReturnValue result = service.mutate(operations);
AdGroupAd testAd = result.getValue()[0];
// Set the generated fields.
ad.getAd().setApprovalStatus(testAd.getAd().getApprovalStatus());
ad.getAd().setAdType(testAd.getAd().getAdType());
ad.getAd().setId(testAd.getAd().getId());
ad.setStatus(testAd.getStatus());
TestUtils.assertDeepReflectionEquals(ad, testAd);
}