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

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

*** ** * ** ***

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

| ## Field ||
|---|---|
| ### `lineItemId` | ` xsd:long` The ID of the [LineItem](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem) to which the [Creative](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Creative) should be associated. This attribute is required. |
| ### `creativeId` | ` xsd:long` The ID of the [Creative](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Creative) being associated with a [LineItem](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem). 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/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#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/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#creativeId) will be the ID of the [master creative](https://developers.google.com/ad-manager/api/reference/v202605/CreativeSetService.CreativeSet#masterCreativeId). <br /> |
| ### `creativeSetId` | ` xsd:long` The ID of the [CreativeSet](https://developers.google.com/ad-manager/api/reference/v202605/CreativeSetService.CreativeSet) being associated with a [LineItem](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem). 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/v202605/CreativeService.Creative). This value is only used if the line item's `creativeRotationType` is set to [CreativeRotationType.MANUAL](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.CreativeRotationType#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/v202605/CreativeService.Creative). This value is used only if the associated line item's [LineItem.creativeRotationType](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem#creativeRotationType) is set to [CreativeRotationType.SEQUENTIAL](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.CreativeRotationType#SEQUENTIAL). This attribute is optional and defaults to 1. |
| ### `startDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.DateTime ` Overrides the value set for [LineItem.startDateTime](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem#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/v202605/ForecastService.LineItem#startDateTime) will be used. |
| ### `startDateTimeType` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.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/v202605/LineItemCreativeAssociationService.StartDateTimeType#USE_START_DATE_TIME). *** ** * ** *** **Enumerations** `USE_START_DATE_TIME` :   Use the value in [startDateTime](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#startDateTime). `IMMEDIATELY` :   The entity will start serving immediately. [startDateTime](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#startDateTime) in the request is ignored and will be set to the current time. Additionally, [startDateTimeType](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.StartDateTimeType#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/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#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/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.StartDateTimeType#USE_START_DATE_TIME). `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `endDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.DateTime ` Overrides [LineItem.endDateTime](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem#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/v202605/ForecastService.LineItem#endDateTime) will be used. |
| ### `destinationUrl` | ` xsd:string` Overrides the value set for [HasDestinationUrlCreative.destinationUrl](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.HasDestinationUrlCreative#destinationUrl). This value is optional and is only valid for Ad Manager 360 networks. |
| ### `sizes` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.Size[]` Overrides the value set for [Creative.size](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Creative#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` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociation.Status ` 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/v202605/CreativeService.Creative) can be served. `INACTIVE` :   The association is inactive and the associated [Creative](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Creative) is ineligible for being served. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `stats` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.LineItemCreativeAssociationStats ` 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` | ` https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.DateTime ` The date and time this association was last modified. |
| ### `targetingName` | ` xsd:string` Specifies [CreativeTargeting](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.CreativeTargeting) 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/v202605/ForecastService.CreativePlaceholder) in the [LineItem](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.LineItem) that is being associated with the [Creative](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Creative). <br /> |