Merchant API v1beta was discontinued and shut down on February 28, 2026. For steps to transition to the latest stable version, seeMigrate from v1beta to v1.
Enable automatic improvementsStay organized with collectionsSave and categorize content based on your preferences.
Automatic improvementsare a set of features that allow Google to automatically update your products,
images, and shipping estimates based on your website's landing page. Enabling
these automatic improvements can lead to an improved user experience, more
traffic to your products, and higher conversion rates.
itemUpdates(automatic item
updates)
andimageImprovements(automatic image
improvements)
settings can be inherited by sub-accounts from their advanced account.
Sub-account-specific settings override inherited ones.
shippingImprovementsare manageable only through the API, not through
the Merchant Center UI.
Update behavior:
When updating settings foritemUpdates,imageImprovements, orshippingImprovements, the API performs a full replacement of the
specified top-level component (e.g., the entireitemUpdatesobject).
Verify that your update request includes all intended sub-fields for the
components you intend to modify, as specified by theupdate_mask.
Retrieve the current automatic improvement settings for your Merchant Center
account. This includes settings for item updates (price, availability,
condition), image improvements, and shipping improvements. The response shows
both the settings configured directly on the account (if any) and the effective
settings, which consider inheritance from an advanced account for item and image
updates.
GET https://merchantapi.googleapis.com/accounts/v1/accounts/{ACCOUNT_ID}/automaticImprovements
A successful request returns anAutomaticImprovementsresource in the response
body. The response shows both the settings configured directly on the account
and the effective settings. Theeffectivesettings are what is applied to the
account and may be inherited from a higher-level account (such as a multi-client
account) if not explicitly set.
{"name":"accounts/{ACCOUNT_ID}/automaticImprovements",// Example 1: Settings are directly configured on the account."itemUpdates":{// When `accountItemUpdatesSettings` is present, `effective` values match the configured ones."accountItemUpdatesSettings":{"allowPriceUpdates":true,"allowAvailabilityUpdates":true,"allowStrictAvailabilityUpdates":false,"allowConditionUpdates":true},"effectiveAllowPriceUpdates":true,"effectiveAllowAvailabilityUpdates":true,"effectiveAllowStrictAvailabilityUpdates":false,"effectiveAllowConditionUpdates":true},// Example 2: Settings are inherited from a parent account."imageImprovements":{// `accountImageImprovementsSettings` is omitted, thus the `effective` value of `true` is inherited."effectiveAllowAutomaticImageImprovements":true},"shippingImprovements":{"accountShippingImprovementsSettings":{"allowShippingImprovements":true},"effectiveAllowShippingImprovements":true}}
This example shows how to retrieve the automatic improvement settings for a
Merchant Center account.
"""Gets the automatic improvements settings for a Merchant Center account."""fromexamples.authenticationimportconfigurationfromexamples.authenticationimportgenerate_user_credentialsfromgoogle.shopping.merchant_accounts_v1importAutomaticImprovementsServiceClientfromgoogle.shopping.merchant_accounts_v1importGetAutomaticImprovementsRequest# Fetches the account ID from the config file.# This is a placeholder for your actual account ID._ACCOUNT_ID=configuration.Configuration().read_merchant_info()# Construct the resource name for AutomaticImprovements.# The format is accounts/{account}/automaticImprovements_NAME=f"accounts/{_ACCOUNT_ID}/automaticImprovements"defget_automatic_improvements_sample():"""Gets the automatic improvements settings for a Merchant Center account."""# Generates OAuth 2.0 credentials for authentication.credentials=generate_user_credentials.main()# Creates a client for the AutomaticImprovementsService.client=AutomaticImprovementsServiceClient(credentials=credentials)# Creates the request to get automatic improvements.# The name parameter is the resource name of the automatic improvements# settings.request=GetAutomaticImprovementsRequest(name=_NAME)print("Sending get AutomaticImprovements request:")# Makes the API request to get automatic improvements.try:response=client.get_automatic_improvements(request=request)print("Retrieved AutomaticImprovements below")print(response)exceptRuntimeErrorase:print(f"An API error occurred:{e}")if__name__=="__main__":get_automatic_improvements_sample()
Modify the automatic improvement settings for your Merchant Center account.
Provide theAutomaticImprovementsobject with the intended state foritemUpdates,imageImprovements, andshippingImprovements. Use theupdate_maskquery parameter to specify which fields you are updating (for
example, to update all provided settings, useupdate_mask=*).
When you update settings, you can either overwrite the existing configuration or
clear it to inherit settings from a parent account.
To overwrite a setting:Include the top-level field name (for example,itemUpdatesorimageImprovements) in theupdate_maskand provide its
new configuration in the request body. This action replaces any existing
settings for that field on the sub-account.
To clear a setting and inherit from a parent:Include the field name in
theupdate_mask, but omit the field entirely from the request body. This
removes the specific configuration from the sub-account, causing it to
inherit the setting from its parent. If the parent account also has no
setting configured, the system default applies.
The following example demonstrates how to clear theimageImprovementssettings
for a sub-account, causing it to inherit them from its parent account, while
simultaneously updating theitemUpdatessettings.
This example demonstrates how to update the automatic improvements settings,
enabling all available automatic improvements for a Merchant Center account.
Theupdate_maskis set to*, meaning all fields provided in theautomatic_improvementsobject in the request body are applied. The response
shows the updated settings, with both the configured and effective values.
"""Updates the automatic improvements settings for a Merchant Center account."""fromexamples.authenticationimportconfigurationfromexamples.authenticationimportgenerate_user_credentialsfromgoogle.protobufimportfield_mask_pb2fromgoogle.shopping.merchant_accounts_v1importAutomaticImageImprovementsfromgoogle.shopping.merchant_accounts_v1importAutomaticImprovementsfromgoogle.shopping.merchant_accounts_v1importAutomaticImprovementsServiceClientfromgoogle.shopping.merchant_accounts_v1importAutomaticItemUpdatesfromgoogle.shopping.merchant_accounts_v1importAutomaticShippingImprovementsfromgoogle.shopping.merchant_accounts_v1importUpdateAutomaticImprovementsRequest# Fetches the Merchant Center account ID from the configuration._ACCOUNT_ID=configuration.Configuration().read_merchant_info()# The resource name for the AutomaticImprovements settings of the account.# Format: accounts/{account}/automaticImprovements_AUTOMATIC_IMPROVEMENTS_RESOURCE_NAME=(f"accounts/{_ACCOUNT_ID}/automaticImprovements")defupdate_automatic_improvements_settings():"""Updates automatic improvements settings for a Merchant Center account to enable all available automatic improvements."""# Generates OAuth 2.0 credentials for authenticating with the API.credentials=generate_user_credentials.main()# Creates a client for the AutomaticImprovementsService.client=AutomaticImprovementsServiceClient(credentials=credentials)# Prepares the AutomaticImprovements object with all improvements enabled.# The 'name' field specifies the AutomaticImprovements resource to update.automatic_improvements_config=AutomaticImprovements(name=_AUTOMATIC_IMPROVEMENTS_RESOURCE_NAME,item_updates=AutomaticItemUpdates(account_item_updates_settings=AutomaticItemUpdates.ItemUpdatesAccountLevelSettings(allow_price_updates=True,allow_availability_updates=True,allow_strict_availability_updates=True,allow_condition_updates=True,)),image_improvements=AutomaticImageImprovements(account_image_improvements_settings=AutomaticImageImprovements.ImageImprovementsAccountLevelSettings(allow_automatic_image_improvements=True)),shipping_improvements=AutomaticShippingImprovements(allow_shipping_improvements=True),)# Creates a field mask to specify which fields of the# AutomaticImprovements resource should be updated.# Using "*" indicates that all fields provided in the# automatic_improvements_config object should be updated.field_mask=field_mask_pb2.FieldMask(paths=["*"])# Creates the update request, including the configured# AutomaticImprovements object and the field mask.request=UpdateAutomaticImprovementsRequest(automatic_improvements=automatic_improvements_config,update_mask=field_mask,)# Sends the request to update automatic improvements and handles the response.try:print("Sending Update AutomaticImprovements request")response=client.update_automatic_improvements(request=request)print("Updated AutomaticImprovements Name below")print(response.name)exceptRuntimeErrorase:# Catches and prints any errors that occur during the API call.print(e)if__name__=="__main__":update_automatic_improvements_settings()
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-09 UTC."],[],[]]