Class TargetingPreset
User-defined preset targeting criteria.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class TargetingPreset : IMessage<TargetingPreset>, IEquatable<TargetingPreset>, IDeepCloneable<TargetingPreset>, IBufferMessage, IMessage
Constructors
TargetingPreset()
Declaration
public TargetingPreset()
TargetingPreset(TargetingPreset)
Declaration
public TargetingPreset(TargetingPreset other)
Parameters
| Type | Name | Description |
|---|---|---|
| TargetingPreset | other |
Properties
DisplayName
Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasDisplayName
Gets whether the "display_name" field is set
Declaration
public bool HasDisplayName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. The resource name of the TargetingPreset.
Format: networks/{network_code}/targetingPresets/{targeting_preset_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Output only. The status of the TargetingPreset.
Declaration
public TargetingPresetStatusEnum.Types.TargetingPresetStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| TargetingPresetStatusEnum.Types.TargetingPresetStatus |
Targeting
Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.
Declaration
public Targeting Targeting { get; set; }
Property Value
| Type | Description |
|---|---|
| Targeting |
TargetingPresetName
TargetingPresetName-typed view over the Name resource name property.
Declaration
public TargetingPresetName TargetingPresetName { get; set; }
Property Value
| Type | Description |
|---|---|
| TargetingPresetName |