# Google Shopping Merchant Accounts V1beta Client - Class AutomaticImageImprovements (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class AutomaticImageImprovements.

This improvement will attempt to automatically correct submitted images if
they don't meet the [image
requirements](https://support.google.com/merchants/answer/6324350), for
example, removing overlays. If successful, the image will be replaced and
approved. This improvement is only applied to images of disapproved offers.

For more information see: [Automatic image
improvements](https://support.google.com/merchants/answer/9242973)

Generated from protobuf message `google.shopping.merchant.accounts.v1beta.AutomaticImageImprovements`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ account_image_improvements_settings` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings` Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator. |
| `↳ effective_allow_automatic_image_improvements` | `bool` Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only. |

### getAccountImageImprovementsSettings

Optional. Determines how the images should be automatically updated.

If this field is not present and provided in the update mask, then the
settings will be deleted. If there are no settings for subaccount, they are
inherited from aggregator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings|null` |   |

### hasAccountImageImprovementsSettings

### clearAccountImageImprovementsSettings

### setAccountImageImprovementsSettings

Optional. Determines how the images should be automatically updated.

If this field is not present and provided in the update mask, then the
settings will be deleted. If there are no settings for subaccount, they are
inherited from aggregator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.AutomaticImageImprovements.ImageImprovementsAccountLevelSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEffectiveAllowAutomaticImageImprovements

Output only. The effective value of allow_automatic_image_improvements.

If account_image_improvements_settings is present, then this value is the
same. Otherwise, it represents the inherited value of the parent account.
Read-only.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEffectiveAllowAutomaticImageImprovements

Output only. The effective value of allow_automatic_image_improvements.

If account_image_improvements_settings is present, then this value is the
same. Otherwise, it represents the inherited value of the parent account.
Read-only.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |