you are trying to build an ETA ad, and this ad type has been deprecated.
instead, you should try and build a RSA ad:
// create ad function
function CreateAd(adGroup, header1, header2, description, partURL1, partURL2, destinationURL){
Logger.log('url: %s', destinationURL);
var operation = adGroup.newAd().responsiveSearchAdBuilder()
.addHeadline(header1)
.addHeadline(header2)
.addHeadline(header3)
.addDescription(description1)
.addDescription(description2)
.withPath1(partURL1)
.withPath2(partURL2)
.withFinalUrl(destinationURL)
.build();
if(!operation.isSuccessful())
return null;
return operation.getResult();
}