Interface TargetingPresetOrBuilder (0.54.0)

public interface TargetingPresetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDisplayName()

public abstract String getDisplayName()

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public abstract String getName()

Identifier. The resource name of the TargetingPreset. Format: networks/{network_code}/targetingPresets/{targeting_preset_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. The resource name of the TargetingPreset. Format: networks/{network_code}/targetingPresets/{targeting_preset_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getStatus()

public abstract TargetingPresetStatusEnum.TargetingPresetStatus getStatus()

Output only. The status of the TargetingPreset.

optional .google.ads.admanager.v1.TargetingPresetStatusEnum.TargetingPresetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TargetingPresetStatusEnum.TargetingPresetStatus

The status.

getStatusValue()

public abstract int getStatusValue()

Output only. The status of the TargetingPreset.

optional .google.ads.admanager.v1.TargetingPresetStatusEnum.TargetingPresetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getTargeting()

public abstract Targeting getTargeting()

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Targeting

The targeting.

getTargetingOrBuilder()

public abstract TargetingOrBuilder getTargetingOrBuilder()

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetingOrBuilder

hasDisplayName()

public abstract boolean hasDisplayName()

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the displayName field is set.

hasStatus()

public abstract boolean hasStatus()

Output only. The status of the TargetingPreset.

optional .google.ads.admanager.v1.TargetingPresetStatusEnum.TargetingPresetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasTargeting()

public abstract boolean hasTargeting()

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

optional .google.ads.admanager.v1.Targeting targeting = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the targeting field is set.