Class AdvertisersResource.AdAssetsResource.PatchRequest
Updates an ad asset. Returns the updated ad asset if successful. Supports updating assets of AdAssetType
AD_ASSET_TYPE_YOUTUBE_VIDEO and AD_ASSET_TYPE_IMAGE. Only the synthetic_content_attestation_status
field is mutable.
Inheritance
AdvertisersResource.AdAssetsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class AdvertisersResource.AdAssetsResource.PatchRequest : DisplayVideoBaseServiceRequest<AdAsset>, IClientServiceRequest<AdAsset>, IClientServiceRequest
Constructors
PatchRequest(IClientService, AdAsset, long, long)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, AdAsset body, long advertiserId, long adAssetId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AdAsset | body | |
| long | advertiserId | |
| long | adAssetId |
Properties
AdAssetId
Output only. The ID of the ad asset. Referred to as the asset ID when assigned to an ad.
Declaration
[RequestParameter("adAssetId", RequestParameterType.Path)]
public virtual long AdAssetId { get; }
Property Value
| Type | Description |
|---|---|
| long |
AdvertiserId
Required. The ID of the advertiser this ad asset 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
UpdateMask
Required. The list of fields to update. Only AdAsset.synthetic_content_attestation_status is mutable.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()