Interface TargetingOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Targeting,Targeting.Builder
public interface TargetingOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionTargeted age range.intTargeted age range.Targeted audiences.Targeted audiences.getDevices(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.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.The list of plannable location IDs to target with this forecast.booleanTargeted audiences.booleanThe ID of the selected location.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasPlannableLocationId
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;- Returns:
- Whether the plannableLocationId field is set.
-
getPlannableLocationId
String 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;- Returns:
- The plannableLocationId.
-
getPlannableLocationIdBytes
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;- Returns:
- The bytes for plannableLocationId.
-
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;- Returns:
- A list containing the plannableLocationIds.
-
getPlannableLocationIdsCount
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;- 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;- Parameters:
index- The index of the element to return.- Returns:
- The plannableLocationIds at the given index.
-
getPlannableLocationIdsBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the plannableLocationIds at the given index.
-
getAgeRangeValue
int getAgeRangeValue()Targeted age range. An unset value is equivalent to targeting all ages.
.google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;- Returns:
- The enum numeric value on the wire for ageRange.
-
getAgeRange
ReachPlanAgeRangeEnum.ReachPlanAgeRange getAgeRange()Targeted age range. An unset value is equivalent to targeting all ages.
.google.ads.googleads.v18.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2;- Returns:
- The ageRange.
-
getGendersList
List<GenderInfo> getGendersList()Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3; -
getGenders
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3; -
getGendersCount
int getGendersCount()Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3; -
getGendersOrBuilderList
List<? extends GenderInfoOrBuilder> getGendersOrBuilderList()Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3; -
getGendersOrBuilder
Targeted genders. An unset value is equivalent to targeting MALE and FEMALE.
repeated .google.ads.googleads.v18.common.GenderInfo genders = 3; -
getDevicesList
List<DeviceInfo> 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; -
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; -
getDevicesCount
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; -
getDevicesOrBuilderList
List<? extends DeviceInfoOrBuilder> 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; -
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; -
getNetworkValue
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;- Returns:
- The enum numeric value on the wire for network.
-
getNetwork
ReachPlanNetworkEnum.ReachPlanNetwork 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;- Returns:
- The network.
-
hasAudienceTargeting
boolean hasAudienceTargeting()Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;- Returns:
- Whether the audienceTargeting field is set.
-
getAudienceTargeting
AudienceTargeting getAudienceTargeting()Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;- Returns:
- The audienceTargeting.
-
getAudienceTargetingOrBuilder
AudienceTargetingOrBuilder getAudienceTargetingOrBuilder()Targeted audiences. If not specified, does not target any specific audience.
.google.ads.googleads.v18.services.AudienceTargeting audience_targeting = 7;
-