advertisers

POST /v4/advertisers/{advertisersId}/lineItems/{lineItemsId}:duplicate

Duplicates a line item. Returns the ID of the created line item if successful. YouTube & Partners line items cannot be created or updated using the API. This method regularly experiences high latency. We recommend increasing your default timeout to avoid errors.

Request

Path parameters

advertisersIdstring required
lineItemsIdstring required

Request body

containsEuPoliticalAds'EU_POLITICAL_ADVERTISING_STATUS_UNKNOWN' | 'CONTAINS_EU_POLITICAL_ADVERTISING' | 'DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING'

Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING in the parent advertiser, then this field will be assigned DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, the advertisers.lineItems.create request will fail.

targetDisplayNamestring

The display name of the new line item. Must be UTF-8 encoded with a maximum size of 240 bytes.

Response

Successful response

duplicateLineItemIdstring int64

The ID of the created line item.

Changes

No recorded changes to this operation across all 7 revisions of this API.