Class TargetingSuggestionMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.TargetingSuggestionMetrics
All Implemented Interfaces:
TargetingSuggestionMetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class TargetingSuggestionMetrics extends com.google.protobuf.GeneratedMessageV3 implements TargetingSuggestionMetricsOrBuilder
 A suggested targetable audience relevant to the requested audience.
 
Protobuf type google.ads.googleads.v18.services.TargetingSuggestionMetrics
See Also:
  • Field Details

    • LOCATIONS_FIELD_NUMBER

      public static final int LOCATIONS_FIELD_NUMBER
      See Also:
    • AGE_RANGES_FIELD_NUMBER

      public static final int AGE_RANGES_FIELD_NUMBER
      See Also:
    • GENDER_FIELD_NUMBER

      public static final int GENDER_FIELD_NUMBER
      See Also:
    • PARENTAL_STATUS_FIELD_NUMBER

      public static final int PARENTAL_STATUS_FIELD_NUMBER
      See Also:
    • USER_INTERESTS_FIELD_NUMBER

      public static final int USER_INTERESTS_FIELD_NUMBER
      See Also:
    • COVERAGE_FIELD_NUMBER

      public static final int COVERAGE_FIELD_NUMBER
      See Also:
    • INDEX_FIELD_NUMBER

      public static final int INDEX_FIELD_NUMBER
      See Also:
    • POTENTIAL_YOUTUBE_REACH_FIELD_NUMBER

      public static final int POTENTIAL_YOUTUBE_REACH_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getLocationsList

      public List<AudienceInsightsAttributeMetadata> getLocationsList()
       Suggested location targeting.  These attributes all have dimension
       GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata locations = 1;
      Specified by:
      getLocationsList in interface TargetingSuggestionMetricsOrBuilder
    • getLocationsOrBuilderList

      public List<? extends AudienceInsightsAttributeMetadataOrBuilder> getLocationsOrBuilderList()
       Suggested location targeting.  These attributes all have dimension
       GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata locations = 1;
      Specified by:
      getLocationsOrBuilderList in interface TargetingSuggestionMetricsOrBuilder
    • getLocationsCount

      public int getLocationsCount()
       Suggested location targeting.  These attributes all have dimension
       GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata locations = 1;
      Specified by:
      getLocationsCount in interface TargetingSuggestionMetricsOrBuilder
    • getLocations

      public AudienceInsightsAttributeMetadata getLocations(int index)
       Suggested location targeting.  These attributes all have dimension
       GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata locations = 1;
      Specified by:
      getLocations in interface TargetingSuggestionMetricsOrBuilder
    • getLocationsOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getLocationsOrBuilder(int index)
       Suggested location targeting.  These attributes all have dimension
       GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata locations = 1;
      Specified by:
      getLocationsOrBuilder in interface TargetingSuggestionMetricsOrBuilder
    • getAgeRangesList

      public List<AgeRangeInfo> getAgeRangesList()
       Suggested age targeting; may be empty indicating no age targeting.
       
      repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 2;
      Specified by:
      getAgeRangesList in interface TargetingSuggestionMetricsOrBuilder
    • getAgeRangesOrBuilderList

      public List<? extends AgeRangeInfoOrBuilder> getAgeRangesOrBuilderList()
       Suggested age targeting; may be empty indicating no age targeting.
       
      repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 2;
      Specified by:
      getAgeRangesOrBuilderList in interface TargetingSuggestionMetricsOrBuilder
    • getAgeRangesCount

      public int getAgeRangesCount()
       Suggested age targeting; may be empty indicating no age targeting.
       
      repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 2;
      Specified by:
      getAgeRangesCount in interface TargetingSuggestionMetricsOrBuilder
    • getAgeRanges

      public AgeRangeInfo getAgeRanges(int index)
       Suggested age targeting; may be empty indicating no age targeting.
       
      repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 2;
      Specified by:
      getAgeRanges in interface TargetingSuggestionMetricsOrBuilder
    • getAgeRangesOrBuilder

      public AgeRangeInfoOrBuilder getAgeRangesOrBuilder(int index)
       Suggested age targeting; may be empty indicating no age targeting.
       
      repeated .google.ads.googleads.v18.common.AgeRangeInfo age_ranges = 2;
      Specified by:
      getAgeRangesOrBuilder in interface TargetingSuggestionMetricsOrBuilder
    • hasGender

      public boolean hasGender()
       Suggested gender targeting.  If present, this attribute has dimension
       GENDER.
       
      .google.ads.googleads.v18.common.GenderInfo gender = 3;
      Specified by:
      hasGender in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      Whether the gender field is set.
    • getGender

      public GenderInfo getGender()
       Suggested gender targeting.  If present, this attribute has dimension
       GENDER.
       
      .google.ads.googleads.v18.common.GenderInfo gender = 3;
      Specified by:
      getGender in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      The gender.
    • getGenderOrBuilder

      public GenderInfoOrBuilder getGenderOrBuilder()
       Suggested gender targeting.  If present, this attribute has dimension
       GENDER.
       
      .google.ads.googleads.v18.common.GenderInfo gender = 3;
      Specified by:
      getGenderOrBuilder in interface TargetingSuggestionMetricsOrBuilder
    • hasParentalStatus

      public boolean hasParentalStatus()
       A Parental Status value (parent, or not a parent).
       
      .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 8;
      Specified by:
      hasParentalStatus in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      Whether the parentalStatus field is set.
    • getParentalStatus

      public ParentalStatusInfo getParentalStatus()
       A Parental Status value (parent, or not a parent).
       
      .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 8;
      Specified by:
      getParentalStatus in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      The parentalStatus.
    • getParentalStatusOrBuilder

      public ParentalStatusInfoOrBuilder getParentalStatusOrBuilder()
       A Parental Status value (parent, or not a parent).
       
      .google.ads.googleads.v18.common.ParentalStatusInfo parental_status = 8;
      Specified by:
      getParentalStatusOrBuilder in interface TargetingSuggestionMetricsOrBuilder
    • getUserInterestsList

      public List<AudienceInsightsAttributeMetadata> getUserInterestsList()
       Suggested audience segments to target.  These attributes all have dimension
       AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata user_interests = 4;
      Specified by:
      getUserInterestsList in interface TargetingSuggestionMetricsOrBuilder
    • getUserInterestsOrBuilderList

      public List<? extends AudienceInsightsAttributeMetadataOrBuilder> getUserInterestsOrBuilderList()
       Suggested audience segments to target.  These attributes all have dimension
       AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata user_interests = 4;
      Specified by:
      getUserInterestsOrBuilderList in interface TargetingSuggestionMetricsOrBuilder
    • getUserInterestsCount

      public int getUserInterestsCount()
       Suggested audience segments to target.  These attributes all have dimension
       AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata user_interests = 4;
      Specified by:
      getUserInterestsCount in interface TargetingSuggestionMetricsOrBuilder
    • getUserInterests

      public AudienceInsightsAttributeMetadata getUserInterests(int index)
       Suggested audience segments to target.  These attributes all have dimension
       AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata user_interests = 4;
      Specified by:
      getUserInterests in interface TargetingSuggestionMetricsOrBuilder
    • getUserInterestsOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getUserInterestsOrBuilder(int index)
       Suggested audience segments to target.  These attributes all have dimension
       AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
       
      repeated .google.ads.googleads.v18.services.AudienceInsightsAttributeMetadata user_interests = 4;
      Specified by:
      getUserInterestsOrBuilder in interface TargetingSuggestionMetricsOrBuilder
    • getCoverage

      public double getCoverage()
       The fraction (from 0 to 1 inclusive) of the requested audience that can be
       reached using the suggested targeting.
       
      double coverage = 5;
      Specified by:
      getCoverage in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      The coverage.
    • getIndex

      public double getIndex()
       The ratio of coverage to the coverage of the baseline audience or zero if
       this ratio is undefined or is not meaningful.
       
      double index = 6;
      Specified by:
      getIndex in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      The index.
    • getPotentialYoutubeReach

      public long getPotentialYoutubeReach()
       The approximate estimated number of people that can be reached on YouTube
       using this targeting.
       
      int64 potential_youtube_reach = 7;
      Specified by:
      getPotentialYoutubeReach in interface TargetingSuggestionMetricsOrBuilder
      Returns:
      The potentialYoutubeReach.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TargetingSuggestionMetrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TargetingSuggestionMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TargetingSuggestionMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public TargetingSuggestionMetrics.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static TargetingSuggestionMetrics.Builder newBuilder()
    • newBuilder

      public static TargetingSuggestionMetrics.Builder newBuilder(TargetingSuggestionMetrics prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TargetingSuggestionMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static TargetingSuggestionMetrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TargetingSuggestionMetrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<TargetingSuggestionMetrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public TargetingSuggestionMetrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder