Class IssueResolutionServiceClient
IssueResolutionService client wrapper, for convenient use.
Namespace: Google.Shopping.Merchant.IssueResolution.V1
Assembly: Google.Shopping.Merchant.IssueResolution.V1.dll
Syntax
public abstract class IssueResolutionServiceClient
Remarks
Service to provide an issue resolution content for account issues and product issues.
Properties
DefaultEndpoint
The default endpoint for the IssueResolutionService 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 IssueResolutionService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Remarks
The default IssueResolutionService scopes are:
- https://www.googleapis.com/auth/content
GrpcClient
The underlying gRPC IssueResolutionService client
Declaration
public virtual IssueResolutionService.IssueResolutionServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
IssueResolutionService.IssueResolutionServiceClient |
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 IssueResolutionServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IssueResolutionServiceClientBuilder.
Declaration
public static IssueResolutionServiceClient Create()
Returns
Type | Description |
---|---|
IssueResolutionServiceClient | The created IssueResolutionServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a IssueResolutionServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IssueResolutionServiceClientBuilder.
Declaration
public static Task<IssueResolutionServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
Type | Description |
---|---|
Task<IssueResolutionServiceClient> | The task representing the created IssueResolutionServiceClient. |
RenderAccountIssues(AccountName, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderAccountIssuesResponse RenderAccountIssues(AccountName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The account to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
RenderAccountIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
RenderAccountIssuesResponse response = issueResolutionServiceClient.RenderAccountIssues(name);
RenderAccountIssues(RenderAccountIssuesRequest, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderAccountIssuesResponse RenderAccountIssues(RenderAccountIssuesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RenderAccountIssuesRequest | 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 |
---|---|
RenderAccountIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
RenderAccountIssuesRequest request = new RenderAccountIssuesRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderAccountIssuesResponse response = issueResolutionServiceClient.RenderAccountIssues(request);
RenderAccountIssues(string, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderAccountIssuesResponse RenderAccountIssues(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The account to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
RenderAccountIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
RenderAccountIssuesResponse response = issueResolutionServiceClient.RenderAccountIssues(name);
RenderAccountIssuesAsync(AccountName, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(AccountName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The account to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(name);
RenderAccountIssuesAsync(AccountName, CancellationToken)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(AccountName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The account to fetch issues for.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(name);
RenderAccountIssuesAsync(RenderAccountIssuesRequest, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(RenderAccountIssuesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RenderAccountIssuesRequest | 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<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
RenderAccountIssuesRequest request = new RenderAccountIssuesRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(request);
RenderAccountIssuesAsync(RenderAccountIssuesRequest, CancellationToken)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(RenderAccountIssuesRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
RenderAccountIssuesRequest | 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<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
RenderAccountIssuesRequest request = new RenderAccountIssuesRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(request);
RenderAccountIssuesAsync(string, CallSettings)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The account to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(name);
RenderAccountIssuesAsync(string, CancellationToken)
Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderAccountIssuesResponse> RenderAccountIssuesAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The account to fetch issues for.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<RenderAccountIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
RenderAccountIssuesResponse response = await issueResolutionServiceClient.RenderAccountIssuesAsync(name);
RenderProductIssues(ProductName, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderProductIssuesResponse RenderProductIssues(ProductName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ProductName | name | Required. The name of the product to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
RenderProductIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
ProductName name = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]");
// Make the request
RenderProductIssuesResponse response = issueResolutionServiceClient.RenderProductIssues(name);
RenderProductIssues(RenderProductIssuesRequest, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderProductIssuesResponse RenderProductIssues(RenderProductIssuesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RenderProductIssuesRequest | 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 |
---|---|
RenderProductIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
RenderProductIssuesRequest request = new RenderProductIssuesRequest
{
ProductName = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderProductIssuesResponse response = issueResolutionServiceClient.RenderProductIssues(request);
RenderProductIssues(string, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual RenderProductIssuesResponse RenderProductIssues(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the product to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
RenderProductIssuesResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/products/[PRODUCT]";
// Make the request
RenderProductIssuesResponse response = issueResolutionServiceClient.RenderProductIssues(name);
RenderProductIssuesAsync(ProductName, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(ProductName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ProductName | name | Required. The name of the product to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
ProductName name = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]");
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(name);
RenderProductIssuesAsync(ProductName, CancellationToken)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(ProductName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ProductName | name | Required. The name of the product to fetch issues for.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
ProductName name = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]");
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(name);
RenderProductIssuesAsync(RenderProductIssuesRequest, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(RenderProductIssuesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
RenderProductIssuesRequest | 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<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
RenderProductIssuesRequest request = new RenderProductIssuesRequest
{
ProductName = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(request);
RenderProductIssuesAsync(RenderProductIssuesRequest, CancellationToken)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(RenderProductIssuesRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
RenderProductIssuesRequest | 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<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
RenderProductIssuesRequest request = new RenderProductIssuesRequest
{
ProductName = ProductName.FromAccountProduct("[ACCOUNT]", "[PRODUCT]"),
LanguageCode = "",
TimeZone = "",
Payload = new RenderIssuesRequestPayload(),
};
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(request);
RenderProductIssuesAsync(string, CallSettings)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the product to fetch issues for.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/products/[PRODUCT]";
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(name);
RenderProductIssuesAsync(string, CancellationToken)
Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.
Declaration
public virtual Task<RenderProductIssuesResponse> RenderProductIssuesAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the product to fetch issues for.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<RenderProductIssuesResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/products/[PRODUCT]";
// Make the request
RenderProductIssuesResponse response = await issueResolutionServiceClient.RenderProductIssuesAsync(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.
TriggerAction(AccountName, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual TriggerActionResponse TriggerAction(AccountName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The business's account that is triggering the action.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
TriggerActionResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
TriggerActionResponse response = issueResolutionServiceClient.TriggerAction(name);
TriggerAction(TriggerActionRequest, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual TriggerActionResponse TriggerAction(TriggerActionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
TriggerActionRequest | 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 |
---|---|
TriggerActionResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
TriggerActionRequest request = new TriggerActionRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
Payload = new TriggerActionPayload(),
LanguageCode = "",
};
// Make the request
TriggerActionResponse response = issueResolutionServiceClient.TriggerAction(request);
TriggerAction(string, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual TriggerActionResponse TriggerAction(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The business's account that is triggering the action.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
TriggerActionResponse | The RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = IssueResolutionServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
TriggerActionResponse response = issueResolutionServiceClient.TriggerAction(name);
TriggerActionAsync(AccountName, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(AccountName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The business's account that is triggering the action.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(name);
TriggerActionAsync(AccountName, CancellationToken)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(AccountName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AccountName | name | Required. The business's account that is triggering the action.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(name);
TriggerActionAsync(TriggerActionRequest, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(TriggerActionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
TriggerActionRequest | 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<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
TriggerActionRequest request = new TriggerActionRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
Payload = new TriggerActionPayload(),
LanguageCode = "",
};
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(request);
TriggerActionAsync(TriggerActionRequest, CancellationToken)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(TriggerActionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TriggerActionRequest | 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<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
TriggerActionRequest request = new TriggerActionRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
Payload = new TriggerActionPayload(),
LanguageCode = "",
};
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(request);
TriggerActionAsync(string, CallSettings)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The business's account that is triggering the action.
Format: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(name);
TriggerActionAsync(string, CancellationToken)
Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form.
The action can be successfully started only once all required
inputs are
provided. If any required
input is missing, or invalid value was
provided, the service will return 400 error. Validation errors will contain
[Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all
problematic field together with translated, human readable error messages
that can be shown to the user.
Declaration
public virtual Task<TriggerActionResponse> TriggerActionAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The business's account that is triggering the action.
Format: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<TriggerActionResponse> | A Task containing the RPC response. |
Sample code
// Create client
IssueResolutionServiceClient issueResolutionServiceClient = await IssueResolutionServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
TriggerActionResponse response = await issueResolutionServiceClient.TriggerActionAsync(name);