public static final class AudienceSegment.Rule.Builder extends GeneratedMessage.Builder<AudienceSegment.Rule.Builder> implements AudienceSegment.RuleOrBuilder Eligibility criteria for a user to be part of an AudienceSegment.
Protobuf type google.ads.admanager.v1.AudienceSegment.Rule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AudienceSegment.Rule.BuilderImplements
AudienceSegment.RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AudienceSegment.Rule build()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule |
|
buildPartial()
public AudienceSegment.Rule buildPartial()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule |
|
clear()
public AudienceSegment.Rule.Builder clear()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
clearCustomTargeting()
public AudienceSegment.Rule.Builder clearCustomTargeting()Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
clearInventoryTargeting()
public AudienceSegment.Rule.Builder clearInventoryTargeting()Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
getCustomTargeting()
public CustomTargeting getCustomTargeting()Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomTargeting |
The customTargeting. |
getCustomTargetingBuilder()
public CustomTargeting.Builder getCustomTargetingBuilder()Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomTargeting.Builder |
|
getCustomTargetingOrBuilder()
public CustomTargetingOrBuilder getCustomTargetingOrBuilder()Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomTargetingOrBuilder |
|
getDefaultInstanceForType()
public AudienceSegment.Rule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInventoryTargeting()
public InventoryTargeting getInventoryTargeting()Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
InventoryTargeting |
The inventoryTargeting. |
getInventoryTargetingBuilder()
public InventoryTargeting.Builder getInventoryTargetingBuilder()Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
InventoryTargeting.Builder |
|
getInventoryTargetingOrBuilder()
public InventoryTargetingOrBuilder getInventoryTargetingOrBuilder()Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
InventoryTargetingOrBuilder |
|
hasCustomTargeting()
public boolean hasCustomTargeting()Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the customTargeting field is set. |
hasInventoryTargeting()
public boolean hasInventoryTargeting()Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inventoryTargeting field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCustomTargeting(CustomTargeting value)
public AudienceSegment.Rule.Builder mergeCustomTargeting(CustomTargeting value)Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomTargeting |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
mergeFrom(AudienceSegment.Rule other)
public AudienceSegment.Rule.Builder mergeFrom(AudienceSegment.Rule other)| Parameter | |
|---|---|
| Name | Description |
other |
AudienceSegment.Rule |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AudienceSegment.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AudienceSegment.Rule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
mergeInventoryTargeting(InventoryTargeting value)
public AudienceSegment.Rule.Builder mergeInventoryTargeting(InventoryTargeting value)Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
InventoryTargeting |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
setCustomTargeting(CustomTargeting value)
public AudienceSegment.Rule.Builder setCustomTargeting(CustomTargeting value)Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomTargeting |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
setCustomTargeting(CustomTargeting.Builder builderForValue)
public AudienceSegment.Rule.Builder setCustomTargeting(CustomTargeting.Builder builderForValue)Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.
.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CustomTargeting.Builder |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
setInventoryTargeting(InventoryTargeting value)
public AudienceSegment.Rule.Builder setInventoryTargeting(InventoryTargeting value)Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
InventoryTargeting |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
setInventoryTargeting(InventoryTargeting.Builder builderForValue)
public AudienceSegment.Rule.Builder setInventoryTargeting(InventoryTargeting.Builder builderForValue)Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.
.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
InventoryTargeting.Builder |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|