# Google Shopping Merchant Accounts V1 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 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 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.v1.AutomaticImageImprovements`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1

## 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/V1.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/V1.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/V1.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` |   |