diff --git a/docs/dyn/content_v2_1.merchantsupport.html b/docs/dyn/content_v2_1.merchantsupport.html
index d176ce0a81..c135151832 100644
--- a/docs/dyn/content_v2_1.merchantsupport.html
+++ b/docs/dyn/content_v2_1.merchantsupport.html
@@ -83,6 +83,9 @@
Instance Methods
renderproductissues(merchantId, productId, body=None, languageCode=None, timeZone=None, x__xgafv=None)
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.
+
+ triggeraction(merchantId, body=None, languageCode=None, x__xgafv=None)
+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.
Method Details
close()
@@ -100,6 +103,7 @@
Method Details
{ # The payload for configuring how the content should be rendered.
"contentOption": "A String", # Optional. How the detailed content should be returned. Default option is to return the content as a pre-rendered HTML text.
+ "userInputActionOption": "A String", # Optional. How actions with user input form should be handled. If not provided, actions will be returned as links that points merchant to Merchant Center where they can request the action.
}
languageCode: string, Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code used to localize support content. If not set, the result will be in default language `en-US`.
@@ -131,6 +135,66 @@ Method Details
"attributeCode": "A String", # The attribute that needs to be updated. Present when the type is `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes [here](https://support.google.com/merchants/answer/7052112).
"type": "A String", # The type of action that represents a functionality that is expected to be available in third-party application.
},
+ "builtinUserInputAction": { # Action that is implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the merchant. They can start the action only when they provided all required inputs. The application will request processing of the action by calling the [triggeraction method](https://developers.google.com/shopping-content/reference/rest/v2.1/merchantsupport/triggeraction). # Action implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the merchant as specified for given action. They can trigger the action only when they provided all required inputs.
+ "actionContext": "A String", # Internal details. Not for display but need to be sent back when triggering the action.
+ "flows": [ # Actions may provide multiple different flows. Merchant selects one that fits best to their intent. Selecting the flow is the first step in user's interaction with the action. It affects what input fields will be available and required and also how the request will be processed.
+ { # Flow that can be selected for an action. When merchant selects a flow, application should open a dialog with more information and input form.
+ "dialogButtonLabel": "A String", # Label for the button to trigger the action from the action dialog. For example: "Request review"
+ "dialogCallout": { # An important message that should be highlighted. Usually displayed as a banner. # Important message to be highlighted in the request dialog. For example: "You can only request a review for disagreeing with this issue once. If it's not approved, you'll need to fix the issue and wait a few days before you can request another review."
+ "fullMessage": { # Block of text that may contain a tooltip with more information. # A full message that needs to be shown to the merchant.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "styleHint": "A String", # Can be used to render messages with different severity in different styles. Snippets off all types contain important information that should be displayed to merchants.
+ },
+ "dialogMessage": { # Block of text that may contain a tooltip with more information. # Message displayed in the request dialog. For example: "Make sure you've fixed all your country-specific issues. If not, you may have to wait 7 days to request another review". There may be an more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "dialogTitle": "A String", # Title of the request dialog. For example: "Before you request a review"
+ "id": "A String", # Not for display but need to be sent back for the selected action flow.
+ "inputs": [ # A list of input fields.
+ { # Input field that needs to be available to the merchant. If the field is marked as required, then a value needs to be provided for a successful processing of the request.
+ "checkboxInput": { # Checkbox input allows merchants to provide a boolean value. Corresponds to the [html input type=checkbox](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox). If merchant checks the box, the input value for the field is `true`, otherwise it is `false`. This type of input is often used as a confirmation that the merchant completed required steps before they are allowed to start the action. In such a case, the input field is marked as required and the button to trigger the action should stay disabled until the merchant checks the box. # Input field to provide a boolean value. Corresponds to the [html input type=checkbox](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox).
+ },
+ "choiceInput": { # Choice input allows merchants to select one of the offered choices. Some choices may be linked to additional input fields that should be displayed under or next to the choice option. The value for the additional input field needs to be provided only when the specific choice is selected by the merchant. For example, additional input field can be hidden or disabled until the merchant selects the specific choice. # Input field to select one of the offered choices. Corresponds to the [html input type=radio](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.radio.html#input.radio).
+ "options": [ # A list of choices. Only one option can be selected.
+ { # A choice that merchant can select.
+ "additionalInput": # Object with schema name: InputField # Input that should be displayed when this option is selected. The additional input will not contain a `ChoiceInput`.
+ "id": "A String", # Not for display but need to be sent back for the selected choice option.
+ "label": { # Block of text that may contain a tooltip with more information. # Short description of the choice option. There may be more information to be shown as a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ },
+ ],
+ },
+ "id": "A String", # Not for display but need to be sent back for the given input field.
+ "label": { # Block of text that may contain a tooltip with more information. # Input field label. There may be more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "required": True or False, # Whether the field is required. The action button needs to stay disabled till values for all required fields are provided.
+ "textInput": { # Text input allows merchants to provide a text value. # Input field to provide text information. Corresponds to the [html input type=text](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#input.text) or [html textarea](https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#textarea).
+ "additionalInfo": { # Block of text that may contain a tooltip with more information. # Additional info regarding the field to be displayed to merchant. For example, warning to not include personal identifiable information. There may be more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "ariaLabel": "A String", # Text to be used as the [aria label](https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html) for the input.
+ "formatInfo": "A String", # Information about the required format. If present, it should be shown close to the input field to help merchants to provide a correct value. For example: "VAT numbers should be in a format similar to SK9999999999"
+ "type": "A String", # Type of the text input
+ },
+ },
+ ],
+ "label": "A String", # Text value describing the intent for the action flow. It can be used as an input label if merchant needs to pick one of multiple flows. For example: "I disagree with the issue"
+ },
+ ],
+ },
"buttonLabel": "A String", # Label of the action button.
"externalAction": { # Action that is implemented and performed outside of the third-party application. It should redirect the merchant to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center. # Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the merchant to the external location where they can perform the action.
"type": "A String", # The type of external action.
@@ -182,6 +246,7 @@ Method Details
{ # The payload for configuring how the content should be rendered.
"contentOption": "A String", # Optional. How the detailed content should be returned. Default option is to return the content as a pre-rendered HTML text.
+ "userInputActionOption": "A String", # Optional. How actions with user input form should be handled. If not provided, actions will be returned as links that points merchant to Merchant Center where they can request the action.
}
languageCode: string, Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code used to localize support content. If not set, the result will be in default language `en-US`.
@@ -213,6 +278,66 @@ Method Details
"attributeCode": "A String", # The attribute that needs to be updated. Present when the type is `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes [here](https://support.google.com/merchants/answer/7052112).
"type": "A String", # The type of action that represents a functionality that is expected to be available in third-party application.
},
+ "builtinUserInputAction": { # Action that is implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the merchant. They can start the action only when they provided all required inputs. The application will request processing of the action by calling the [triggeraction method](https://developers.google.com/shopping-content/reference/rest/v2.1/merchantsupport/triggeraction). # Action implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the merchant as specified for given action. They can trigger the action only when they provided all required inputs.
+ "actionContext": "A String", # Internal details. Not for display but need to be sent back when triggering the action.
+ "flows": [ # Actions may provide multiple different flows. Merchant selects one that fits best to their intent. Selecting the flow is the first step in user's interaction with the action. It affects what input fields will be available and required and also how the request will be processed.
+ { # Flow that can be selected for an action. When merchant selects a flow, application should open a dialog with more information and input form.
+ "dialogButtonLabel": "A String", # Label for the button to trigger the action from the action dialog. For example: "Request review"
+ "dialogCallout": { # An important message that should be highlighted. Usually displayed as a banner. # Important message to be highlighted in the request dialog. For example: "You can only request a review for disagreeing with this issue once. If it's not approved, you'll need to fix the issue and wait a few days before you can request another review."
+ "fullMessage": { # Block of text that may contain a tooltip with more information. # A full message that needs to be shown to the merchant.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "styleHint": "A String", # Can be used to render messages with different severity in different styles. Snippets off all types contain important information that should be displayed to merchants.
+ },
+ "dialogMessage": { # Block of text that may contain a tooltip with more information. # Message displayed in the request dialog. For example: "Make sure you've fixed all your country-specific issues. If not, you may have to wait 7 days to request another review". There may be an more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "dialogTitle": "A String", # Title of the request dialog. For example: "Before you request a review"
+ "id": "A String", # Not for display but need to be sent back for the selected action flow.
+ "inputs": [ # A list of input fields.
+ { # Input field that needs to be available to the merchant. If the field is marked as required, then a value needs to be provided for a successful processing of the request.
+ "checkboxInput": { # Checkbox input allows merchants to provide a boolean value. Corresponds to the [html input type=checkbox](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox). If merchant checks the box, the input value for the field is `true`, otherwise it is `false`. This type of input is often used as a confirmation that the merchant completed required steps before they are allowed to start the action. In such a case, the input field is marked as required and the button to trigger the action should stay disabled until the merchant checks the box. # Input field to provide a boolean value. Corresponds to the [html input type=checkbox](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox).
+ },
+ "choiceInput": { # Choice input allows merchants to select one of the offered choices. Some choices may be linked to additional input fields that should be displayed under or next to the choice option. The value for the additional input field needs to be provided only when the specific choice is selected by the merchant. For example, additional input field can be hidden or disabled until the merchant selects the specific choice. # Input field to select one of the offered choices. Corresponds to the [html input type=radio](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.radio.html#input.radio).
+ "options": [ # A list of choices. Only one option can be selected.
+ { # A choice that merchant can select.
+ "additionalInput": # Object with schema name: InputField # Input that should be displayed when this option is selected. The additional input will not contain a `ChoiceInput`.
+ "id": "A String", # Not for display but need to be sent back for the selected choice option.
+ "label": { # Block of text that may contain a tooltip with more information. # Short description of the choice option. There may be more information to be shown as a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ },
+ ],
+ },
+ "id": "A String", # Not for display but need to be sent back for the given input field.
+ "label": { # Block of text that may contain a tooltip with more information. # Input field label. There may be more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "required": True or False, # Whether the field is required. The action button needs to stay disabled till values for all required fields are provided.
+ "textInput": { # Text input allows merchants to provide a text value. # Input field to provide text information. Corresponds to the [html input type=text](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#input.text) or [html textarea](https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#textarea).
+ "additionalInfo": { # Block of text that may contain a tooltip with more information. # Additional info regarding the field to be displayed to merchant. For example, warning to not include personal identifiable information. There may be more information to be shown in a tooltip.
+ "simpleTooltipValue": "A String", # Value of the tooltip as a simple text.
+ "simpleValue": "A String", # Value of the message as a simple text.
+ "tooltipIconStyle": "A String", # The suggested type of an icon for tooltip, if a tooltip is present.
+ },
+ "ariaLabel": "A String", # Text to be used as the [aria label](https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html) for the input.
+ "formatInfo": "A String", # Information about the required format. If present, it should be shown close to the input field to help merchants to provide a correct value. For example: "VAT numbers should be in a format similar to SK9999999999"
+ "type": "A String", # Type of the text input
+ },
+ },
+ ],
+ "label": "A String", # Text value describing the intent for the action flow. It can be used as an input label if merchant needs to pick one of multiple flows. For example: "I disagree with the issue"
+ },
+ ],
+ },
"buttonLabel": "A String", # Label of the action button.
"externalAction": { # Action that is implemented and performed outside of the third-party application. It should redirect the merchant to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center. # Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the merchant to the external location where they can perform the action.
"type": "A String", # The type of external action.
@@ -252,4 +377,48 @@ Method Details
}
+
+
triggeraction(merchantId, body=None, languageCode=None, x__xgafv=None)
+
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.
+
+Args:
+ merchantId: string, Required. The ID of the merchant's account. (required)
+ body: object, The request body.
+ The object takes the form of:
+
+{ # The payload for the triggered action.
+ "actionContext": "A String", # Required. The context from the selected action. The value is obtained from rendered issues and needs to be sent back to identify the action that is being triggered.
+ "actionInput": { # Input provided by the merchant. # Required. Input provided by the merchant.
+ "actionFlowId": "A String", # Required. Id of the selected action flow.
+ "inputValues": [ # Required. Values for input fields.
+ { # Input provided by the merchant for input field.
+ "checkboxInputValue": { # Value for checkbox input field. # Value for checkbox input field.
+ "value": True or False, # Required. True if the merchant checked the box field. False otherwise.
+ },
+ "choiceInputValue": { # Value for choice input field. # Value for choice input field.
+ "choiceInputOptionId": "A String", # Required. Id of the option that was selected by the merchant.
+ },
+ "inputFieldId": "A String", # Required. Id of the corresponding input field.
+ "textInputValue": { # Value for text input field. # Value for text input field.
+ "value": "A String", # Required. Text provided by the merchant.
+ },
+ },
+ ],
+ },
+}
+
+ languageCode: string, Optional. Language code [IETF BCP 47 syntax](https://tools.ietf.org/html/bcp47) used to localize the response. If not set, the result will be in default language `en-US`.
+ x__xgafv: string, V1 error format.
+ Allowed values
+ 1 - v1 error format
+ 2 - v2 error format
+
+Returns:
+ An object of the form:
+
+ { # Response informing about the started action.
+ "message": "A String", # The message for merchant.
+}
+
+