Content API for Shopping . merchantsupport

Instance Methods

close()

Close httplib2 connections.

renderaccountissues(merchantId, body=None, languageCode=None, timeZone=None, x__xgafv=None)

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.

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()
Close httplib2 connections.
renderaccountissues(merchantId, body=None, languageCode=None, timeZone=None, x__xgafv=None)
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.

Args:
  merchantId: string, Required. The ID of the account to fetch issues for. (required)
  body: object, The request body.
    The object takes the form of:

{ # 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`.
  timeZone: string, Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in support content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response containing support content and actions for listed account issues.
  "alternateDisputeResolution": { # The Alternate Dispute Resolution (ADR) that may be available to merchants in some regions. If present, the link should be shown on the same page as the list of issues. # The Alternate Dispute Resolution (ADR) contains a link to a page where merchant can bring their appeal to an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501). If the ADR is present, it MUST be available to the merchant on the page that shows the list with their account issues.
    "label": "A String", # The label for the alternate dispute resolution link.
    "uri": "A String", # The URL pointing to a page, where merchant can request alternative dispute resolution with an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
  },
  "issues": [ # List of account issues for a given account. This list can be shown with compressed, expandable items. In the compressed form, the title and impact should be shown for each issue. Once the issue is expanded, the detailed content and available actions should be rendered.
    { # An issue affecting specific merchant.
      "actions": [ # A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when merchant disagrees with the issue. Actions that are supported in (your) third-party application can be rendered as buttons and should be available to merchant when they expand the issue.
        { # An actionable step that can be executed to solve the issue.
          "builtinSimpleAction": { # Action that is implemented and performed in (your) third-party application. Represents various functionality that is expected to be available to merchant and will help them with resolving the issue. The application should point the merchant to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to merchant and provide them with instructions how to solve the issue. # Action implemented and performed in (your) third-party application. The application should point the merchant to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available.
            "additionalContent": { # Long text from external source. # Long text from an external source that should be available to the merchant. Present when the type is `SHOW_ADDITIONAL_CONTENT`.
              "paragraphs": [ # Long text organized into paragraphs.
                "A String",
              ],
              "title": "A String", # Title of the additional content;
            },
            "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.
            "uri": "A String", # URL to external system, for example Merchant Center, where the merchant can perform the action.
          },
          "isAvailable": True or False, # Controlling whether the button is active or disabled. The value is 'false' when the action was already requested or is not available. If the action is not available then a reason will be present. If (your) third-party application shows a disabled button for action that is not available, then it should also show reasons.
          "reasons": [ # List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.
            { # A single reason why the action is not available.
              "action": # Object with schema name: Action # Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message. For example, the review may be available only once merchant configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action.
              "detail": "A String", # Detailed explanation of the reason. Should be displayed as a hint if present.
              "message": "A String", # Messages summarizing the reason, why the action is not available. For example: "Review requested on Jan 03. Review requests can take a few days to complete."
            },
          ],
        },
      ],
      "impact": { # Overall impact of the issue. # Clarifies the severity of the issue. The summarizing message, if present, should be shown right under the title for each issue. It helps merchants to quickly understand the impact of the issue. The detailed breakdown helps the merchant to fully understand the impact of the issue. It can be rendered as dialog that opens when the merchant mouse over the summarized impact statement. Issues with different severity can be styled differently. They may use a different color or icon to signal the difference between `ERROR`, `WARNING` and `INFO`.
        "breakdowns": [ # Detailed impact breakdown. Explains the types of restriction the issue has in different shopping destinations and territory. If present, it should be rendered to the merchant. Can be shown as a mouse over dropdown or a dialog. Each breakdown item represents a group of regions with the same impact details.
          { # A detailed impact breakdown for a group of regions where the impact of the issue on different shopping destinations is the same.
            "details": [ # Human readable, localized description of issue's effect on different targets. Should be rendered as a list. For example: * "Products not showing in ads" * "Products not showing organically"
              "A String",
            ],
            "regions": [ # Lists of regions. Should be rendered as a title for this group of details. The full list should be shown to merchant. If the list is too long, it is recommended to make it expandable.
              { # Region with code and localized name.
                "code": "A String", # The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
                "name": "A String", # The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.
              },
            ],
          },
        ],
        "message": "A String", # Optional. Message summarizing the overall impact of the issue. If present, it should be rendered to the merchant. For example: "Disapproves 90k offers in 25 countries"
        "severity": "A String", # The severity of the issue.
      },
      "prerenderedContent": "A String", # Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
      "title": "A String", # Title of the issue.
    },
  ],
}
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.

Args:
  merchantId: string, Required. The ID of the account that contains the product. (required)
  productId: string, Required. The [REST_ID](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.id) of the product to fetch issues for. (required)
  body: object, The request body.
    The object takes the form of:

{ # 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`.
  timeZone: string, Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in support content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response containing support content and actions for listed product issues.
  "alternateDisputeResolution": { # The Alternate Dispute Resolution (ADR) that may be available to merchants in some regions. If present, the link should be shown on the same page as the list of issues. # The Alternate Dispute Resolution (ADR) contains a link to a page where merchant can bring their appeal to an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501). If present, the link should be shown on the same page as the list of issues.
    "label": "A String", # The label for the alternate dispute resolution link.
    "uri": "A String", # The URL pointing to a page, where merchant can request alternative dispute resolution with an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
  },
  "issues": [ # List of issues for a given product. This list can be shown with compressed, expandable items. In the compressed form, the title and impact should be shown for each issue. Once the issue is expanded, the detailed content and available actions should be rendered.
    { # An issue affecting specific product.
      "actions": [ # A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when merchant disagrees with the issue. Actions that are supported in (your) third-party application can be rendered as buttons and should be available to merchant when they expand the issue.
        { # An actionable step that can be executed to solve the issue.
          "builtinSimpleAction": { # Action that is implemented and performed in (your) third-party application. Represents various functionality that is expected to be available to merchant and will help them with resolving the issue. The application should point the merchant to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to merchant and provide them with instructions how to solve the issue. # Action implemented and performed in (your) third-party application. The application should point the merchant to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available.
            "additionalContent": { # Long text from external source. # Long text from an external source that should be available to the merchant. Present when the type is `SHOW_ADDITIONAL_CONTENT`.
              "paragraphs": [ # Long text organized into paragraphs.
                "A String",
              ],
              "title": "A String", # Title of the additional content;
            },
            "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.
            "uri": "A String", # URL to external system, for example Merchant Center, where the merchant can perform the action.
          },
          "isAvailable": True or False, # Controlling whether the button is active or disabled. The value is 'false' when the action was already requested or is not available. If the action is not available then a reason will be present. If (your) third-party application shows a disabled button for action that is not available, then it should also show reasons.
          "reasons": [ # List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.
            { # A single reason why the action is not available.
              "action": # Object with schema name: Action # Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message. For example, the review may be available only once merchant configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action.
              "detail": "A String", # Detailed explanation of the reason. Should be displayed as a hint if present.
              "message": "A String", # Messages summarizing the reason, why the action is not available. For example: "Review requested on Jan 03. Review requests can take a few days to complete."
            },
          ],
        },
      ],
      "impact": { # Overall impact of product issue. # Clarifies the severity of the issue. The summarizing message, if present, should be shown right under the title for each issue. It helps merchants to quickly understand the impact of the issue. The detailed breakdown helps the merchant to fully understand the impact of the issue. It can be rendered as dialog that opens when the merchant mouse over the summarized impact statement. Issues with different severity can be styled differently. They may use a different color or icon to signal the difference between `ERROR`, `WARNING` and `INFO`.
        "breakdowns": [ # Detailed impact breakdown. Explains the types of restriction the issue has in different shopping destinations and territory. If present, it should be rendered to the merchant. Can be shown as a mouse over dropdown or a dialog. Each breakdown item represents a group of regions with the same impact details.
          { # A detailed impact breakdown for a group of regions where the impact of the issue on different shopping destinations is the same.
            "details": [ # Human readable, localized description of issue's effect on different targets. Should be rendered as a list. For example: * "Products not showing in ads" * "Products not showing organically"
              "A String",
            ],
            "regions": [ # Lists of regions. Should be rendered as a title for this group of details. The full list should be shown to merchant. If the list is too long, it is recommended to make it expandable.
              { # Region with code and localized name.
                "code": "A String", # The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
                "name": "A String", # The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages.
              },
            ],
          },
        ],
        "message": "A String", # Optional. Message summarizing the overall impact of the issue. If present, it should be rendered to the merchant. For example: "Limits visibility in France"
        "severity": "A String", # The severity of the issue.
      },
      "prerenderedContent": "A String", # Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
      "title": "A String", # Title of the issue.
    },
  ],
}
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.
}