class Merchantsupport extends Resource (View source)

The "merchantsupport" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $merchantsupport = $contentService->merchantsupport;

Methods

renderaccountissues(string $merchantId, RenderAccountIssuesRequestPayload $postBody, array $optParams = [])

Provide a list of merchant's issues with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. (merchantsupport.renderaccountissues)

renderproductissues(string $merchantId, string $productId, RenderProductIssuesRequestPayload $postBody, array $optParams = [])

Provide a list of issues for merchant's product with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. (merchantsupport.renderproductissues)

triggeraction(string $merchantId, TriggerActionPayload $postBody, array $optParams = [])

Start an action. The action can be requested by merchants in third-party application. Before merchants 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 for all problematic field together with translated, human readable error messages that can be shown to the user. (merchantsupport.triggeraction)

Details

RenderAccountIssuesResponse renderaccountissues(string $merchantId, RenderAccountIssuesRequestPayload $postBody, array $optParams = [])

Provide a list of merchant's issues with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. (merchantsupport.renderaccountissues)

Parameters

string $merchantId

Required. The ID of the account to fetch issues for.

RenderAccountIssuesRequestPayload $postBody
array $optParams

Optional parameters.

Return Value

RenderAccountIssuesResponse

Exceptions

Exception

RenderProductIssuesResponse renderproductissues(string $merchantId, string $productId, RenderProductIssuesRequestPayload $postBody, array $optParams = [])

Provide a list of issues for merchant's product with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. (merchantsupport.renderproductissues)

Parameters

string $merchantId

Required. The ID of the account that contains the product.

string $productId

Required. The REST_ID of the product to fetch issues for.

RenderProductIssuesRequestPayload $postBody
array $optParams

Optional parameters.

Return Value

RenderProductIssuesResponse

Exceptions

Exception

TriggerActionResponse triggeraction(string $merchantId, TriggerActionPayload $postBody, array $optParams = [])

Start an action. The action can be requested by merchants in third-party application. Before merchants 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 for all problematic field together with translated, human readable error messages that can be shown to the user. (merchantsupport.triggeraction)

Parameters

string $merchantId

Required. The ID of the merchant's account.

TriggerActionPayload $postBody
array $optParams

Optional parameters.

Return Value

TriggerActionResponse

Exceptions

Exception