Class LineItemCreativeAssociation.Builder (0.62.0)

public static final class LineItemCreativeAssociation.Builder extends GeneratedMessage.Builder<LineItemCreativeAssociation.Builder> implements LineItemCreativeAssociationOrBuilder

A LineItemCreativeAssociation associates a Creative or CreativeSet with a LineItem so that the creative can be served in ad units targeted by the line item.

Protobuf type google.ads.admanager.v1.LineItemCreativeAssociation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSizes(Iterable<? extends Size> values)

public LineItemCreativeAssociation.Builder addAllSizes(Iterable<? extends Size> values)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.Size>
Returns
Type Description
LineItemCreativeAssociation.Builder

addSizes(Size value)

public LineItemCreativeAssociation.Builder addSizes(Size value)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Size
Returns
Type Description
LineItemCreativeAssociation.Builder

addSizes(Size.Builder builderForValue)

public LineItemCreativeAssociation.Builder addSizes(Size.Builder builderForValue)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Size.Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

addSizes(int index, Size value)

public LineItemCreativeAssociation.Builder addSizes(int index, Size value)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Size
Returns
Type Description
LineItemCreativeAssociation.Builder

addSizes(int index, Size.Builder builderForValue)

public LineItemCreativeAssociation.Builder addSizes(int index, Size.Builder builderForValue)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Size.Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

addSizesBuilder()

public Size.Builder addSizesBuilder()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Size.Builder

addSizesBuilder(int index)

public Size.Builder addSizesBuilder(int index)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Size.Builder

build()

public LineItemCreativeAssociation build()
Returns
Type Description
LineItemCreativeAssociation

buildPartial()

public LineItemCreativeAssociation buildPartial()
Returns
Type Description
LineItemCreativeAssociation

clear()

public LineItemCreativeAssociation.Builder clear()
Returns
Type Description
LineItemCreativeAssociation.Builder
Overrides

clearCreative()

public LineItemCreativeAssociation.Builder clearCreative()

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearCreativeSet()

public LineItemCreativeAssociation.Builder clearCreativeSet()

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearDestinationUrl()

public LineItemCreativeAssociation.Builder clearDestinationUrl()

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearEndTime()

public LineItemCreativeAssociation.Builder clearEndTime()

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemCreativeAssociation.Builder

clearLineItem()

public LineItemCreativeAssociation.Builder clearLineItem()

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearManualCreativeRotationWeight()

public LineItemCreativeAssociation.Builder clearManualCreativeRotationWeight()

Optional. Non-empty default. The weight of the creative. This value is only used if the creativeRotationType of the lineItem is set to WEIGHTED. Defaults to 10.

optional double manual_creative_rotation_weight = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearName()

public LineItemCreativeAssociation.Builder clearName()

Identifier. The resource name of the LineItemCreativeAssociation. Format: networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearSequentialCreativeRotationIndex()

public LineItemCreativeAssociation.Builder clearSequentialCreativeRotationIndex()

Optional. Non-empty default. The sequential rotation index of the Creative. This value is used only if the lineItem's creativeRotationType is set to SEQUENTIAL. Defaults to 1.

optional int32 sequential_creative_rotation_index = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearSizes()

public LineItemCreativeAssociation.Builder clearSizes()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemCreativeAssociation.Builder

clearStartTime()

public LineItemCreativeAssociation.Builder clearStartTime()

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemCreativeAssociation.Builder

clearStats()

public LineItemCreativeAssociation.Builder clearStats()

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociation.Builder

clearStatus()

public LineItemCreativeAssociation.Builder clearStatus()

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearTargetingDisplayName()

public LineItemCreativeAssociation.Builder clearTargetingDisplayName()

Optional. Specifies creative targeting for this line item creative association. It should match the targetingName specified on the corresponding creativePlaceholder on the lineItem.

string targeting_display_name = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

clearUpdateTime()

public LineItemCreativeAssociation.Builder clearUpdateTime()

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociation.Builder

getCreative()

public String getCreative()

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The creative.

getCreativeBytes()

public ByteString getCreativeBytes()

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for creative.

getCreativeSet()

public String getCreativeSet()

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The creativeSet.

getCreativeSetBytes()

public ByteString getCreativeSetBytes()

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for creativeSet.

getDefaultInstanceForType()

public LineItemCreativeAssociation getDefaultInstanceForType()
Returns
Type Description
LineItemCreativeAssociation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationUrl()

public String getDestinationUrl()

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The destinationUrl.

getDestinationUrlBytes()

public ByteString getDestinationUrlBytes()

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for destinationUrl.

getEndTime()

public Timestamp getEndTime()

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getLineItem()

public String getLineItem()

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The lineItem.

getLineItemBytes()

public ByteString getLineItemBytes()

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for lineItem.

getManualCreativeRotationWeight()

public double getManualCreativeRotationWeight()

Optional. Non-empty default. The weight of the creative. This value is only used if the creativeRotationType of the lineItem is set to WEIGHTED. Defaults to 10.

optional double manual_creative_rotation_weight = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
double

The manualCreativeRotationWeight.

getName()

public String getName()

Identifier. The resource name of the LineItemCreativeAssociation. Format: networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the LineItemCreativeAssociation. Format: networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getSequentialCreativeRotationIndex()

public int getSequentialCreativeRotationIndex()

Optional. Non-empty default. The sequential rotation index of the Creative. This value is used only if the lineItem's creativeRotationType is set to SEQUENTIAL. Defaults to 1.

optional int32 sequential_creative_rotation_index = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
int

The sequentialCreativeRotationIndex.

getSizes(int index)

public Size getSizes(int index)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Size

getSizesBuilder(int index)

public Size.Builder getSizesBuilder(int index)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Size.Builder

getSizesBuilderList()

public List<Size.Builder> getSizesBuilderList()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSizesCount()

public int getSizesCount()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSizesList()

public List<Size> getSizesList()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Size>

getSizesOrBuilder(int index)

public SizeOrBuilder getSizesOrBuilder(int index)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SizeOrBuilder

getSizesOrBuilderList()

public List<? extends SizeOrBuilder> getSizesOrBuilderList()

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.SizeOrBuilder>

getStartTime()

public Timestamp getStartTime()

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getStats()

public LineItemCreativeAssociationStats getStats()

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociationStats

The stats.

getStatsBuilder()

public LineItemCreativeAssociationStats.Builder getStatsBuilder()

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociationStats.Builder

getStatsOrBuilder()

public LineItemCreativeAssociationStatsOrBuilder getStatsOrBuilder()

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociationStatsOrBuilder

getStatus()

public LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus getStatus()

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus

The status.

getStatusValue()

public int getStatusValue()

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getTargetingDisplayName()

public String getTargetingDisplayName()

Optional. Specifies creative targeting for this line item creative association. It should match the targetingName specified on the corresponding creativePlaceholder on the lineItem.

string targeting_display_name = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The targetingDisplayName.

getTargetingDisplayNameBytes()

public ByteString getTargetingDisplayNameBytes()

Optional. Specifies creative targeting for this line item creative association. It should match the targetingName specified on the corresponding creativePlaceholder on the lineItem.

string targeting_display_name = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for targetingDisplayName.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreative()

public boolean hasCreative()

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the creative field is set.

hasCreativeSet()

public boolean hasCreativeSet()

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the creativeSet field is set.

hasDestinationUrl()

public boolean hasDestinationUrl()

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the destinationUrl field is set.

hasEndTime()

public boolean hasEndTime()

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endTime field is set.

hasLineItem()

public boolean hasLineItem()

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the lineItem field is set.

hasManualCreativeRotationWeight()

public boolean hasManualCreativeRotationWeight()

Optional. Non-empty default. The weight of the creative. This value is only used if the creativeRotationType of the lineItem is set to WEIGHTED. Defaults to 10.

optional double manual_creative_rotation_weight = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
boolean

Whether the manualCreativeRotationWeight field is set.

hasSequentialCreativeRotationIndex()

public boolean hasSequentialCreativeRotationIndex()

Optional. Non-empty default. The sequential rotation index of the Creative. This value is used only if the lineItem's creativeRotationType is set to SEQUENTIAL. Defaults to 1.

optional int32 sequential_creative_rotation_index = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Returns
Type Description
boolean

Whether the sequentialCreativeRotationIndex field is set.

hasStartTime()

public boolean hasStartTime()

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime field is set.

hasStats()

public boolean hasStats()

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the stats field is set.

hasStatus()

public boolean hasStatus()

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public LineItemCreativeAssociation.Builder mergeEndTime(Timestamp value)

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

mergeFrom(LineItemCreativeAssociation other)

public LineItemCreativeAssociation.Builder mergeFrom(LineItemCreativeAssociation other)
Parameter
Name Description
other LineItemCreativeAssociation
Returns
Type Description
LineItemCreativeAssociation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LineItemCreativeAssociation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineItemCreativeAssociation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LineItemCreativeAssociation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LineItemCreativeAssociation.Builder
Overrides

mergeStartTime(Timestamp value)

public LineItemCreativeAssociation.Builder mergeStartTime(Timestamp value)

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

mergeStats(LineItemCreativeAssociationStats value)

public LineItemCreativeAssociation.Builder mergeStats(LineItemCreativeAssociationStats value)

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LineItemCreativeAssociationStats
Returns
Type Description
LineItemCreativeAssociation.Builder

mergeUpdateTime(Timestamp value)

public LineItemCreativeAssociation.Builder mergeUpdateTime(Timestamp value)

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

removeSizes(int index)

public LineItemCreativeAssociation.Builder removeSizes(int index)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LineItemCreativeAssociation.Builder

setCreative(String value)

public LineItemCreativeAssociation.Builder setCreative(String value)

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The creative to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setCreativeBytes(ByteString value)

public LineItemCreativeAssociation.Builder setCreativeBytes(ByteString value)

Optional. Immutable. The Creative to which the LineItemCreativeAssociation associated. Optional if creativeSet is set.

optional string creative = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for creative to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setCreativeSet(String value)

public LineItemCreativeAssociation.Builder setCreativeSet(String value)

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The creativeSet to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setCreativeSetBytes(ByteString value)

public LineItemCreativeAssociation.Builder setCreativeSetBytes(ByteString value)

Optional. Immutable. The CreativeSet to which the LineItemCreativeAssociation associated. Optional if creative is set.

optional string creative_set = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for creativeSet to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setDestinationUrl(String value)

public LineItemCreativeAssociation.Builder setDestinationUrl(String value)

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The destinationUrl to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setDestinationUrlBytes(ByteString value)

public LineItemCreativeAssociation.Builder setDestinationUrlBytes(ByteString value)

Optional. Overrides the value set for destinationUrl of the creative. This value is only valid for Ad Manager 360 networks.

optional string destination_url = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for destinationUrl to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setEndTime(Timestamp value)

public LineItemCreativeAssociation.Builder setEndTime(Timestamp value)

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

setEndTime(Timestamp.Builder builderForValue)

public LineItemCreativeAssociation.Builder setEndTime(Timestamp.Builder builderForValue)

Optional. Overrides endTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the endTime of the lineItem will be used.

optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

setLineItem(String value)

public LineItemCreativeAssociation.Builder setLineItem(String value)

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The lineItem to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setLineItemBytes(ByteString value)

public LineItemCreativeAssociation.Builder setLineItemBytes(ByteString value)

Required. Immutable. The LineItem to which the LineItemCreativeAssociation belongs.

optional string line_item = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for lineItem to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setManualCreativeRotationWeight(double value)

public LineItemCreativeAssociation.Builder setManualCreativeRotationWeight(double value)

Optional. Non-empty default. The weight of the creative. This value is only used if the creativeRotationType of the lineItem is set to WEIGHTED. Defaults to 10.

optional double manual_creative_rotation_weight = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Parameter
Name Description
value double

The manualCreativeRotationWeight to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setName(String value)

public LineItemCreativeAssociation.Builder setName(String value)

Identifier. The resource name of the LineItemCreativeAssociation. Format: networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LineItemCreativeAssociation.Builder setNameBytes(ByteString value)

Identifier. The resource name of the LineItemCreativeAssociation. Format: networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setSequentialCreativeRotationIndex(int value)

public LineItemCreativeAssociation.Builder setSequentialCreativeRotationIndex(int value)

Optional. Non-empty default. The sequential rotation index of the Creative. This value is used only if the lineItem's creativeRotationType is set to SEQUENTIAL. Defaults to 1.

optional int32 sequential_creative_rotation_index = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];

Parameter
Name Description
value int

The sequentialCreativeRotationIndex to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setSizes(int index, Size value)

public LineItemCreativeAssociation.Builder setSizes(int index, Size value)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Size
Returns
Type Description
LineItemCreativeAssociation.Builder

setSizes(int index, Size.Builder builderForValue)

public LineItemCreativeAssociation.Builder setSizes(int index, Size.Builder builderForValue)

Optional. Overrides the value set for size of the creative, which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.

repeated .google.ads.admanager.v1.Size sizes = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Size.Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

setStartTime(Timestamp value)

public LineItemCreativeAssociation.Builder setStartTime(Timestamp value)

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

setStartTime(Timestamp.Builder builderForValue)

public LineItemCreativeAssociation.Builder setStartTime(Timestamp.Builder builderForValue)

Optional. Overrides the value set for startTime of the lineItem. This value is only valid for Ad Manager 360 networks. If unset, the startTime of the lineItem will be used.

optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

setStats(LineItemCreativeAssociationStats value)

public LineItemCreativeAssociation.Builder setStats(LineItemCreativeAssociationStats value)

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LineItemCreativeAssociationStats
Returns
Type Description
LineItemCreativeAssociation.Builder

setStats(LineItemCreativeAssociationStats.Builder builderForValue)

public LineItemCreativeAssociation.Builder setStats(LineItemCreativeAssociationStats.Builder builderForValue)

Output only. Contains trafficking statistics for the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStats stats = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue LineItemCreativeAssociationStats.Builder
Returns
Type Description
LineItemCreativeAssociation.Builder

setStatus(LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus value)

public LineItemCreativeAssociation.Builder setStatus(LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus value)

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus

The status to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setStatusValue(int value)

public LineItemCreativeAssociation.Builder setStatusValue(int value)

Output only. The status of the association.

optional .google.ads.admanager.v1.LineItemCreativeAssociationStatusEnum.LineItemCreativeAssociationStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setTargetingDisplayName(String value)

public LineItemCreativeAssociation.Builder setTargetingDisplayName(String value)

Optional. Specifies creative targeting for this line item creative association. It should match the targetingName specified on the corresponding creativePlaceholder on the lineItem.

string targeting_display_name = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The targetingDisplayName to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setTargetingDisplayNameBytes(ByteString value)

public LineItemCreativeAssociation.Builder setTargetingDisplayNameBytes(ByteString value)

Optional. Specifies creative targeting for this line item creative association. It should match the targetingName specified on the corresponding creativePlaceholder on the lineItem.

string targeting_display_name = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for targetingDisplayName to set.

Returns
Type Description
LineItemCreativeAssociation.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public LineItemCreativeAssociation.Builder setUpdateTime(Timestamp value)

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineItemCreativeAssociation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public LineItemCreativeAssociation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The date and time this association was last modified.

optional .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineItemCreativeAssociation.Builder