# type LineItemCreativeAssociation (v202608)

**Service** **LineItemCreativeAssociation...** **Dependencies** [LineItemCreativeAssociation...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociationPage.md.txt "LineItemCreativeAssociationPage") [createLineItemCreativeAssoc...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.md.txt#createLineItemCreativeAssociations "createLineItemCreativeAssociations()") [updateLineItemCreativeAssoc...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.md.txt#updateLineItemCreativeAssociations "updateLineItemCreativeAssociations()") ▼ **LineItemCreativeAssociation**

A `LineItemCreativeAssociation` associates a [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt) or [CreativeSet](https://developers.google.com/ad-manager/api/reference/v202608/CreativeSetService.CreativeSet.md.txt) with a
[LineItem](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt) so that the creative can be served in ad units targeted by the line item.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202608`

| ## Field ||
|---|---|
| ### `lineItemId` | ` xsd:long` The ID of the [LineItem](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt) to which the [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt) should be associated. This attribute is required. |
| ### `creativeId` | ` xsd:long` The ID of the [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt) being associated with a [LineItem](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt). This attribute is required if this is an association between a line item and a creative. This attribute is ignored if this is an association between a line item and a creative set. If this is an association between a line item and a creative, when retrieving the line item creative association, the [creativeId](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#creativeId) will be the creative's ID. If this is an association between a line item and a creative set, when retrieving the line item creative association, the [creativeId](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#creativeId) will be the ID of the [master creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeSetService.CreativeSet.md.txt#masterCreativeId). <br /> |
| ### `creativeSetId` | ` xsd:long` The ID of the [CreativeSet](https://developers.google.com/ad-manager/api/reference/v202608/CreativeSetService.CreativeSet.md.txt) being associated with a [LineItem](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt). This attribute is required if this is an association between a line item and a creative set. This field will be `null` when retrieving associations between line items and creatives not belonging to a set. <br /> |
| ### `manualCreativeRotationWeight` | ` xsd:double` The weight of the [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt). This value is only used if the line item's `creativeRotationType` is set to [CreativeRotationType.MANUAL](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.CreativeRotationType.md.txt#MANUAL). This attribute is optional and defaults to 10. |
| ### `sequentialCreativeRotationIndex` | ` xsd:int` The sequential rotation index of the [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt). This value is used only if the associated line item's [LineItem.creativeRotationType](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt#creativeRotationType) is set to [CreativeRotationType.SEQUENTIAL](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.CreativeRotationType.md.txt#SEQUENTIAL). This attribute is optional and defaults to 1. |
| ### `startDateTime` | ` DateTime ` Overrides the value set for [LineItem.startDateTime](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt#startDateTime). This value is optional and is only valid for Ad Manager 360 networks. If unset, the [LineItem.startDateTime](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt#startDateTime) will be used. |
| ### `startDateTimeType` | ` StartDateTimeType ` Specifies whether to start serving to the `LineItemCreativeAssociation` right away, in an hour, etc. This attribute is optional and defaults to [StartDateTimeType.USE_START_DATE_TIME](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.StartDateTimeType.md.txt#USE_START_DATE_TIME). *** ** * ** *** **Enumerations** `USE_START_DATE_TIME` :   Use the value in [startDateTime](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#startDateTime). `IMMEDIATELY` :   The entity will start serving immediately. [startDateTime](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#startDateTime) in the request is ignored and will be set to the current time. Additionally, [startDateTimeType](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.StartDateTimeType.md.txt#USE_START_DATE_TIME). `ONE_HOUR_FROM_NOW` :   The entity will start serving one hour from now. [startDateTime](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#startDateTime) in the request is ignored and will be set to one hour from the current time. Additionally, [startDateTimeType](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.LineItemCreativeAssociation.md.txt#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](https://developers.google.com/ad-manager/api/reference/v202608/LineItemCreativeAssociationService.StartDateTimeType.md.txt#USE_START_DATE_TIME). `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `endDateTime` | ` DateTime ` Overrides [LineItem.endDateTime](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt#endDateTime). This value is optional and is only valid for Ad Manager 360 networks. If unset, the [LineItem.endDateTime](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt#endDateTime) will be used. |
| ### `destinationUrl` | ` xsd:string` Overrides the value set for [HasDestinationUrlCreative.destinationUrl](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.HasDestinationUrlCreative.md.txt#destinationUrl). This value is optional and is only valid for Ad Manager 360 networks. |
| ### `sizes` | ` Size[]` Overrides the value set for [Creative.size](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt#size), which allows the creative to be served to ad units that would otherwise not be compatible for its actual size. This value is optional. |
| ### `status` | ` LineItemCreativeAssociation... ` The status of the association. This attribute is read-only. *** ** * ** *** **Enumerations** `ACTIVE` :   The association is active and the associated [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt) can be served. `INACTIVE` :   The association is inactive and the associated [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt) is ineligible for being served. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `stats` | ` LineItemCreativeAssociation... ` Contains trafficking statistics for the association. This attribute is readonly and is populated by Google. This will be `null` in case there are no statistics for the association yet. |
| ### `lastModifiedDateTime` | ` DateTime ` The date and time this association was last modified. |
| ### `targetingName` | ` xsd:string` Specifies [CreativeTargeting](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.CreativeTargeting.md.txt) for this line item creative association. This attribute is optional. It should match the creative targeting specified on the corresponding [CreativePlaceholder](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.CreativePlaceholder.md.txt) in the [LineItem](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.LineItem.md.txt) that is being associated with the [Creative](https://developers.google.com/ad-manager/api/reference/v202608/CreativeService.Creative.md.txt). <br /> |