Show / Hide Table of Contents

Class AutomaticImprovementsServiceClient

AutomaticImprovementsService client wrapper, for convenient use.

Inheritance
object
AutomaticImprovementsServiceClient
AutomaticImprovementsServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public abstract class AutomaticImprovementsServiceClient
Remarks

Service to manage the automatic improvements of an account. The automatic improvements of the account can be used to automatically update products, improve images and shipping.

Properties

DefaultEndpoint

The default endpoint for the AutomaticImprovementsService service, which is a host of "merchantapi.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default AutomaticImprovementsService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default AutomaticImprovementsService scopes are:

  • https://www.googleapis.com/auth/content

GrpcClient

The underlying gRPC AutomaticImprovementsService client

Declaration
public virtual AutomaticImprovementsService.AutomaticImprovementsServiceClient GrpcClient { get; }
Property Value
Type Description
AutomaticImprovementsService.AutomaticImprovementsServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

Create()

Synchronously creates a AutomaticImprovementsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AutomaticImprovementsServiceClientBuilder.

Declaration
public static AutomaticImprovementsServiceClient Create()
Returns
Type Description
AutomaticImprovementsServiceClient

The created AutomaticImprovementsServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a AutomaticImprovementsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AutomaticImprovementsServiceClientBuilder.

Declaration
public static Task<AutomaticImprovementsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<AutomaticImprovementsServiceClient>

The task representing the created AutomaticImprovementsServiceClient.

GetAutomaticImprovements(AutomaticImprovementsName, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual AutomaticImprovements GetAutomaticImprovements(AutomaticImprovementsName name, CallSettings callSettings = null)
Parameters
Type Name Description
AutomaticImprovementsName name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutomaticImprovements

The RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
// Initialize request argument(s)
AutomaticImprovementsName name = AutomaticImprovementsName.FromAccount("[ACCOUNT]");
// Make the request
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(name);

GetAutomaticImprovements(GetAutomaticImprovementsRequest, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual AutomaticImprovements GetAutomaticImprovements(GetAutomaticImprovementsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutomaticImprovements

The RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
// Initialize request argument(s)
GetAutomaticImprovementsRequest request = new GetAutomaticImprovementsRequest
{
    AutomaticImprovementsName = AutomaticImprovementsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(request);

GetAutomaticImprovements(string, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual AutomaticImprovements GetAutomaticImprovements(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutomaticImprovements

The RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/automaticImprovements";
// Make the request
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(name);

GetAutomaticImprovementsAsync(AutomaticImprovementsName, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(AutomaticImprovementsName name, CallSettings callSettings = null)
Parameters
Type Name Description
AutomaticImprovementsName name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
AutomaticImprovementsName name = AutomaticImprovementsName.FromAccount("[ACCOUNT]");
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);

GetAutomaticImprovementsAsync(AutomaticImprovementsName, CancellationToken)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(AutomaticImprovementsName name, CancellationToken cancellationToken)
Parameters
Type Name Description
AutomaticImprovementsName name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
AutomaticImprovementsName name = AutomaticImprovementsName.FromAccount("[ACCOUNT]");
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);

GetAutomaticImprovementsAsync(GetAutomaticImprovementsRequest, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(GetAutomaticImprovementsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAutomaticImprovementsRequest request = new GetAutomaticImprovementsRequest
{
    AutomaticImprovementsName = AutomaticImprovementsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(request);

GetAutomaticImprovementsAsync(GetAutomaticImprovementsRequest, CancellationToken)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(GetAutomaticImprovementsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAutomaticImprovementsRequest request = new GetAutomaticImprovementsRequest
{
    AutomaticImprovementsName = AutomaticImprovementsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(request);

GetAutomaticImprovementsAsync(string, CallSettings)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/automaticImprovements";
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);

GetAutomaticImprovementsAsync(string, CancellationToken)

Retrieves the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> GetAutomaticImprovementsAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the automatic improvements. Format: accounts/{account}/automaticImprovements

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/automaticImprovements";
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateAutomaticImprovements(AutomaticImprovements, FieldMask, CallSettings)

Updates the automatic improvements of an account.

Declaration
public virtual AutomaticImprovements UpdateAutomaticImprovements(AutomaticImprovements automaticImprovements, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
AutomaticImprovements automaticImprovements

Required. The new version of the automatic imrovements.

FieldMask updateMask

Required. List of fields being updated. The following fields are supported (in both snake_case and lowerCamelCase):

  • item_updates
  • item_updates.account_level_settings
  • image_improvements
  • image_improvements.account_level_settings
  • shipping_improvements
  • shipping_improvements.allow_shipping_improvements
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutomaticImprovements

The RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
// Initialize request argument(s)
AutomaticImprovements automaticImprovements = new AutomaticImprovements();
FieldMask updateMask = new FieldMask();
// Make the request
AutomaticImprovements response = automaticImprovementsServiceClient.UpdateAutomaticImprovements(automaticImprovements, updateMask);

UpdateAutomaticImprovements(UpdateAutomaticImprovementsRequest, CallSettings)

Updates the automatic improvements of an account.

Declaration
public virtual AutomaticImprovements UpdateAutomaticImprovements(UpdateAutomaticImprovementsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AutomaticImprovements

The RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
// Initialize request argument(s)
UpdateAutomaticImprovementsRequest request = new UpdateAutomaticImprovementsRequest
{
    AutomaticImprovements = new AutomaticImprovements(),
    UpdateMask = new FieldMask(),
};
// Make the request
AutomaticImprovements response = automaticImprovementsServiceClient.UpdateAutomaticImprovements(request);

UpdateAutomaticImprovementsAsync(AutomaticImprovements, FieldMask, CallSettings)

Updates the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> UpdateAutomaticImprovementsAsync(AutomaticImprovements automaticImprovements, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
AutomaticImprovements automaticImprovements

Required. The new version of the automatic imrovements.

FieldMask updateMask

Required. List of fields being updated. The following fields are supported (in both snake_case and lowerCamelCase):

  • item_updates
  • item_updates.account_level_settings
  • image_improvements
  • image_improvements.account_level_settings
  • shipping_improvements
  • shipping_improvements.allow_shipping_improvements
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
AutomaticImprovements automaticImprovements = new AutomaticImprovements();
FieldMask updateMask = new FieldMask();
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(automaticImprovements, updateMask);

UpdateAutomaticImprovementsAsync(AutomaticImprovements, FieldMask, CancellationToken)

Updates the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> UpdateAutomaticImprovementsAsync(AutomaticImprovements automaticImprovements, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
AutomaticImprovements automaticImprovements

Required. The new version of the automatic imrovements.

FieldMask updateMask

Required. List of fields being updated. The following fields are supported (in both snake_case and lowerCamelCase):

  • item_updates
  • item_updates.account_level_settings
  • image_improvements
  • image_improvements.account_level_settings
  • shipping_improvements
  • shipping_improvements.allow_shipping_improvements
CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
AutomaticImprovements automaticImprovements = new AutomaticImprovements();
FieldMask updateMask = new FieldMask();
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(automaticImprovements, updateMask);

UpdateAutomaticImprovementsAsync(UpdateAutomaticImprovementsRequest, CallSettings)

Updates the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> UpdateAutomaticImprovementsAsync(UpdateAutomaticImprovementsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAutomaticImprovementsRequest request = new UpdateAutomaticImprovementsRequest
{
    AutomaticImprovements = new AutomaticImprovements(),
    UpdateMask = new FieldMask(),
};
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(request);

UpdateAutomaticImprovementsAsync(UpdateAutomaticImprovementsRequest, CancellationToken)

Updates the automatic improvements of an account.

Declaration
public virtual Task<AutomaticImprovements> UpdateAutomaticImprovementsAsync(UpdateAutomaticImprovementsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateAutomaticImprovementsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AutomaticImprovements>

A Task containing the RPC response.

Sample code
// Create client
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAutomaticImprovementsRequest request = new UpdateAutomaticImprovementsRequest
{
    AutomaticImprovements = new AutomaticImprovements(),
    UpdateMask = new FieldMask(),
};
// Make the request
AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(request);
In this article
Back to top Generated by DocFX