- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Creates a new association between the identified resource and a YouTube asset.
Returns the newly-created association.
HTTP request
POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/lineItems/{linkedEntity.lineItemId}/youtubeAssetTypes/{youtubeAssetAssociation.youtubeAssetType}/youtubeAssetAssociations
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
advertiserId |
Required. The ID of the advertiser that the linked entity belongs to. |
Union parameter entity. The entity to associate with the YouTube asset. entity can be only one of the following: |
|
linkedEntity.lineItemId |
The ID of a line item. |
youtubeAssetAssociation.youtubeAssetType |
Required. The type of YouTube asset associated with the resource. |
Query parameters
| Parameters | |
|---|---|
Union parameter entity. The entity to associate with the YouTube asset. entity can be only one of the following: |
|
linkedEntity.adGroupId |
The ID of an ad group. |
Request body
The request body contains an instance of YoutubeAssetAssociation.
Response body
If successful, the response body contains a newly created instance of YoutubeAssetAssociation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.