Class CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable
Represents a list variable defined in a creative template. This is similar to [StringCreativeTemplateVariable][google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable], except that there are possible choices to choose from.
Use [StringCreativeTemplateVariableValue][] to specify the value for this variable when creating a [TemplateCreative][] from a [CreativeTemplate][google.ads.admanager.v1.CreativeTemplate].
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable : IMessage<CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable>, IEquatable<CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable>, IDeepCloneable<CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable>, IBufferMessage, IMessage
Constructors
ListStringCreativeTemplateVariable()
Declaration
public ListStringCreativeTemplateVariable()
ListStringCreativeTemplateVariable(ListStringCreativeTemplateVariable)
Declaration
public ListStringCreativeTemplateVariable(CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable other)
Parameters
| Type | Name | Description |
|---|---|---|
| CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable | other |
Properties
AllowOtherChoice
Optional. True if a user can specify an 'other' value. For example, if
a variable called backgroundColor is defined as a list with values: red,
green, blue, this boolean can be set to allow a user to enter a value not
on the list such as purple.
Declaration
public bool AllowOtherChoice { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Choices
Optional. The selectable values that the user can choose from.
Declaration
public RepeatedField<CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable.Types.VariableChoice> Choices { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<CreativeTemplateVariable.Types.ListStringCreativeTemplateVariable.Types.VariableChoice> |
DefaultValue
Optional. Default value to be filled in when creating creatives from the creative template.
Declaration
public string DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasAllowOtherChoice
Gets whether the "allow_other_choice" field is set
Declaration
public bool HasAllowOtherChoice { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDefaultValue
Gets whether the "default_value" field is set
Declaration
public bool HasDefaultValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSampleValue
Gets whether the "sample_value" field is set
Declaration
public bool HasSampleValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
SampleValue
Optional. Sample value that is used when previewing the template in the UI.
Declaration
public string SampleValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |