Show / Hide Table of Contents

Class AdvertisersResource.CampaignsResource.PatchRequest

Updates an existing campaign. Returns the updated campaign if successful.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<Campaign>
DisplayVideoBaseServiceRequest<Campaign>
AdvertisersResource.CampaignsResource.PatchRequest
Implements
Google.Apis.Requests.IClientServiceRequest<Campaign>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
DisplayVideoBaseServiceRequest<Campaign>.Xgafv
DisplayVideoBaseServiceRequest<Campaign>.AccessToken
DisplayVideoBaseServiceRequest<Campaign>.Alt
DisplayVideoBaseServiceRequest<Campaign>.Callback
DisplayVideoBaseServiceRequest<Campaign>.Fields
DisplayVideoBaseServiceRequest<Campaign>.Key
DisplayVideoBaseServiceRequest<Campaign>.OauthToken
DisplayVideoBaseServiceRequest<Campaign>.PrettyPrint
DisplayVideoBaseServiceRequest<Campaign>.QuotaUser
DisplayVideoBaseServiceRequest<Campaign>.UploadType
DisplayVideoBaseServiceRequest<Campaign>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
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 PatchRequest : DisplayVideoBaseServiceRequest<Campaign>, IClientServiceRequest<Campaign>, IClientServiceRequest

Constructors

PatchRequest(IClientService, Campaign, Int64, Int64)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, Campaign body, long advertiserId, long campaignId)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
Campaign body
System.Int64 advertiserId
System.Int64 campaignId

Properties

AdvertiserId

Output only. The unique ID of the advertiser the campaign belongs to.

Declaration
[RequestParameter("advertiserId", RequestParameterType.Path)]
public virtual long AdvertiserId { get; }
Property Value
Type Description
System.Int64

CampaignId

Output only. The unique ID of the campaign. Assigned by the system.

Declaration
[RequestParameter("campaignId", RequestParameterType.Path)]
public virtual long CampaignId { 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.Campaign>.HttpMethod

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.Campaign>.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.Campaign>.RestPath

UpdateMask

Required. The mask to control which fields to update.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
System.Object

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

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.DisplayVideo.v1.DisplayVideoBaseServiceRequest<Google.Apis.DisplayVideo.v1.Data.Campaign>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top