Class Targeting
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.Targeting
- All Implemented Interfaces:
TargetingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Targeting
extends com.google.protobuf.GeneratedMessageV3
implements TargetingOrBuilder
The targeting for which traffic metrics will be reported.Protobuf type
google.ads.googleads.v18.services.Targeting- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe targeting for which traffic metrics will be reported.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanTargeted age range.intTargeted age range.Targeted audiences.Targeted audiences.static Targetingstatic final com.google.protobuf.Descriptors.DescriptorgetDevices(int index) Targeted devices.intTargeted devices.Targeted devices.getDevicesOrBuilder(int index) Targeted devices.List<? extends DeviceInfoOrBuilder>Targeted devices.getGenders(int index) Targeted genders.intTargeted genders.Targeted genders.getGendersOrBuilder(int index) Targeted genders.List<? extends GenderInfoOrBuilder>Targeted genders.Targetable network for the ad product.intTargetable network for the ad product.com.google.protobuf.Parser<Targeting>The ID of the selected location.com.google.protobuf.ByteStringThe ID of the selected location.getPlannableLocationIds(int index) The list of plannable location IDs to target with this forecast.com.google.protobuf.ByteStringgetPlannableLocationIdsBytes(int index) The list of plannable location IDs to target with this forecast.intThe list of plannable location IDs to target with this forecast.com.google.protobuf.ProtocolStringListThe list of plannable location IDs to target with this forecast.intbooleanTargeted audiences.inthashCode()booleanThe ID of the selected location.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Targeting.Builderstatic Targeting.BuildernewBuilder(Targeting prototype) protected Targeting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TargetingparseDelimitedFrom(InputStream input) static TargetingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetingparseFrom(byte[] data) static TargetingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetingparseFrom(com.google.protobuf.ByteString data) static TargetingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetingparseFrom(com.google.protobuf.CodedInputStream input) static TargetingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetingparseFrom(InputStream input) static TargetingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetingparseFrom(ByteBuffer data) static TargetingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Targeting>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PLANNABLE_LOCATION_ID_FIELD_NUMBER
public static final int PLANNABLE_LOCATION_ID_FIELD_NUMBER- See Also:
-
PLANNABLE_LOCATION_IDS_FIELD_NUMBER
public static final int PLANNABLE_LOCATION_IDS_FIELD_NUMBER- See Also:
-
AGE_RANGE_FIELD_NUMBER
public static final int AGE_RANGE_FIELD_NUMBER- See Also:
-
GENDERS_FIELD_NUMBER
public static final int GENDERS_FIELD_NUMBER- See Also:
-
DEVICES_FIELD_NUMBER
public static final int DEVICES_FIELD_NUMBER- See Also:
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER- See Also:
-
AUDIENCE_TARGETING_FIELD_NUMBER
public static final int AUDIENCE_TARGETING_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasPlannableLocationId
public boolean hasPlannableLocationId()The ID of the selected location. Plannable location IDs can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_ids`. This field is deprecated as of V12 and will be removed in a future release. Use `plannable_location_ids` instead.
optional string plannable_location_id = 6;- Specified by:
hasPlannableLocationIdin interfaceTargetingOrBuilder- Returns:
- Whether the plannableLocationId field is set.
-
getPlannableLocationId
The ID of the selected location. Plannable location IDs can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_ids`. This field is deprecated as of V12 and will be removed in a future release. Use `plannable_location_ids` instead.
optional string plannable_location_id = 6;- Specified by:
getPlannableLocationIdin interfaceTargetingOrBuilder- Returns:
- The plannableLocationId.
-
getPlannableLocationIdBytes
public com.google.protobuf.ByteString getPlannableLocationIdBytes()The ID of the selected location. Plannable location IDs can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_ids`. This field is deprecated as of V12 and will be removed in a future release. Use `plannable_location_ids` instead.
optional string plannable_location_id = 6;- Specified by:
getPlannableLocationIdBytesin interfaceTargetingOrBuilder- Returns:
- The bytes for plannableLocationId.
-
getPlannableLocationIdsList
public com.google.protobuf.ProtocolStringList getPlannableLocationIdsList()The list of plannable location IDs to target with this forecast. If more than one ID is provided, all IDs must have the same `parent_country_id`. Planning for more than `parent_county` is not supported. Plannable location IDs and their `parent_country_id` can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_id`.
repeated string plannable_location_ids = 8;- Specified by:
getPlannableLocationIdsListin interfaceTargetingOrBuilder- Returns:
- A list containing the plannableLocationIds.
-
getPlannableLocationIdsCount
public int getPlannableLocationIdsCount()The list of plannable location IDs to target with this forecast. If more than one ID is provided, all IDs must have the same `parent_country_id`. Planning for more than `parent_county` is not supported. Plannable location IDs and their `parent_country_id` can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_id`.
repeated string plannable_location_ids = 8;- Specified by:
getPlannableLocationIdsCountin interfaceTargetingOrBuilder- Returns:
- The count of plannableLocationIds.
-
getPlannableLocationIds
The list of plannable location IDs to target with this forecast. If more than one ID is provided, all IDs must have the same `parent_country_id`. Planning for more than `parent_county` is not supported. Plannable location IDs and their `parent_country_id` can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_id`.
repeated string plannable_location_ids = 8;- Specified by:
getPlannableLocationIdsin interfaceTargetingOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The plannableLocationIds at the given index.
-
getPlannableLocationIdsBytes
public com.google.protobuf.ByteString getPlannableLocationIdsBytes(int index) The list of plannable location IDs to target with this forecast. If more than one ID is provided, all IDs must have the same `parent_country_id`. Planning for more than `parent_county` is not supported. Plannable location IDs and their `parent_country_id` can be obtained from [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. Requests must set either this field or `plannable_location_id`.
repeated string plannable_location_ids = 8;- Specified by:
getPlannableLocationIdsBytesin interfaceTargetingOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the plannableLocationIds at the given index.
-
getAgeRangeValue
public int getAgeRangeValue()Targeted age range. An unset value is equivalent to targeting all ages.
.google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;- Specified by:
getAgeRangeValuein interfaceTargetingOrBuilder- Returns:
- The enum numeric value on the wire for ageRange.
-
getAgeRange
Targeted age range. An unset value is equivalent to targeting all ages.
.google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;- Specified by:
getAgeRangein interfaceTargetingOrBuilder- Returns:
- The ageRange.
-
getGendersList
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3;- Specified by:
getGendersListin interfaceTargetingOrBuilder
-
getGendersOrBuilderList
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3;- Specified by:
getGendersOrBuilderListin interfaceTargetingOrBuilder
-
getGendersCount
public int getGendersCount()Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3;- Specified by:
getGendersCountin interfaceTargetingOrBuilder
-
getGenders
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3;- Specified by:
getGendersin interfaceTargetingOrBuilder
-
getGendersOrBuilder
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3;- Specified by:
getGendersOrBuilderin interfaceTargetingOrBuilder
-
getDevicesList
Targeted devices. If not specified, targets all applicable devices. Applicable devices vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
repeated .google.ads.googleads.v18.common.DeviceInfo devices = 4;- Specified by:
getDevicesListin interfaceTargetingOrBuilder
-
getDevicesOrBuilderList
Targeted devices. If not specified, targets all applicable devices. Applicable devices vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
repeated .google.ads.googleads.v18.common.DeviceInfo devices = 4;- Specified by:
getDevicesOrBuilderListin interfaceTargetingOrBuilder
-
getDevicesCount
public int getDevicesCount()Targeted devices. If not specified, targets all applicable devices. Applicable devices vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
repeated .google.ads.googleads.v18.common.DeviceInfo devices = 4;- Specified by:
getDevicesCountin interfaceTargetingOrBuilder
-
getDevices
Targeted devices. If not specified, targets all applicable devices. Applicable devices vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
repeated .google.ads.googleads.v18.common.DeviceInfo devices = 4;- Specified by:
getDevicesin interfaceTargetingOrBuilder
-
getDevicesOrBuilder
Targeted devices. If not specified, targets all applicable devices. Applicable devices vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
repeated .google.ads.googleads.v18.common.DeviceInfo devices = 4;- Specified by:
getDevicesOrBuilderin interfaceTargetingOrBuilder
-
getNetworkValue
public int getNetworkValue()Targetable network for the ad product. If not specified, targets all applicable networks. Applicable networks vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
.google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5;- Specified by:
getNetworkValuein interfaceTargetingOrBuilder- Returns:
- The enum numeric value on the wire for network.
-
getNetwork
Targetable network for the ad product. If not specified, targets all applicable networks. Applicable networks vary by product and region and can be obtained from [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].
.google.ads.googleads.v18.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5;- Specified by:
getNetworkin interfaceTargetingOrBuilder- Returns:
- The network.
-
hasAudienceTargeting
public boolean hasAudienceTargeting()Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;- Specified by:
hasAudienceTargetingin interfaceTargetingOrBuilder- Returns:
- Whether the audienceTargeting field is set.
-
getAudienceTargeting
Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;- Specified by:
getAudienceTargetingin interfaceTargetingOrBuilder- Returns:
- The audienceTargeting.
-
getAudienceTargetingOrBuilder
Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;- Specified by:
getAudienceTargetingOrBuilderin interfaceTargetingOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Targeting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Targeting parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Targeting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Targeting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Targeting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Targeting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Targeting parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Targeting parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Targeting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Targeting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-