Service for Universal Commerce Protocol (UCP) settings management.

Allows businesses and service providers to programmatically provision and manage the UCP profile URL for themselves or their clients' Merchant Center accounts. For step-by-step instructions, see the [UCP checkout setup guide](https://developers.google.com/merchant/3p/guides/ucp/checkout/setup).

This service uses two resources:

- `https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/UcpSettings`: Represents the persistent UCP enablement state, configuration, and validated profile for a Merchant Center account's `ucp-integration` program.
- `https://developers.google.com/merchant/api/reference/rpc/google.longrunning/Types/Operation`: Represents the asynchronous long-running validation operation returned by `https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/UcpSettingsService/UpdateUcpSettings`.

| [GetUcpSettings](https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/UcpSettingsService/GetUcpSettings) |
|---|
| `` rpc GetUcpSettings(`https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/GetUcpSettingsRequest`) returns (`https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/UcpSettings`) `` Retrieves the currently stored, validated `UcpSettings` for a Merchant Center account. To check the status of an asynchronous validation operation initiated by `https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/UcpSettingsService/UpdateUcpSettings`, use `https://developers.google.com/merchant/api/reference/rpc/google.longrunning/Operations/GetOperation` instead. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/content` For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2). |

| [UpdateUcpSettings](https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/UcpSettingsService/UpdateUcpSettings) |
|---|
| `` rpc UpdateUcpSettings(`https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/UpdateUcpSettingsRequest`) returns (`https://developers.google.com/merchant/api/reference/rpc/google.longrunning/Types/Operation`) `` Patches the UCP settings for a Merchant Center account. This is a non-blocking method that queues asynchronous validation of the UCP profile at the `well_known_uri` and immediately returns a long-running `https://developers.google.com/merchant/api/reference/rpc/google.longrunning/Types/Operation` with `done` set to `false` and `metadata` set to `https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/UcpSettingsOperationMetadata`. You can poll the operation status using `https://developers.google.com/merchant/api/reference/rpc/google.longrunning/Operations/GetOperation` with the returned operation `name` (formatted as `accounts/{account}/programs/ucp-integration/ucpSettings/operations/{operation}`). When validation finishes (`done` is `true`): - If validation succeeds, the settings are stored and the operation's `response` field contains the updated `https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1alpha/Types/UcpSettings` resource, including the parsed `ucp_profile`. - If validation fails, the settings are not updated and the operation's `error` field contains a `https://developers.google.com/merchant/api/reference/rpc/google.rpc/Types/Status` message describing the validation failure. For more information, see the [UCP checkout setup guide](https://developers.google.com/merchant/3p/guides/ucp/checkout/setup). Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/content` For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2). |