Class AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest
Assigns a targeting option to an ad group. Returns the assigned targeting option if successful.
Only ad groups under a line item of line_item_type LINE_ITEM_TYPE_DEMAND_GEN are supported for
this method.
Inheritance
AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest : DisplayVideoBaseServiceRequest<AssignedTargetingOption>, IClientServiceRequest<AssignedTargetingOption>, IClientServiceRequest
Constructors
CreateRequest(IClientService, AssignedTargetingOption, long, long, TargetingTypeEnum)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, AssignedTargetingOption body, long advertiserId, long adGroupId, AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum targetingType)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AssignedTargetingOption | body | |
| long | advertiserId | |
| long | adGroupId | |
| AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum | targetingType |
Properties
AdGroupId
Required. The ID of the ad group the assigned targeting option will belong to.
Declaration
[RequestParameter("adGroupId", RequestParameterType.Path)]
public virtual long AdGroupId { get; }
Property Value
| Type | Description |
|---|---|
| long |
AdvertiserId
Required. The ID of the advertiser the ad group 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
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
TargetingType
Required. Identifies the type of this assigned targeting option. Supported targeting types:
TARGETING_TYPE_AGE_RANGE*TARGETING_TYPE_APP*TARGETING_TYPE_APP_CATEGORY*TARGETING_TYPE_AUDIENCE_GROUP*TARGETING_TYPE_CATEGORY*TARGETING_TYPE_GENDER*TARGETING_TYPE_GEO_REGION*TARGETING_TYPE_HOUSEHOLD_INCOME*TARGETING_TYPE_KEYWORD*TARGETING_TYPE_LANGUAGE*TARGETING_TYPE_PARENTAL_STATUS*TARGETING_TYPE_REGIONAL_LOCATION_LIST*TARGETING_TYPE_URL*TARGETING_TYPE_YOUTUBE_CHANNEL*TARGETING_TYPE_YOUTUBE_VIDEO
Declaration
[RequestParameter("targetingType", RequestParameterType.Path)]
public virtual AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum TargetingType { get; }
Property Value
| Type | Description |
|---|---|
| AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest.TargetingTypeEnum |
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()