Class LineItemCreativeAssociation
A LineItemCreativeAssociation associates a [Creative][google.ads.admanager.v1.Creative] or [CreativeSet][google.ads.admanager.v1.CreativeSet] with a [LineItem][google.ads.admanager.v1.LineItem] so that the creative can be served in ad units targeted by the line item.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class LineItemCreativeAssociation : IMessage<LineItemCreativeAssociation>, IEquatable<LineItemCreativeAssociation>, IDeepCloneable<LineItemCreativeAssociation>, IBufferMessage, IMessage
Constructors
LineItemCreativeAssociation()
Declaration
public LineItemCreativeAssociation()
LineItemCreativeAssociation(LineItemCreativeAssociation)
Declaration
public LineItemCreativeAssociation(LineItemCreativeAssociation other)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItemCreativeAssociation | other |
Properties
Creative
Optional. Immutable. The [Creative][google.ads.admanager.v1.Creative] to which the LineItemCreativeAssociation associated. Optional if [creativeSet][google.ads.admanager.v1.LineItemCreativeAssociation.creative_set] is set.
Declaration
public string Creative { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreativeAsCreativeName
CreativeName-typed view over the Creative resource name property.
Declaration
public CreativeName CreativeAsCreativeName { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeName |
CreativeSet
Optional. Immutable. The [CreativeSet][google.ads.admanager.v1.CreativeSet] to which the LineItemCreativeAssociation associated. Optional if [creative][google.ads.admanager.v1.LineItemCreativeAssociation.creative] is set.
Declaration
public string CreativeSet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreativeSetAsCreativeSetName
CreativeSetName-typed view over the CreativeSet resource name property.
Declaration
public CreativeSetName CreativeSetAsCreativeSetName { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeSetName |
DestinationUrl
Optional. Overrides the value set for [destinationUrl][Creative.destination_url] of the [creative][google.ads.admanager.v1.LineItemCreativeAssociation.creative]. This value is only valid for Ad Manager 360 networks.
Declaration
public string DestinationUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EndTime
Optional. Overrides [endTime][google.ads.admanager.v1.LineItem.end_time] of the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item]. This value is only valid for Ad Manager 360 networks. If unset, the [endTime][google.ads.admanager.v1.LineItem.end_time] of the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item] will be used.
Declaration
public Timestamp EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
HasCreative
Gets whether the "creative" field is set
Declaration
public bool HasCreative { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCreativeSet
Gets whether the "creative_set" field is set
Declaration
public bool HasCreativeSet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDestinationUrl
Gets whether the "destination_url" field is set
Declaration
public bool HasDestinationUrl { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasLineItem
Gets whether the "line_item" field is set
Declaration
public bool HasLineItem { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasManualCreativeRotationWeight
Gets whether the "manual_creative_rotation_weight" field is set
Declaration
public bool HasManualCreativeRotationWeight { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSequentialCreativeRotationIndex
Gets whether the "sequential_creative_rotation_index" field is set
Declaration
public bool HasSequentialCreativeRotationIndex { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LineItem
Required. Immutable. The [LineItem][google.ads.admanager.v1.LineItem] to which the LineItemCreativeAssociation belongs.
Declaration
public string LineItem { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LineItemAsLineItemName
LineItemName-typed view over the LineItem resource name property.
Declaration
public LineItemName LineItemAsLineItemName { get; set; }
Property Value
| Type | Description |
|---|---|
| LineItemName |
LineItemCreativeAssociationName
LineItemCreativeAssociationName-typed view over the Name resource name property.
Declaration
public LineItemCreativeAssociationName LineItemCreativeAssociationName { get; set; }
Property Value
| Type | Description |
|---|---|
| LineItemCreativeAssociationName |
ManualCreativeRotationWeight
Optional. Non-empty default. The weight of the [creative][google.ads.admanager.v1.LineItemCreativeAssociation.creative]. This value is only used if the [creativeRotationType][google.ads.admanager.v1.LineItem.creative_rotation_type] of the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item] is set to [WEIGHTED][google.ads.admanager.v1.CreativeRotationTypeEnum.CreativeRotationType.WEIGHTED]. Defaults to 10.
Declaration
public double ManualCreativeRotationWeight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Name
Identifier. The resource name of the LineItemCreativeAssociation.
Format:
networks/{network_code}/lineItems/{line_item_id}/creatives/{creative_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SequentialCreativeRotationIndex
Optional. Non-empty default. The sequential rotation index of the Creative. This value is used only if the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item]'s [creativeRotationType][google.ads.admanager.v1.LineItem.creative_rotation_type] is set to [SEQUENTIAL][google.ads.admanager.v1.CreativeRotationTypeEnum.CreativeRotationType.SEQUENTIAL]. Defaults to 1.
Declaration
public int SequentialCreativeRotationIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Sizes
Optional. Overrides the value set for [size][google.ads.admanager.v1.Creative.size] of the [creative][google.ads.admanager.v1.LineItemCreativeAssociation.creative], which allows the creative to be served to ad units that would otherwise not be compatible for its actual size.
Declaration
public RepeatedField<Size> Sizes { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Size> |
StartTime
Optional. Overrides the value set for [startTime][google.ads.admanager.v1.LineItem.start_time] of the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item]. This value is only valid for Ad Manager 360 networks. If unset, the [startTime][google.ads.admanager.v1.LineItem.start_time] of the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item] will be used.
Declaration
public Timestamp StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
Stats
Output only. Contains trafficking statistics for the association.
Declaration
public LineItemCreativeAssociationStats Stats { get; set; }
Property Value
| Type | Description |
|---|---|
| LineItemCreativeAssociationStats |
Status
Output only. The status of the association.
Declaration
public LineItemCreativeAssociationStatusEnum.Types.LineItemCreativeAssociationStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| LineItemCreativeAssociationStatusEnum.Types.LineItemCreativeAssociationStatus |
TargetingDisplayName
Optional. Specifies creative targeting for this line item creative association. It should match the [targetingName][CreativePlaceholder.targeting_name] specified on the corresponding [creativePlaceholder][LineItem.creative_placeholder] on the [lineItem][google.ads.admanager.v1.LineItemCreativeAssociation.line_item].
Declaration
public string TargetingDisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateTime
Output only. The date and time this association was last modified.
Declaration
public Timestamp UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |