Class AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest
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: * BulkEditAssignedTargetingOptions * BulkUpdate * UpdateLineItem * DeleteLineItemAssignedTargetingOption
Inheritance
System.Object
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class CreateRequest : DisplayVideoBaseServiceRequest<AssignedTargetingOption>, IClientServiceRequest<AssignedTargetingOption>, IClientServiceRequest
Constructors
CreateRequest(IClientService, AssignedTargetingOption, Int64, Int64, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, AssignedTargetingOption body, long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum targetingType)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AssignedTargetingOption | body | |
System.Int64 | advertiserId | |
System.Int64 | lineItemId | |
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum | targetingType |
Properties
AdvertiserId
Required. The ID of the advertiser the line item belongs to.
Declaration
[RequestParameter("advertiserId", RequestParameterType.Path)]
public virtual long AdvertiserId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.AssignedTargetingOption>.HttpMethod
LineItemId
Required. The ID of the line item the assigned targeting option will belong to.
Declaration
[RequestParameter("lineItemId", RequestParameterType.Path)]
public virtual long LineItemId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.AssignedTargetingOption>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.AssignedTargetingOption>.RestPath
TargetingType
Required. Identifies the type of this assigned targeting option.
Declaration
[RequestParameter("targetingType", RequestParameterType.Path)]
public virtual AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum TargetingType { get; }
Property Value
Type | Description |
---|---|
AdvertisersResource.LineItemsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.AssignedTargetingOption>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.DisplayVideo.v1.DisplayVideoBaseServiceRequest<Google.Apis.DisplayVideo.v1.Data.AssignedTargetingOption>.InitParameters()