Discovery Engine v1 API - Class SearchLinkPromotion (1.7.0)

public sealed class SearchLinkPromotion : IMessage<SearchLinkPromotion>, IEquatable<SearchLinkPromotion>, IDeepCloneable<SearchLinkPromotion>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class SearchLinkPromotion.

Promotion proto includes uri and other helping information to display the promotion.

Inheritance

object > SearchLinkPromotion

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

SearchLinkPromotion()

public SearchLinkPromotion()

SearchLinkPromotion(SearchLinkPromotion)

public SearchLinkPromotion(SearchLinkPromotion other)
Parameter
Name Description
other SearchLinkPromotion

Properties

Description

public string Description { get; set; }

Optional. The Promotion description. Maximum length: 200 characters.

Property Value
Type Description
string

Enabled

public bool Enabled { get; set; }

Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to.

This flag is used for basic site search only.

Property Value
Type Description
bool

ImageUri

public string ImageUri { get; set; }

Optional. The promotion thumbnail image url.

Property Value
Type Description
string

Title

public string Title { get; set; }

Required. The title of the promotion. Maximum length: 160 characters.

Property Value
Type Description
string

Uri

public string Uri { get; set; }

Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.

Property Value
Type Description
string