Class TargetingSetting.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
com.google.ads.googleads.v18.common.TargetingSetting.Builder
- All Implemented Interfaces:
TargetingSettingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TargetingSetting
public static final class TargetingSetting.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
implements TargetingSettingOrBuilder
Settings for the targeting-related features, at the campaign and ad group levels. For more details about the targeting setting, visit https://support.google.com/google-ads/answer/7365594Protobuf type
google.ads.googleads.v18.common.TargetingSetting-
Method Summary
Modifier and TypeMethodDescriptionaddAllTargetRestrictionOperations(Iterable<? extends TargetRestrictionOperation> values) The list of operations changing the target restrictions.addAllTargetRestrictions(Iterable<? extends TargetRestriction> values) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTargetRestrictionOperations(int index, TargetRestrictionOperation value) The list of operations changing the target restrictions.addTargetRestrictionOperations(int index, TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions.The list of operations changing the target restrictions.addTargetRestrictionOperations(TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions.The list of operations changing the target restrictions.addTargetRestrictionOperationsBuilder(int index) The list of operations changing the target restrictions.addTargetRestrictions(int index, TargetRestriction value) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.addTargetRestrictions(int index, TargetRestriction.Builder builderForValue) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.The per-targeting-dimension setting to restrict the reach of your campaign or ad group.addTargetRestrictions(TargetRestriction.Builder builderForValue) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.The per-targeting-dimension setting to restrict the reach of your campaign or ad group.addTargetRestrictionsBuilder(int index) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The list of operations changing the target restrictions.The per-targeting-dimension setting to restrict the reach of your campaign or ad group.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTargetRestrictionOperations(int index) The list of operations changing the target restrictions.getTargetRestrictionOperationsBuilder(int index) The list of operations changing the target restrictions.The list of operations changing the target restrictions.intThe list of operations changing the target restrictions.The list of operations changing the target restrictions.getTargetRestrictionOperationsOrBuilder(int index) The list of operations changing the target restrictions.List<? extends TargetRestrictionOperationOrBuilder>The list of operations changing the target restrictions.getTargetRestrictions(int index) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.getTargetRestrictionsBuilder(int index) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.The per-targeting-dimension setting to restrict the reach of your campaign or ad group.intThe per-targeting-dimension setting to restrict the reach of your campaign or ad group.The per-targeting-dimension setting to restrict the reach of your campaign or ad group.getTargetRestrictionsOrBuilder(int index) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.List<? extends TargetRestrictionOrBuilder>The per-targeting-dimension setting to restrict the reach of your campaign or ad group.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(TargetingSetting other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final TargetingSetting.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeTargetRestrictionOperations(int index) The list of operations changing the target restrictions.removeTargetRestrictions(int index) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTargetRestrictionOperations(int index, TargetRestrictionOperation value) The list of operations changing the target restrictions.setTargetRestrictionOperations(int index, TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions.setTargetRestrictions(int index, TargetRestriction value) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.setTargetRestrictions(int index, TargetRestriction.Builder builderForValue) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.final TargetingSetting.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<TargetingSetting.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
setField
public TargetingSetting.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
setRepeatedField
public TargetingSetting.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
addRepeatedField
public TargetingSetting.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TargetingSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
mergeFrom
public TargetingSetting.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TargetingSetting.Builder>- Throws:
IOException
-
getTargetRestrictionsList
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1;- Specified by:
getTargetRestrictionsListin interfaceTargetingSettingOrBuilder
-
getTargetRestrictionsCount
public int getTargetRestrictionsCount()The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1;- Specified by:
getTargetRestrictionsCountin interfaceTargetingSettingOrBuilder
-
getTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1;- Specified by:
getTargetRestrictionsin interfaceTargetingSettingOrBuilder
-
setTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
setTargetRestrictions
public TargetingSetting.Builder setTargetRestrictions(int index, TargetRestriction.Builder builderForValue) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addTargetRestrictions
public TargetingSetting.Builder addTargetRestrictions(int index, TargetRestriction.Builder builderForValue) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addAllTargetRestrictions
public TargetingSetting.Builder addAllTargetRestrictions(Iterable<? extends TargetRestriction> values) The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
clearTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
removeTargetRestrictions
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
getTargetRestrictionsBuilder
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
getTargetRestrictionsOrBuilder
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1;- Specified by:
getTargetRestrictionsOrBuilderin interfaceTargetingSettingOrBuilder
-
getTargetRestrictionsOrBuilderList
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1;- Specified by:
getTargetRestrictionsOrBuilderListin interfaceTargetingSettingOrBuilder
-
addTargetRestrictionsBuilder
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
addTargetRestrictionsBuilder
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
getTargetRestrictionsBuilderList
The per-targeting-dimension setting to restrict the reach of your campaign or ad group.
repeated .google.ads.googleads.v18.common.TargetRestriction target_restrictions = 1; -
getTargetRestrictionOperationsList
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2;- Specified by:
getTargetRestrictionOperationsListin interfaceTargetingSettingOrBuilder
-
getTargetRestrictionOperationsCount
public int getTargetRestrictionOperationsCount()The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2;- Specified by:
getTargetRestrictionOperationsCountin interfaceTargetingSettingOrBuilder
-
getTargetRestrictionOperations
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2;- Specified by:
getTargetRestrictionOperationsin interfaceTargetingSettingOrBuilder
-
setTargetRestrictionOperations
public TargetingSetting.Builder setTargetRestrictionOperations(int index, TargetRestrictionOperation value) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
setTargetRestrictionOperations
public TargetingSetting.Builder setTargetRestrictionOperations(int index, TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addTargetRestrictionOperations
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addTargetRestrictionOperations
public TargetingSetting.Builder addTargetRestrictionOperations(int index, TargetRestrictionOperation value) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addTargetRestrictionOperations
public TargetingSetting.Builder addTargetRestrictionOperations(TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addTargetRestrictionOperations
public TargetingSetting.Builder addTargetRestrictionOperations(int index, TargetRestrictionOperation.Builder builderForValue) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addAllTargetRestrictionOperations
public TargetingSetting.Builder addAllTargetRestrictionOperations(Iterable<? extends TargetRestrictionOperation> values) The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
clearTargetRestrictionOperations
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
removeTargetRestrictionOperations
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
getTargetRestrictionOperationsBuilder
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
getTargetRestrictionOperationsOrBuilder
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2;- Specified by:
getTargetRestrictionOperationsOrBuilderin interfaceTargetingSettingOrBuilder
-
getTargetRestrictionOperationsOrBuilderList
public List<? extends TargetRestrictionOperationOrBuilder> getTargetRestrictionOperationsOrBuilderList()The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2;- Specified by:
getTargetRestrictionOperationsOrBuilderListin interfaceTargetingSettingOrBuilder
-
addTargetRestrictionOperationsBuilder
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
addTargetRestrictionOperationsBuilder
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
getTargetRestrictionOperationsBuilderList
The list of operations changing the target restrictions. Adding a target restriction with a targeting dimension that already exists causes the existing target restriction to be replaced with the new value.
repeated .google.ads.googleads.v18.common.TargetRestrictionOperation target_restriction_operations = 2; -
setUnknownFields
public final TargetingSetting.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-
mergeUnknownFields
public final TargetingSetting.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetingSetting.Builder>
-