Class Experiment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.Experiment
- All Implemented Interfaces:
ExperimentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Experiment
extends com.google.protobuf.GeneratedMessageV3
implements ExperimentOrBuilder
A Google ads experiment for users to experiment changes on multiple campaigns, compare the performance, and apply the effective changes.Protobuf type
google.ads.googleads.v18.resources.Experiment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA Google ads experiment for users to experiment changes on multiple campaigns, compare the performance, and apply the effective changes.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 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 TypeMethodDescriptionbooleanstatic ExperimentThe description of the experiment.com.google.protobuf.ByteStringThe description of the experiment.static final com.google.protobuf.Descriptors.DescriptorDate when the experiment ends.com.google.protobuf.ByteStringDate when the experiment ends.longOutput only.getGoals(int index) The goals of this experiment.intThe goals of this experiment.The goals of this experiment.getGoalsOrBuilder(int index) The goals of this experiment.List<? extends MetricGoalOrBuilder>The goals of this experiment.Output only.com.google.protobuf.ByteStringOutput only.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<Experiment>Output only.intOutput only.Immutable.com.google.protobuf.ByteStringImmutable.intDate when the experiment starts.com.google.protobuf.ByteStringDate when the experiment starts.The Advertiser-chosen status of this experiment.intThe Advertiser-chosen status of this experiment.For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.com.google.protobuf.ByteStringFor system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated.booleanImmutable.getType()Required.intRequired.booleanDate when the experiment ends.booleanOutput only.inthashCode()booleanOutput only.booleanDate when the experiment starts.booleanImmutable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Experiment.Builderstatic Experiment.BuildernewBuilder(Experiment prototype) protected Experiment.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ExperimentparseDelimitedFrom(InputStream input) static ExperimentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExperimentparseFrom(byte[] data) static ExperimentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExperimentparseFrom(com.google.protobuf.ByteString data) static ExperimentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExperimentparseFrom(com.google.protobuf.CodedInputStream input) static ExperimentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExperimentparseFrom(InputStream input) static ExperimentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExperimentparseFrom(ByteBuffer data) static ExperimentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Experiment>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:
-
EXPERIMENT_ID_FIELD_NUMBER
public static final int EXPERIMENT_ID_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:
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
START_DATE_FIELD_NUMBER
public static final int START_DATE_FIELD_NUMBER- See Also:
-
END_DATE_FIELD_NUMBER
public static final int END_DATE_FIELD_NUMBER- See Also:
-
GOALS_FIELD_NUMBER
public static final int GOALS_FIELD_NUMBER- See Also:
-
LONG_RUNNING_OPERATION_FIELD_NUMBER
public static final int LONG_RUNNING_OPERATION_FIELD_NUMBER- See Also:
-
PROMOTE_STATUS_FIELD_NUMBER
public static final int PROMOTE_STATUS_FIELD_NUMBER- See Also:
-
SYNC_ENABLED_FIELD_NUMBER
public static final int SYNC_ENABLED_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 experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{experiment_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceExperimentOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the experiment. Experiment resource names have the form: `customers/{customer_id}/experiments/{experiment_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for resourceName.
-
hasExperimentId
public boolean hasExperimentId()Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExperimentIdin interfaceExperimentOrBuilder- Returns:
- Whether the experimentId field is set.
-
getExperimentId
public long getExperimentId()Output only. The ID of the experiment. Read only.
optional int64 experiment_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExperimentIdin interfaceExperimentOrBuilder- Returns:
- The experimentId.
-
getName
Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceExperimentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The name of the experiment. It must have a minimum length of 1 and maximum length of 1024. It must be unique under a customer.
string name = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for name.
-
getDescription
The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Specified by:
getDescriptionin interfaceExperimentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the experiment. It must have a minimum length of 1 and maximum length of 2048.
string description = 11;- Specified by:
getDescriptionBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for description.
-
getSuffix
For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Specified by:
getSuffixin interfaceExperimentOrBuilder- Returns:
- The suffix.
-
getSuffixBytes
public com.google.protobuf.ByteString getSuffixBytes()For system managed experiments, the advertiser must provide a suffix during construction, in the setup stage before moving to initiated. The suffix will be appended to the in-design and experiment campaign names so that the name is base campaign name + suffix.
string suffix = 12;- Specified by:
getSuffixBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for suffix.
-
getTypeValue
public int getTypeValue()Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Required. The product/feature that uses this experiment.
.google.ads.googleads.v18.enums.ExperimentTypeEnum.ExperimentType type = 13 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceExperimentOrBuilder- Returns:
- The type.
-
getStatusValue
public int getStatusValue()The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
The Advertiser-chosen status of this experiment.
.google.ads.googleads.v18.enums.ExperimentStatusEnum.ExperimentStatus status = 14;- Specified by:
getStatusin interfaceExperimentOrBuilder- Returns:
- The status.
-
hasStartDate
public boolean hasStartDate()Date when the experiment starts. By default, the experiment starts now or on the campaign's start date, whichever is later. If this field is set, then the experiment starts at the beginning of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
hasStartDatein interfaceExperimentOrBuilder- Returns:
- Whether the startDate field is set.
-
getStartDate
Date when the experiment starts. By default, the experiment starts now or on the campaign's start date, whichever is later. If this field is set, then the experiment starts at the beginning of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
getStartDatein interfaceExperimentOrBuilder- Returns:
- The startDate.
-
getStartDateBytes
public com.google.protobuf.ByteString getStartDateBytes()Date when the experiment starts. By default, the experiment starts now or on the campaign's start date, whichever is later. If this field is set, then the experiment starts at the beginning of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-03-14
optional string start_date = 15;- Specified by:
getStartDateBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for startDate.
-
hasEndDate
public boolean hasEndDate()Date when the experiment ends. By default, the experiment ends on the campaign's end date. If this field is set, then the experiment ends at the end of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-04-18
optional string end_date = 16;- Specified by:
hasEndDatein interfaceExperimentOrBuilder- Returns:
- Whether the endDate field is set.
-
getEndDate
Date when the experiment ends. By default, the experiment ends on the campaign's end date. If this field is set, then the experiment ends at the end of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-04-18
optional string end_date = 16;- Specified by:
getEndDatein interfaceExperimentOrBuilder- Returns:
- The endDate.
-
getEndDateBytes
public com.google.protobuf.ByteString getEndDateBytes()Date when the experiment ends. By default, the experiment ends on the campaign's end date. If this field is set, then the experiment ends at the end of the specified date in the customer's time zone. Format: YYYY-MM-DD Example: 2019-04-18
optional string end_date = 16;- Specified by:
getEndDateBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for endDate.
-
getGoalsList
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsListin interfaceExperimentOrBuilder
-
getGoalsOrBuilderList
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderListin interfaceExperimentOrBuilder
-
getGoalsCount
public int getGoalsCount()The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsCountin interfaceExperimentOrBuilder
-
getGoals
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsin interfaceExperimentOrBuilder
-
getGoalsOrBuilder
The goals of this experiment.
repeated .google.ads.googleads.v18.common.MetricGoal goals = 17;- Specified by:
getGoalsOrBuilderin interfaceExperimentOrBuilder
-
hasLongRunningOperation
public boolean hasLongRunningOperation()Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLongRunningOperationin interfaceExperimentOrBuilder- Returns:
- Whether the longRunningOperation field is set.
-
getLongRunningOperation
Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLongRunningOperationin interfaceExperimentOrBuilder- Returns:
- The longRunningOperation.
-
getLongRunningOperationBytes
public com.google.protobuf.ByteString getLongRunningOperationBytes()Output only. The resource name of the long-running operation that can be used to poll for completion of experiment schedule or promote. The most recent long running operation is returned.
optional string long_running_operation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLongRunningOperationBytesin interfaceExperimentOrBuilder- Returns:
- The bytes for longRunningOperation.
-
getPromoteStatusValue
public int getPromoteStatusValue()Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromoteStatusValuein interfaceExperimentOrBuilder- Returns:
- The enum numeric value on the wire for promoteStatus.
-
getPromoteStatus
Output only. The status of the experiment promotion process.
.google.ads.googleads.v18.enums.AsyncActionStatusEnum.AsyncActionStatus promote_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPromoteStatusin interfaceExperimentOrBuilder- Returns:
- The promoteStatus.
-
hasSyncEnabled
public boolean hasSyncEnabled()Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasSyncEnabledin interfaceExperimentOrBuilder- Returns:
- Whether the syncEnabled field is set.
-
getSyncEnabled
public boolean getSyncEnabled()Immutable. Set to true if changes to base campaigns should be synced to the trial campaigns. Any changes made directly to trial campaigns will be preserved. This field can only be set when the experiment is being created.
optional bool sync_enabled = 20 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSyncEnabledin interfaceExperimentOrBuilder- Returns:
- The syncEnabled.
-
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 Experiment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Experiment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Experiment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Experiment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Experiment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Experiment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Experiment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Experiment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Experiment 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 Experiment.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
-