Builds new image assets.

Typical usage:

```
var imageUrl = "http://www.example.com/example.png";
var imageBlob = UrlFetchApp.fetch(imageUrl).getBlob();
var assetOperation = AdsApp.adAssets().newImageAssetBuilder()
   .withName("name")
   .withData(imageBlob)
   .build();
var imageAsset = assetOperation.getResult();
```

Note that it is only necessary to call [AssetOperation.getResult()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetoperation#getResult)
if you need to access the new asset item for further processing. Otherwise
calling [ImageAssetBuilder.build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder#build) is
sufficient to ensure that the asset is created.

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetoperation` | Creates an image asset. |
| [withData(data)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder#withData_data) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | Sets new image asset's data to the specified value. |
| [withName(name)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder#withName_name) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | Sets new image asset's name to the specified value. |
| [withSyntheticContentAttestation(attestation)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder#withSyntheticContentAttestation_attestation) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | Declares whether or not the new image asset contains synthetic (AI-generated) content. |

## `build()`

Creates an image asset. Returns a `AssetOperation` that can be used to get the new image asset (or access any associated errors if the creation failed).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_assetoperation` | The asset operation. |

## `withData(data)`

Sets new image asset's data to the specified value. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| data | `https://developers.google.com/apps-script/reference/base/blob` | The data for the asset image. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | The asset image builder with the specified data. |

## `withName(name)`

Sets new image asset's name to the specified value. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| name | `String` | The name for the asset image. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | The asset image builder with the specified name. |

## `withSyntheticContentAttestation(attestation)`

Declares whether or not the new image asset contains synthetic (AI-generated) content.

### Arguments:

| Name | Type | Description |
|---|---|---|
| attestation | `String` | The synthetic content attestation, either `"NOT_SYNTHETIC"` or `"IS_SYNTHETIC"`. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageassetbuilder` | The image asset builder with the specified synthetic content attestation. |