We tried to add new ImageAds using by the GoogleAds API Ver 2.2.0.
We used the below code :
```
$imageAdInfo = new ImageAdInfo([
'data' => new BytesValue(['value' => file_get_contents($file)]),
]);
$ad = new Ad([
'image_ad' => $imageAdInfo,
'final_urls' => [
new StringValue(['value' => 'http://www.example.com/cruise/space/']),
new StringValue(['value' => 'http://www.example.com/locations/mars/'])
],
]);
// Creates an ad group ad to hold the above ad.
$adGroupAd = new AdGroupAd([
'ad_group' => new StringValue(
['value' => AdGroupServiceClient::adGroupName($this->customerId, $adwordsAdgroupId)]
),
'status' => AdGroupAdStatus::PAUSED,
'ad' => $ad
]);
// Creates an ad group ad operation and add it to the operations array.
$adGroupAdOperation = new AdGroupAdOperation();
$adGroupAdOperation->setCreate($adGroupAd);
// Issues a mutate request to add the ad group ads.
$adGroupAdServiceClient = $this->googleAdsClient->getAdGroupAdServiceClient();
$response = $adGroupAdServiceClient->mutateAdGroupAds($this->customerId, [$adGroupAdOperation]);
However, we got the following error message from API:
```
```
So, we want to know the required fields to add the new ImageAd.
However, we couldn't find the information about this.
Could you please tell us the required fields in the above case?
Best Regards.