Class Audience
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.Audience
- All Implemented Interfaces:
AudienceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Audience
extends com.google.protobuf.GeneratedMessageV3
implements AudienceOrBuilder
Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.Protobuf type
google.ads.googleads.v18.resources.Audience- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAudience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.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 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 TypeMethodDescriptionbooleanImmutable.com.google.protobuf.ByteStringImmutable.static AudienceDescription of this audience.com.google.protobuf.ByteStringDescription of this audience.static final com.google.protobuf.Descriptors.DescriptorgetDimensions(int index) Positive dimensions specifying the audience composition.intPositive dimensions specifying the audience composition.Positive dimensions specifying the audience composition.getDimensionsOrBuilder(int index) Positive dimensions specifying the audience composition.List<? extends AudienceDimensionOrBuilder>Positive dimensions specifying the audience composition.Negative dimension specifying the audience composition.Negative dimension specifying the audience composition.longgetId()Output only.getName()Name of the audience.com.google.protobuf.ByteStringName of the audience.com.google.protobuf.Parser<Audience>Immutable.com.google.protobuf.ByteStringImmutable.getScope()Defines the scope this audience can be used in.intDefines the scope this audience can be used in.intOutput only.intOutput only.booleanNegative dimension specifying the audience composition.inthashCode()booleanhasName()Name of the audience.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Audience.Builderstatic Audience.BuildernewBuilder(Audience prototype) protected Audience.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AudienceparseDelimitedFrom(InputStream input) static AudienceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AudienceparseFrom(byte[] data) static AudienceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AudienceparseFrom(com.google.protobuf.ByteString data) static AudienceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AudienceparseFrom(com.google.protobuf.CodedInputStream input) static AudienceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AudienceparseFrom(InputStream input) static AudienceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AudienceparseFrom(ByteBuffer data) static AudienceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Audience>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
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
DIMENSIONS_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER- See Also:
-
EXCLUSION_DIMENSION_FIELD_NUMBER
public static final int EXCLUSION_DIMENSION_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
ASSET_GROUP_FIELD_NUMBER
public static final int ASSET_GROUP_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
-
getResourceName
Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceAudienceOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for resourceName.
-
getId
public long getId()Output only. ID of the audience.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceAudienceOrBuilder- Returns:
- The id.
-
getStatusValue
public int getStatusValue()Output only. Status of this audience. Indicates whether the audience is enabled or removed.
.google.ads.googleads.v18.enums.AudienceStatusEnum.AudienceStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceAudienceOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
Output only. Status of this audience. Indicates whether the audience is enabled or removed.
.google.ads.googleads.v18.enums.AudienceStatusEnum.AudienceStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceAudienceOrBuilder- Returns:
- The status.
-
hasName
public boolean hasName()Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
hasNamein interfaceAudienceOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
getNamein interfaceAudienceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
getNameBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for name.
-
getDescription
Description of this audience.
string description = 5;- Specified by:
getDescriptionin interfaceAudienceOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of this audience.
string description = 5;- Specified by:
getDescriptionBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for description.
-
getDimensionsList
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v18.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsListin interfaceAudienceOrBuilder
-
getDimensionsOrBuilderList
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v18.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsOrBuilderListin interfaceAudienceOrBuilder
-
getDimensionsCount
public int getDimensionsCount()Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v18.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsCountin interfaceAudienceOrBuilder
-
getDimensions
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v18.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsin interfaceAudienceOrBuilder
-
getDimensionsOrBuilder
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v18.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsOrBuilderin interfaceAudienceOrBuilder
-
hasExclusionDimension
public boolean hasExclusionDimension()Negative dimension specifying the audience composition.
.google.ads.googleads.v18.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
hasExclusionDimensionin interfaceAudienceOrBuilder- Returns:
- Whether the exclusionDimension field is set.
-
getExclusionDimension
Negative dimension specifying the audience composition.
.google.ads.googleads.v18.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
getExclusionDimensionin interfaceAudienceOrBuilder- Returns:
- The exclusionDimension.
-
getExclusionDimensionOrBuilder
Negative dimension specifying the audience composition.
.google.ads.googleads.v18.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
getExclusionDimensionOrBuilderin interfaceAudienceOrBuilder
-
getScopeValue
public int getScopeValue()Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
.google.ads.googleads.v18.enums.AudienceScopeEnum.AudienceScope scope = 8;- Specified by:
getScopeValuein interfaceAudienceOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
getScope
Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
.google.ads.googleads.v18.enums.AudienceScopeEnum.AudienceScope scope = 8;- Specified by:
getScopein interfaceAudienceOrBuilder- Returns:
- The scope.
-
getAssetGroup
Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
string asset_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetGroupin interfaceAudienceOrBuilder- Returns:
- The assetGroup.
-
getAssetGroupBytes
public com.google.protobuf.ByteString getAssetGroupBytes()Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
string asset_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetGroupBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for assetGroup.
-
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 Audience parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Audience parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Audience parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Audience 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 Audience.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
-