Class AdvertisersResource.LineItemsResource.DeleteRequest
Deletes a line item. Returns error code NOT_FOUND
if the line item does not exist. The line item
should be archived first, i.e. set entity_status to ENTITY_STATUS_ARCHIVED
, to be able to delete it.
YouTube & Partners line items cannot be created or updated using the API.
Inheritance
AdvertisersResource.LineItemsResource.DeleteRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v3
Assembly: Google.Apis.DisplayVideo.v3.dll
Syntax
public class AdvertisersResource.LineItemsResource.DeleteRequest : DisplayVideoBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, long, long)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, long advertiserId, long lineItemId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
long | advertiserId | |
long | lineItemId |
Properties
AdvertiserId
The ID of the advertiser this line item 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 the line item to delete.
Declaration
[RequestParameter("lineItemId", RequestParameterType.Path)]
public virtual long LineItemId { get; }
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
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()