Show / Hide Table of Contents

Class AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest

Assigns a targeting option to an ad group. Returns the assigned targeting option if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently in beta. This method is only available to allowlisted users.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<AssignedTargetingOption>
DisplayVideoBaseServiceRequest<AssignedTargetingOption>
AdvertisersResource.AdGroupsResource.TargetingTypesResource.AssignedTargetingOptionsResource.CreateRequest
Implements
IClientServiceRequest<AssignedTargetingOption>
IClientServiceRequest
Inherited Members
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.Xgafv
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.AccessToken
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.Alt
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.Callback
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.Fields
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.Key
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.OauthToken
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.PrettyPrint
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.QuotaUser
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.UploadType
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.UploadProtocol
ClientServiceRequest<AssignedTargetingOption>.Execute()
ClientServiceRequest<AssignedTargetingOption>.ExecuteAsStream()
ClientServiceRequest<AssignedTargetingOption>.ExecuteAsync()
ClientServiceRequest<AssignedTargetingOption>.ExecuteAsync(CancellationToken)
ClientServiceRequest<AssignedTargetingOption>.ExecuteAsStreamAsync()
ClientServiceRequest<AssignedTargetingOption>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<AssignedTargetingOption>.CreateRequest(bool?)
ClientServiceRequest<AssignedTargetingOption>.GenerateRequestUri()
ClientServiceRequest<AssignedTargetingOption>.GetDefaultETagAction(string)
ClientServiceRequest<AssignedTargetingOption>.ETagAction
ClientServiceRequest<AssignedTargetingOption>.ModifyRequest
ClientServiceRequest<AssignedTargetingOption>.ValidateParameters
ClientServiceRequest<AssignedTargetingOption>.ApiVersion
ClientServiceRequest<AssignedTargetingOption>.RequestParameters
ClientServiceRequest<AssignedTargetingOption>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<AssignedTargetingOption>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<AssignedTargetingOption>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<AssignedTargetingOption>.RestPath

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
ClientServiceRequest<AssignedTargetingOption>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
DisplayVideoBaseServiceRequest<AssignedTargetingOption>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX