0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class BatchCreateLineItemCreativeAssociationsRequest.

Request object for `BatchCreateLineItemCreativeAssociations` method.

Generated from protobuf message `google.ads.admanager.v1.BatchCreateLineItemCreativeAssociationsRequest`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where `LineItemCreativeAssociations` will be created. This request supports using the "-" character as a wildcard for resources that span across multiple LineItem parents. Format: `networks/{network_code}/lineItems/{line_item_id}` Format: `networks/{network_code}/lineItems/-` |
| `↳ requests` | `array<CreateLineItemCreativeAssociationRequest>` Required. The `LineItemCreativeAssociation` objects to create. A maximum of 100 objects can be created in a batch. |

### getParent

Required. The parent resource where `LineItemCreativeAssociations` will be
created. This request supports using the "-" character as a wildcard for
resources that span across multiple LineItem parents. Format:
`networks/{network_code}/lineItems/{line_item_id}` Format:
`networks/{network_code}/lineItems/-`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The parent resource where `LineItemCreativeAssociations` will be
created. This request supports using the "-" character as a wildcard for
resources that span across multiple LineItem parents. Format:
`networks/{network_code}/lineItems/{line_item_id}` Format:
`networks/{network_code}/lineItems/-`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequests

Required. The `LineItemCreativeAssociation` objects to create.

A maximum of 100 objects can be created in a batch.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<CreateLineItemCreativeAssociationRequest>` |   |

### setRequests

Required. The `LineItemCreativeAssociation` objects to create.

A maximum of 100 objects can be created in a batch.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<CreateLineItemCreativeAssociationRequest>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where `LineItemCreativeAssociations` will be created. This request supports using the "-" character as a wildcard for resources that span across multiple LineItem parents. Format: `networks/{network_code}/lineItems/{line_item_id}` Format: `networks/{network_code}/lineItems/-` Please see LineItemCreativeAssociationServiceClient::lineItemName() for help formatting this field. |
| `requests` | `array<CreateLineItemCreativeAssociationRequest>` Required. The `LineItemCreativeAssociation` objects to create. A maximum of 100 objects can be created in a batch. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BatchCreateLineItemCreativeAssociationsRequest` |   |