Class CustomTargetingKey
The CustomTargetingKey resource.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CustomTargetingKey : IMessage<CustomTargetingKey>, IEquatable<CustomTargetingKey>, IDeepCloneable<CustomTargetingKey>, IBufferMessage, IMessage
Constructors
CustomTargetingKey()
Declaration
public CustomTargetingKey()
CustomTargetingKey(CustomTargetingKey)
Declaration
public CustomTargetingKey(CustomTargetingKey other)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomTargetingKey | other |
Properties
AdTagName
Immutable. Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
Declaration
public string AdTagName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CustomTargetingKeyId
Output only. CustomTargetingKey ID.
Declaration
public long CustomTargetingKeyId { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
CustomTargetingKeyName
CustomTargetingKeyName-typed view over the Name resource name property.
Declaration
public CustomTargetingKeyName CustomTargetingKeyName { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyName |
DisplayName
Optional. Descriptive name for the CustomTargetingKey.
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 |
HasCustomTargetingKeyId
Gets whether the "custom_targeting_key_id" field is set
Declaration
public bool HasCustomTargetingKeyId { 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 |
HasReportableType
Gets whether the "reportable_type" field is set
Declaration
public bool HasReportableType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasType
Gets whether the "type" field is set
Declaration
public bool HasType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. The resource name of the CustomTargetingKey.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ReportableType
Required. Reportable state of the CustomTargetingKey.
Declaration
public CustomTargetingKeyReportableTypeEnum.Types.CustomTargetingKeyReportableType ReportableType { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyReportableTypeEnum.Types.CustomTargetingKeyReportableType |
Status
Output only. Status of the CustomTargetingKey.
Declaration
public CustomTargetingKeyStatusEnum.Types.CustomTargetingKeyStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyStatusEnum.Types.CustomTargetingKeyStatus |
Type
Required. Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item.
Declaration
public CustomTargetingKeyTypeEnum.Types.CustomTargetingKeyType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| CustomTargetingKeyTypeEnum.Types.CustomTargetingKeyType |