Class Targeting (0.27.0)

public final class Targeting extends GeneratedMessageV3 implements TargetingOrBuilder

Targeting expression.

Protobuf type google.ads.admanager.v1.Targeting

Implements

TargetingOrBuilder

Static Fields

CUSTOM_TARGETING_FIELD_NUMBER

public static final int CUSTOM_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

DATA_SEGMENT_TARGETING_FIELD_NUMBER

public static final int DATA_SEGMENT_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

GEO_TARGETING_FIELD_NUMBER

public static final int GEO_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

INVENTORY_TARGETING_FIELD_NUMBER

public static final int INVENTORY_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_PLATFORM_TARGETING_FIELD_NUMBER

public static final int REQUEST_PLATFORM_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

TECHNOLOGY_TARGETING_FIELD_NUMBER

public static final int TECHNOLOGY_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

USER_DOMAIN_TARGETING_FIELD_NUMBER

public static final int USER_DOMAIN_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_POSITION_TARGETING_FIELD_NUMBER

public static final int VIDEO_POSITION_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Targeting getDefaultInstance()
Returns
Type Description
Targeting

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Targeting.Builder newBuilder()
Returns
Type Description
Targeting.Builder

newBuilder(Targeting prototype)

public static Targeting.Builder newBuilder(Targeting prototype)
Parameter
Name Description
prototype Targeting
Returns
Type Description
Targeting.Builder

parseDelimitedFrom(InputStream input)

public static Targeting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Targeting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Targeting parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Targeting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Targeting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Targeting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Targeting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Targeting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Targeting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Targeting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Targeting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Targeting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Targeting
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Targeting> parser()
Returns
Type Description
Parser<Targeting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCustomTargeting()

public CustomTargeting getCustomTargeting()

Optional. Used to target key/values, audience segments, and/or CMS metadata.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTargeting

The customTargeting.

getCustomTargetingOrBuilder()

public CustomTargetingOrBuilder getCustomTargetingOrBuilder()

Optional. Used to target key/values, audience segments, and/or CMS metadata.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTargetingOrBuilder

getDataSegmentTargeting()

public DataSegmentTargeting getDataSegmentTargeting()

Optional. Used to target data segments.

.google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSegmentTargeting

The dataSegmentTargeting.

getDataSegmentTargetingOrBuilder()

public DataSegmentTargetingOrBuilder getDataSegmentTargetingOrBuilder()

Optional. Used to target data segments.

.google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSegmentTargetingOrBuilder

getDefaultInstanceForType()

public Targeting getDefaultInstanceForType()
Returns
Type Description
Targeting

getGeoTargeting()

public GeoTargeting getGeoTargeting()

Optional. Used to target/exclude various geo targets.

.google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GeoTargeting

The geoTargeting.

getGeoTargetingOrBuilder()

public GeoTargetingOrBuilder getGeoTargetingOrBuilder()

Optional. Used to target/exclude various geo targets.

.google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GeoTargetingOrBuilder

getInventoryTargeting()

public InventoryTargeting getInventoryTargeting()

Optional. Used to target/exclude various ad units and/or placements.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InventoryTargeting

The inventoryTargeting.

getInventoryTargetingOrBuilder()

public InventoryTargetingOrBuilder getInventoryTargetingOrBuilder()

Optional. Used to target/exclude various ad units and/or placements.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InventoryTargetingOrBuilder

getParserForType()

public Parser<Targeting> getParserForType()
Returns
Type Description
Parser<Targeting>
Overrides

getRequestPlatformTargeting()

public RequestPlatformTargeting getRequestPlatformTargeting()

Optional. Used to target specific request platforms.

.google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RequestPlatformTargeting

The requestPlatformTargeting.

getRequestPlatformTargetingOrBuilder()

public RequestPlatformTargetingOrBuilder getRequestPlatformTargetingOrBuilder()

Optional. Used to target specific request platforms.

.google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RequestPlatformTargetingOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTechnologyTargeting()

public TechnologyTargeting getTechnologyTargeting()

Optional. Used to target various technology targeting dimensions.

.google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TechnologyTargeting

The technologyTargeting.

getTechnologyTargetingOrBuilder()

public TechnologyTargetingOrBuilder getTechnologyTargetingOrBuilder()

Optional. Used to target various technology targeting dimensions.

.google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TechnologyTargetingOrBuilder

getUserDomainTargeting()

public UserDomainTargeting getUserDomainTargeting()

Optional. Used to target user domains.

.google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserDomainTargeting

The userDomainTargeting.

getUserDomainTargetingOrBuilder()

public UserDomainTargetingOrBuilder getUserDomainTargetingOrBuilder()

Optional. Used to target user domains.

.google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserDomainTargetingOrBuilder

getVideoPositionTargeting()

public VideoPositionTargeting getVideoPositionTargeting()

Optional. Used to target video positions.

.google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoPositionTargeting

The videoPositionTargeting.

getVideoPositionTargetingOrBuilder()

public VideoPositionTargetingOrBuilder getVideoPositionTargetingOrBuilder()

Optional. Used to target video positions.

.google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoPositionTargetingOrBuilder

hasCustomTargeting()

public boolean hasCustomTargeting()

Optional. Used to target key/values, audience segments, and/or CMS metadata.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customTargeting field is set.

hasDataSegmentTargeting()

public boolean hasDataSegmentTargeting()

Optional. Used to target data segments.

.google.ads.admanager.v1.DataSegmentTargeting data_segment_targeting = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dataSegmentTargeting field is set.

hasGeoTargeting()

public boolean hasGeoTargeting()

Optional. Used to target/exclude various geo targets.

.google.ads.admanager.v1.GeoTargeting geo_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the geoTargeting field is set.

hasInventoryTargeting()

public boolean hasInventoryTargeting()

Optional. Used to target/exclude various ad units and/or placements.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inventoryTargeting field is set.

hasRequestPlatformTargeting()

public boolean hasRequestPlatformTargeting()

Optional. Used to target specific request platforms.

.google.ads.admanager.v1.RequestPlatformTargeting request_platform_targeting = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the requestPlatformTargeting field is set.

hasTechnologyTargeting()

public boolean hasTechnologyTargeting()

Optional. Used to target various technology targeting dimensions.

.google.ads.admanager.v1.TechnologyTargeting technology_targeting = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the technologyTargeting field is set.

hasUserDomainTargeting()

public boolean hasUserDomainTargeting()

Optional. Used to target user domains.

.google.ads.admanager.v1.UserDomainTargeting user_domain_targeting = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userDomainTargeting field is set.

hasVideoPositionTargeting()

public boolean hasVideoPositionTargeting()

Optional. Used to target video positions.

.google.ads.admanager.v1.VideoPositionTargeting video_position_targeting = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the videoPositionTargeting field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Targeting.Builder newBuilderForType()
Returns
Type Description
Targeting.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Targeting.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Targeting.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Targeting.Builder toBuilder()
Returns
Type Description
Targeting.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException