Sorry, actually i found the fixes, since the imageAd class extends creative class which has display URL getter setter. Now am stuck with upload image process,
public function addImage(){
$session = self::setSession();
$adWordsServices = new AdWordsServices();
$assetService = $adWordsServices->get($session, AssetService::class);
$adGroupAdService = $adWordsServices->get($session, AdGroupAdService::class);
$adGroupId = '104834039189';
$ImageAd = new ImageAd();
$ImageAd->setName('ad imagesss');
$ImageAd->setDisplayUrl('
https://mydisplayurl.com');
// Set a marketing image.
$marketingImageAsset = new imageAsset();
$marketingImageAsset->setAssetId(
self::uploadImageAsset($assetService, '
http://xxxx/Download/test_img.jpeg')
);
$ImageAd->setImage([
new AssetLink(
$marketingImageAsset
)]
);
// Create ad group ad.
$adGroupAd = new AdGroupAd();
$adGroupAd->setAdGroupId($adGroupId);
$adGroupAd->setAd($ImageAd);
// Create ad group ad operation and add it to the list.
$operation = new AdGroupAdOperation();
$operation->setOperand($adGroupAd);
$operation->setOperator(Operator::ADD);
// Add a responsive display ad on the server.
try{
$result = $adGroupAdService->mutate([$operation]);
$success = array('success');
return $success;
}catch (ApiException $apiException) {
return $apiException;
}