Package com.google.doubleclick
Class AdxExt.BidExt.FrequencyCap
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.doubleclick.AdxExt.BidExt.FrequencyCap
-
- All Implemented Interfaces:
AdxExt.BidExt.FrequencyCapOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AdxExt.BidExt
public static final class AdxExt.BidExt.FrequencyCap extends com.google.protobuf.GeneratedMessageV3 implements AdxExt.BidExt.FrequencyCapOrBuilder
Experimental feature; may be subject to change. See https://support.google.com/authorizedbuyers/answer/10890762 for more information. Specifies frequency capping to be applied to the bid. Impressions for each user are capped at the level specified by fcap_id. A bid will not participate in the auction if an additional impression for the user would violate any of the specified caps. Multiple frequency caps can be specified for the same fcap_id. A bid is filtered before the auction if the frequency cap is malformed. Instances where the cap is malformed include: - fcap_id is empty or is very long - max_mpressions or time_range are non-positive - there are a large number of frequency caps for a single bid - time_unit is not specified Note that if a subsequent bid with the same fcap_id uses a different duration (represented by time_unit and time_range) then impressions counted against the old frequency cap will not count against the new one and vice versa.
Protobuf typecom.google.doubleclick.BidExt.FrequencyCap- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdxExt.BidExt.FrequencyCap.BuilderExperimental feature; may be subject to change.static classAdxExt.BidExt.FrequencyCap.TimeUnitThe time units for which frequency caps can be enforced.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFCAP_ID_FIELD_NUMBERstatic intMAX_IMP_FIELD_NUMBERstatic com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap>PARSERDeprecated.static intTIME_RANGE_FIELD_NUMBERstatic intTIME_UNIT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static AdxExt.BidExt.FrequencyCapgetDefaultInstance()AdxExt.BidExt.FrequencyCapgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFcapId()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.com.google.protobuf.ByteStringgetFcapIdBytes()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.intgetMaxImp()The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap>getParserForType()intgetSerializedSize()intgetTimeRange()The length of the time window, in units specified by time_unit, for which the frequency cap applies.AdxExt.BidExt.FrequencyCap.TimeUnitgetTimeUnit()The unit of time used to specify the time window for which a frequency cap applies.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasFcapId()An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc.inthashCode()booleanhasMaxImp()The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.booleanhasTimeRange()The length of the time window, in units specified by time_unit, for which the frequency cap applies.booleanhasTimeUnit()The unit of time used to specify the time window for which a frequency cap applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AdxExt.BidExt.FrequencyCap.BuildernewBuilder()static AdxExt.BidExt.FrequencyCap.BuildernewBuilder(AdxExt.BidExt.FrequencyCap prototype)AdxExt.BidExt.FrequencyCap.BuildernewBuilderForType()protected AdxExt.BidExt.FrequencyCap.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AdxExt.BidExt.FrequencyCapparseDelimitedFrom(InputStream input)static AdxExt.BidExt.FrequencyCapparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AdxExt.BidExt.FrequencyCapparseFrom(byte[] data)static AdxExt.BidExt.FrequencyCapparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AdxExt.BidExt.FrequencyCapparseFrom(com.google.protobuf.ByteString data)static AdxExt.BidExt.FrequencyCapparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AdxExt.BidExt.FrequencyCapparseFrom(com.google.protobuf.CodedInputStream input)static AdxExt.BidExt.FrequencyCapparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AdxExt.BidExt.FrequencyCapparseFrom(InputStream input)static AdxExt.BidExt.FrequencyCapparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AdxExt.BidExt.FrequencyCapparseFrom(ByteBuffer data)static AdxExt.BidExt.FrequencyCapparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap>parser()AdxExt.BidExt.FrequencyCap.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FCAP_ID_FIELD_NUMBER
public static final int FCAP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_UNIT_FIELD_NUMBER
public static final int TIME_UNIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_RANGE_FIELD_NUMBER
public static final int TIME_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_IMP_FIELD_NUMBER
public static final int MAX_IMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
hasFcapId
public boolean hasFcapId()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
hasFcapIdin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the fcapId field is set.
-
getFcapId
public String getFcapId()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
getFcapIdin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The fcapId.
-
getFcapIdBytes
public com.google.protobuf.ByteString getFcapIdBytes()
An ID that can represent a bidder's use-case for frequency capping; for example, it could represent their campaign, ad, line item, etc. It should not contain any user-specific information or identifiers and should not be longer than 64 characters.
optional string fcap_id = 1;- Specified by:
getFcapIdBytesin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The bytes for fcapId.
-
hasTimeUnit
public boolean hasTimeUnit()
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Specified by:
hasTimeUnitin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the timeUnit field is set.
-
getTimeUnit
public AdxExt.BidExt.FrequencyCap.TimeUnit getTimeUnit()
The unit of time used to specify the time window for which a frequency cap applies.
optional .com.google.doubleclick.BidExt.FrequencyCap.TimeUnit time_unit = 2;- Specified by:
getTimeUnitin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The timeUnit.
-
hasTimeRange
public boolean hasTimeRange()
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Specified by:
hasTimeRangein interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the timeRange field is set.
-
getTimeRange
public int getTimeRange()
The length of the time window, in units specified by time_unit, for which the frequency cap applies. For instance, if time_unit=WEEK and time_range=3, then capping is applied for a three week period. If the time_unit=INDEFINITE, this will be ignored.
optional int32 time_range = 3 [default = 1];- Specified by:
getTimeRangein interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The timeRange.
-
hasMaxImp
public boolean hasMaxImp()
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Specified by:
hasMaxImpin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- Whether the maxImp field is set.
-
getMaxImp
public int getMaxImp()
The maximum number of impressions allowed to be shown to a user for the provided frequency_cap_id within the time window described by time_unit and time_range.
optional int32 max_imp = 4;- Specified by:
getMaxImpin interfaceAdxExt.BidExt.FrequencyCapOrBuilder- Returns:
- The maxImp.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 AdxExt.BidExt.FrequencyCap parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AdxExt.BidExt.FrequencyCap parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AdxExt.BidExt.FrequencyCap parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AdxExt.BidExt.FrequencyCap parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AdxExt.BidExt.FrequencyCap.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AdxExt.BidExt.FrequencyCap.Builder newBuilder()
-
newBuilder
public static AdxExt.BidExt.FrequencyCap.Builder newBuilder(AdxExt.BidExt.FrequencyCap prototype)
-
toBuilder
public AdxExt.BidExt.FrequencyCap.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AdxExt.BidExt.FrequencyCap.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AdxExt.BidExt.FrequencyCap getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap> parser()
-
getParserForType
public com.google.protobuf.Parser<AdxExt.BidExt.FrequencyCap> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AdxExt.BidExt.FrequencyCap getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-