Show / Hide Table of Contents

Class AdvertisersResource.AdAssetsResource

The "adAssets" collection of methods.

Inheritance
object
AdvertisersResource.AdAssetsResource
Inherited Members
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.AdAssetsResource

Constructors

AdAssetsResource(IClientService)

Constructs a new resource.

Declaration
public AdAssetsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

BulkCreate(BulkCreateAdAssetsRequest, long)

Creates multiple ad assets in a single request. Returns the newly-created ad assets if successful. Only supports the creation of assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO.

Declaration
public virtual AdvertisersResource.AdAssetsResource.BulkCreateRequest BulkCreate(BulkCreateAdAssetsRequest body, long advertiserId)
Parameters
Type Name Description
BulkCreateAdAssetsRequest body

The body of the request.

long advertiserId

Required. The ID of the advertiser these ad assets belong to.

Returns
Type Description
AdvertisersResource.AdAssetsResource.BulkCreateRequest

Create(CreateAdAssetRequest, long)

Creates an ad asset. Returns the newly-created ad asset if successful. Only supports the creation of assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO.

Declaration
public virtual AdvertisersResource.AdAssetsResource.CreateRequest Create(CreateAdAssetRequest body, long advertiserId)
Parameters
Type Name Description
CreateAdAssetRequest body

The body of the request.

long advertiserId

Required. The ID of the advertiser this ad asset belongs to.

Returns
Type Description
AdvertisersResource.AdAssetsResource.CreateRequest

Get(long, long)

Gets an ad asset. Only supports the retrieval of assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO.

Declaration
public virtual AdvertisersResource.AdAssetsResource.GetRequest Get(long advertiserId, long adAssetId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser this ad asset belongs to.

long adAssetId

Required. The ID of the ad asset to fetch. Only supports assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO

Returns
Type Description
AdvertisersResource.AdAssetsResource.GetRequest

List(long)

Lists ad assets under an advertiser ID. Only supports the retrieval of assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO.

Declaration
public virtual AdvertisersResource.AdAssetsResource.ListRequest List(long advertiserId)
Parameters
Type Name Description
long advertiserId

Required. The ID of the advertiser the ad assets belong to.

Returns
Type Description
AdvertisersResource.AdAssetsResource.ListRequest

Upload(UploadAdAssetRequest, long)

Uploads and creates an ad asset. Returns the ID of the newly-created ad asset if successful. Only supports the uploading of assets with the AdAssetType AD_ASSET_TYPE_IMAGE.

Declaration
public virtual AdvertisersResource.AdAssetsResource.UploadRequest Upload(UploadAdAssetRequest body, long advertiserId)
Parameters
Type Name Description
UploadAdAssetRequest body

The body of the request.

long advertiserId

Required. The ID of the advertiser this ad asset belongs to.

Returns
Type Description
AdvertisersResource.AdAssetsResource.UploadRequest

Upload(UploadAdAssetRequest, long, Stream, string)

Uploads and creates an ad asset. Returns the ID of the newly-created ad asset if successful. Only supports the uploading of assets with the AdAssetType AD_ASSET_TYPE_IMAGE.

Declaration
public virtual AdvertisersResource.AdAssetsResource.UploadMediaUpload Upload(UploadAdAssetRequest body, long advertiserId, Stream stream, string contentType)
Parameters
Type Name Description
UploadAdAssetRequest body

The body of the request.

long advertiserId

Required. The ID of the advertiser this ad asset belongs to.

Stream stream

The stream to upload. See remarks for further information.

string contentType

The content type of the stream to upload.

Returns
Type Description
AdvertisersResource.AdAssetsResource.UploadMediaUpload
Remarks

Considerations regarding stream:

  • If stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position
  • Caller is responsible for maintaining the stream open until the upload is completed
  • Caller is responsible for closing the stream
In this article
Back to top Generated by DocFX