TextAd textAd = new TextAd();
textAd.setHeadline("Test Headline");
textAd.setDescription1("Description1");
textAd.setDescription2("Description2");
textAd.setFinalUrls(new String[] {"http://cloudsense.com"});
AdGroupAdServiceInterface adGroupAdService =
adWordsServices.get(session, AdGroupAdServiceInterface.class);
AdGroupAd adGroupAd = new AdGroupAd();
adGroupAd.setAdGroupId(adgroupid);
adGroupAd.setAd(textAd);
adGroupAd.setStatus("PAUSED");
AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation();
adGroupAdOperation.setOperand(adGroupAd);
adGroupAdOperation.setOperator(Operator.ADD);
AdGroupAdReturnValue result = adGroupAdService.mutate(adGroupAdOperation );
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<requestId>00058e7b34c209b90aa78213c00de258</requestId>
<serviceName>AdGroupAdService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>240</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>[AdGroupAdError.CANNOT_CREATE_TEXT_ADS @ operations[0].operand.ad]</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<message>[AdGroupAdError.CANNOT_CREATE_TEXT_ADS @ operations[0].operand.ad]</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdGroupAdError">
<fieldPath>operations[0].operand.ad</fieldPath>
<fieldPathElements>
<field>operations</field>
<index>0</index>
</fieldPathElements>
<fieldPathElements>
<field>operand</field>
</fieldPathElements>
<fieldPathElements>
<field>ad</field>
</fieldPathElements>
<trigger/>
<errorString>AdGroupAdError.CANNOT_CREATE_TEXT_ADS</errorString>
<ApiError.Type>AdGroupAdError</ApiError.Type>
<reason>CANNOT_CREATE_TEXT_ADS</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>