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 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

      List<String> 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

      String getPlannableLocationIds(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 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

       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

      GenderInfo getGenders(int index)
       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

      GenderInfoOrBuilder getGendersOrBuilder(int index)
       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

      DeviceInfo getDevices(int index)
       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

      DeviceInfoOrBuilder getDevicesOrBuilder(int index)
       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

       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;