Class CustomTargetingValue
The CustomTargetingValue resource.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CustomTargetingValue : IMessage<CustomTargetingValue>, IEquatable<CustomTargetingValue>, IDeepCloneable<CustomTargetingValue>, IBufferMessage, IMessage
Constructors
CustomTargetingValue()
Declaration
public CustomTargetingValue()
CustomTargetingValue(CustomTargetingValue)
Declaration
public CustomTargetingValue(CustomTargetingValue other)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomTargetingValue | other |
Properties
AdTagName
Immutable. Name of the CustomTargetingValue. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
Declaration
public string AdTagName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CustomTargetingKey
Required. Immutable. The resource name of the CustomTargetingKey.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
Declaration
public string CustomTargetingKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CustomTargetingKeyAsCustomTargetingKeyName
CustomTargetingKeyName-typed view over the CustomTargetingKey resource name property.
Declaration
public CustomTargetingKeyName CustomTargetingKeyAsCustomTargetingKeyName { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyName |
CustomTargetingValueName
CustomTargetingValueName-typed view over the Name resource name property.
Declaration
public CustomTargetingValueName CustomTargetingValueName { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingValueName |
DisplayName
Optional. Descriptive name for the CustomTargetingValue.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasAdTagName
Gets whether the "ad_tag_name" field is set
Declaration
public bool HasAdTagName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCustomTargetingKey
Gets whether the "custom_targeting_key" field is set
Declaration
public bool HasCustomTargetingKey { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDisplayName
Gets whether the "display_name" field is set
Declaration
public bool HasDisplayName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasMatchType
Gets whether the "match_type" field is set
Declaration
public bool HasMatchType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MatchType
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
Declaration
public CustomTargetingValueMatchTypeEnum.Types.CustomTargetingValueMatchType MatchType { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingValueMatchTypeEnum.Types.CustomTargetingValueMatchType |
Name
Identifier. The resource name of the CustomTargetingValue.
Format:
networks/{network_code}/customTargetingValues/{custom_targeting_value_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Output only. Status of the CustomTargetingValue.
Declaration
public CustomTargetingValueStatusEnum.Types.CustomTargetingValueStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingValueStatusEnum.Types.CustomTargetingValueStatus |