Builder for a product ad under construction.

Typical usage:

```
var adOperation = shoppingAdGroup.newAdBuilder().build();
var ad = adOperation.getResult();
```

Note that it is only necessary to call [ProductAdOperation.getResult()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadoperation#getResult)
if you need to access the actual product ad for further processing (for
instance, one can attach a label to the newly created product ad), otherwise,
calling [ProductAdBuilder.build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadbuilder#build) on
the `ProductAdBuilder` is sufficient to ensure that the product ad
is created.

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadbuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadoperation` | Creates a [ProductAd](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productad). |
| [withMobilePreferred(isMobilePreferred)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadbuilder#withMobilePreferred_isMobilePreferred) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadbuilder` | Sets the new product ad's device preference to mobile or clears it. |

## `build()`

Creates a [ProductAd](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productad). Returns a `ProductAdOperation` that can be used to get the new product ad (or access any associated errors if creation failed).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadoperation` | The associated product ad operation. |

## `withMobilePreferred(isMobilePreferred)`

Sets the new product ad's device preference to mobile or clears it. This field is optional and defaults to `false`.

### Arguments:

| Name | Type | Description |
|---|---|---|
| isMobilePreferred | `boolean` | Whether or not this product ad should be mobile preferred. If `true` is passed in, device preference will be set to mobile. If `false` is passed in, device preference will be set to none. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productadbuilder` | Product ad builder with the specified mobile preference. |