Interface TargetRestrictionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TargetRestriction, TargetRestriction.Builder

public interface TargetRestrictionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions.
    The targeting dimension that these settings apply to.
    int
    The targeting dimension that these settings apply to.
    boolean
    Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getTargetingDimensionValue

      int getTargetingDimensionValue()
       The targeting dimension that these settings apply to.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1;
      Returns:
      The enum numeric value on the wire for targetingDimension.
    • getTargetingDimension

       The targeting dimension that these settings apply to.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1;
      Returns:
      The targetingDimension.
    • hasBidOnly

      boolean hasBidOnly()
       Indicates whether to restrict your ads to show only for the criteria you
       have selected for this targeting_dimension, or to target all values for
       this targeting_dimension and show ads based on your targeting in other
       TargetingDimensions. A value of `true` means that these criteria will only
       apply bid modifiers, and not affect targeting. A value of `false` means
       that these criteria will restrict targeting as well as applying bid
       modifiers.
       
      optional bool bid_only = 3;
      Returns:
      Whether the bidOnly field is set.
    • getBidOnly

      boolean getBidOnly()
       Indicates whether to restrict your ads to show only for the criteria you
       have selected for this targeting_dimension, or to target all values for
       this targeting_dimension and show ads based on your targeting in other
       TargetingDimensions. A value of `true` means that these criteria will only
       apply bid modifiers, and not affect targeting. A value of `false` means
       that these criteria will restrict targeting as well as applying bid
       modifiers.
       
      optional bool bid_only = 3;
      Returns:
      The bidOnly.