Class AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest
Creates a new association between the identified resource and a YouTube asset. Returns the newly-created association. Warning: This method is only available to an informed subset of users.
Inheritance
AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest : DisplayVideoBaseServiceRequest<YoutubeAssetAssociation>, IClientServiceRequest<YoutubeAssetAssociation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, YoutubeAssetAssociation, long, long, YoutubeAssetTypeEnum)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, YoutubeAssetAssociation body, long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum youtubeAssetType)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| YoutubeAssetAssociation | body | |
| long | advertiserId | |
| long | lineItemId | |
| AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum | youtubeAssetType |
Properties
AdvertiserId
Required. The ID of the advertiser that the linked entity belongs to.
Declaration
[RequestParameter("advertiserId", RequestParameterType.Path)]
public virtual long AdvertiserId { get; }
Property Value
| Type | Description |
|---|---|
| long |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
LineItemId
The ID of a line item.
Declaration
[RequestParameter("lineItemId", RequestParameterType.Path)]
public virtual long LineItemId { get; }
Property Value
| Type | Description |
|---|---|
| long |
LinkedEntityAdGroupId
The ID of an ad group.
Declaration
[RequestParameter("linkedEntity.adGroupId", RequestParameterType.Query)]
public virtual long? LinkedEntityAdGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| long? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
YoutubeAssetType
Required. The type of YouTube asset associated with the resource.
Declaration
[RequestParameter("youtubeAssetType", RequestParameterType.Path)]
public virtual AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum YoutubeAssetType { get; }
Property Value
| Type | Description |
|---|---|
| AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()