Google Shopping Merchant Accounts V1beta Client - Class AutomaticImageImprovements (0.6.0)

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, 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

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 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
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 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