A product, service or policy disclosure that may be presented to the user.
JSON representation | |
---|---|
{ "title": string, "disclosureText": { object ( |
Fields | |
---|---|
title |
title of the disclosure. Example: "Safety information". |
disclosureText |
Content of the disclosure. Weblinks are allowed. |
presentationOptions |
Presentation options for the disclosure. |
DisclosureText
Represents a plain text with web links.
JSON representation | |
---|---|
{
"template": string,
"textLinks": [
{
object ( |
Fields | |
---|---|
template |
Text to display, containing placeholders like "{0}" and "{1}" for each textlink that should be inserted. Example: "WARNING: This product can expose you to chemicals which are known to the state of California to cause cancer. For more information go to {0}." This disclosure text must not contain any promotional or ad-like content. |
textLinks[] |
Text links that should be substituted into the template. The first one will be substituted for "{0}" in the template string, and the second one for "{1}", etc. |
TextLink
A text link that should be substituted into the template.
JSON representation | |
---|---|
{ "displayText": string, "url": string } |
Fields | |
---|---|
displayText |
Text that should be displayed to users. |
url |
URL to which users should be directed when the link is activated. |
DisclosurePresentationOptions
Options for the presentation of a disclosure.
JSON representation | |
---|---|
{
"presentationRequirement": enum ( |
Fields | |
---|---|
presentationRequirement |
Presentation requirement of the disclosure. |
initiallyExpanded |
Whether the content of the disclosure should be initially expanded. By default, it is initially collapsed. |