Class AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource
The "assignedTargetingOptions" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.DisplayVideo.v3
Assembly: Google.Apis.DisplayVideo.v3.dll
Syntax
public class AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource
Constructors
AssignedTargetingOptionsResource(IClientService)
Constructs a new resource.
Declaration
public AssignedTargetingOptionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(AssignedTargetingOption, long, long, TargetingTypeEnum)
Assigns a targeting option to a line item. Returns the assigned targeting option if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * lineItems.patch * DeleteLineItemAssignedTargetingOption YouTube & Partners line items cannot be created or updated using the API.
Declaration
public virtual AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest Create(AssignedTargetingOption body, long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum targetingType)
Parameters
Type | Name | Description |
---|---|---|
AssignedTargetingOption | body | The body of the request. |
long | advertiserId | Required. The ID of the advertiser the line item belongs to. |
long | lineItemId | Required. The ID of the line item the assigned targeting option will belong to. |
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum | targetingType | Required. Identifies the type of this assigned targeting option. Supported targeting types
include: *
|
Returns
Type | Description |
---|---|
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest |
Delete(long, long, TargetingTypeEnum, string)
Deletes an assigned targeting option from a line item. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * lineItems.patch * CreateLineItemAssignedTargetingOption YouTube & Partners line items cannot be created or updated using the API.
Declaration
public virtual AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.DeleteRequest Delete(long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.DeleteRequest.TargetingTypeEnum targetingType, string assignedTargetingOptionId)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | Required. The ID of the advertiser the line item belongs to. |
long | lineItemId | Required. The ID of the line item the assigned targeting option belongs to. |
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.DeleteRequest.TargetingTypeEnum | targetingType | Required. Identifies the type of this assigned targeting option. Supported targeting types
include: *
|
string | assignedTargetingOptionId | Required. The ID of the assigned targeting option to delete. |
Returns
Type | Description |
---|---|
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.DeleteRequest |
Get(long, long, TargetingTypeEnum, string)
Gets a single targeting option assigned to a line item.
Declaration
public virtual AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.GetRequest Get(long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.GetRequest.TargetingTypeEnum targetingType, string assignedTargetingOptionId)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | Required. The ID of the advertiser the line item belongs to. |
long | lineItemId | Required. The ID of the line item the assigned targeting option belongs to. |
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.GetRequest.TargetingTypeEnum | targetingType | Required. Identifies the type of this assigned targeting option. Supported targeting types
include: *
|
string | assignedTargetingOptionId | Required. An identifier unique to the targeting type in this line item that identifies the assigned targeting option being requested. |
Returns
Type | Description |
---|---|
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.GetRequest |
List(long, long, TargetingTypeEnum)
Lists the targeting options assigned to a line item.
Declaration
public virtual AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.ListRequest List(long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.ListRequest.TargetingTypeEnum targetingType)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | Required. The ID of the advertiser the line item belongs to. |
long | lineItemId | Required. The ID of the line item to list assigned targeting options for. |
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.ListRequest.TargetingTypeEnum | targetingType | Required. Identifies the type of assigned targeting options to list. Supported targeting types
include: *
|
Returns
Type | Description |
---|---|
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.ListRequest |