Reference documentation and code samples for the Google Shopping Merchant Issue Resolution V1 Client class RenderedIssue.
An issue affecting specific business or their product.
Generated from protobuf message google.shopping.merchant.issueresolution.v1.RenderedIssue
Namespace
Google \ Shopping \ Merchant \ IssueResolution \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ prerendered_content |
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: |
↳ prerendered_out_of_court_dispute_settlement |
string
Pre-rendered HTML that contains a link to the external location where the ODS can be requested and instructions for how to request it. HTML elements contain CSS classes that can be used to customize the style of this snippet. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: |
↳ title |
string
Title of the issue. |
↳ impact |
Impact
Clarifies the severity of the issue. The summarizing message, if present, should be shown right under the title for each issue. It helps business to quickly understand the impact of the issue. The detailed breakdown helps the business to fully understand the impact of the issue. It can be rendered as dialog that opens when the business 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 |
↳ actions |
array<Action>
A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when business disagrees with the issue. Actions that are supported in (your) third-party application can be rendered as buttons and should be available to the business when they expand the issue. |
getPrerenderedContent
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.
CSS classes:
issue-detail
- top level container for the detail of the issuecallout-banners
- section of theissue-detail
with callout bannerscallout-banner
- single callout banner, insidecallout-banners
callout-banner-info
- callout with important information (default)callout-banner-warning
- callout with a warningcallout-banner-error
- callout informing about an error (most severe)issue-content
- section of theissue-detail
, contains multiplecontent-element
content-element
- content element such as a list, link or paragraph, insideissue-content
root-causes
- unordered list with items describing root causes of the issue, insideissue-content
root-causes-intro
- intro text before theroot-causes
list, insideissue-content
segment
- section of the text,span
inside paragraphsegment-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 boldsegment-italic
- section of the text that should be rendered as italictooltip
- used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a classtooltip-text
and is intended to be shown in a mouse over dialog. If the style is not used, thetooltip-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 atooltip
, that is intended to be shown in a mouse over dialog.tooltip-icon
- marks a section of the text within atooltip
, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains abr
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.
Returns | |
---|---|
Type | Description |
string |
hasPrerenderedContent
setPrerenderedContent
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.
CSS classes:
issue-detail
- top level container for the detail of the issuecallout-banners
- section of theissue-detail
with callout bannerscallout-banner
- single callout banner, insidecallout-banners
callout-banner-info
- callout with important information (default)callout-banner-warning
- callout with a warningcallout-banner-error
- callout informing about an error (most severe)issue-content
- section of theissue-detail
, contains multiplecontent-element
content-element
- content element such as a list, link or paragraph, insideissue-content
root-causes
- unordered list with items describing root causes of the issue, insideissue-content
root-causes-intro
- intro text before theroot-causes
list, insideissue-content
segment
- section of the text,span
inside paragraphsegment-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 boldsegment-italic
- section of the text that should be rendered as italictooltip
- used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a classtooltip-text
and is intended to be shown in a mouse over dialog. If the style is not used, thetooltip-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 atooltip
, that is intended to be shown in a mouse over dialog.tooltip-icon
- marks a section of the text within atooltip
, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains abr
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPrerenderedOutOfCourtDisputeSettlement
Pre-rendered HTML that contains a link to the external location where the ODS can be requested and instructions for how to request it. HTML elements contain CSS classes that can be used to customize the style of this snippet.
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.
CSS classes:
ods-section
* - wrapper around the out-of-court dispute resolution sectionods-description
* - intro text for the out-of-court dispute resolution. It may contain multiple segments and a link.ods-param
* - wrapper around the header-value pair for parameters that the business may need to provide during the ODS process.ods-routing-id
* - ods param for the Routing ID.ods-reference-id
* - ods param for the Routing ID.ods-param-header
* - header for the ODS parameterods-param-value
* - value of the ODS parameter. This value should be rendered in a way that it is easy for the user to identify and copy.segment
- section of the text,span
inside paragraphsegment-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 boldsegment-italic
- section of the text that should be rendered as italictooltip
- used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a classtooltip-text
and is intended to be shown in a mouse over dialog. If the style is not used, thetooltip-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 atooltip
, that is intended to be shown in a mouse over dialog.tooltip-icon
- marks a section of the text within atooltip
, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains abr
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.
Returns | |
---|---|
Type | Description |
string |
hasPrerenderedOutOfCourtDisputeSettlement
setPrerenderedOutOfCourtDisputeSettlement
Pre-rendered HTML that contains a link to the external location where the ODS can be requested and instructions for how to request it. HTML elements contain CSS classes that can be used to customize the style of this snippet.
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.
CSS classes:
ods-section
* - wrapper around the out-of-court dispute resolution sectionods-description
* - intro text for the out-of-court dispute resolution. It may contain multiple segments and a link.ods-param
* - wrapper around the header-value pair for parameters that the business may need to provide during the ODS process.ods-routing-id
* - ods param for the Routing ID.ods-reference-id
* - ods param for the Routing ID.ods-param-header
* - header for the ODS parameterods-param-value
* - value of the ODS parameter. This value should be rendered in a way that it is easy for the user to identify and copy.segment
- section of the text,span
inside paragraphsegment-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 boldsegment-italic
- section of the text that should be rendered as italictooltip
- used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a classtooltip-text
and is intended to be shown in a mouse over dialog. If the style is not used, thetooltip-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 atooltip
, that is intended to be shown in a mouse over dialog.tooltip-icon
- marks a section of the text within atooltip
, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains abr
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTitle
Title of the issue.
Returns | |
---|---|
Type | Description |
string |
setTitle
Title of the issue.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getImpact
Clarifies the severity of the issue.
The summarizing
message, if
present, should be shown right under the title for each issue. It helps
business to quickly understand the impact of the issue.
The detailed
breakdown
helps the business to fully understand the impact of the issue. It can be
rendered as dialog that opens when the business 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
.
Returns | |
---|---|
Type | Description |
Impact|null |
hasImpact
clearImpact
setImpact
Clarifies the severity of the issue.
The summarizing
message, if
present, should be shown right under the title for each issue. It helps
business to quickly understand the impact of the issue.
The detailed
breakdown
helps the business to fully understand the impact of the issue. It can be
rendered as dialog that opens when the business 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
.
Parameter | |
---|---|
Name | Description |
var |
Impact
|
Returns | |
---|---|
Type | Description |
$this |
getActions
A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when business disagrees with the issue.
Actions that are supported in (your) third-party application can be rendered as buttons and should be available to the business when they expand the issue.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setActions
A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when business disagrees with the issue.
Actions that are supported in (your) third-party application can be rendered as buttons and should be available to the business when they expand the issue.
Parameter | |
---|---|
Name | Description |
var |
array<Action>
|
Returns | |
---|---|
Type | Description |
$this |
getContent
Returns | |
---|---|
Type | Description |
string |
getOutOfCourtDisputeSettlement
Returns | |
---|---|
Type | Description |
string |