Show / Hide Table of Contents

Class AdvertisersResource.CreativesResource

The "creatives" collection of methods.

Inheritance
System.Object
AdvertisersResource.CreativesResource
Inherited Members
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 CreativesResource

Constructors

CreativesResource(IClientService)

Constructs a new resource.

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

Methods

Create(Creative, Int64)

Creates a new creative. Returns the newly created creative if successful.

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

The body of the request.

System.Int64 advertiserId

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

Returns
Type Description
AdvertisersResource.CreativesResource.CreateRequest

Delete(Int64, Int64)

Deletes a creative. Returns error code NOT_FOUND if the creative does not exist. The creative should be archived first, i.e. set entity_status to ENTITY_STATUS_ARCHIVED, before it can be deleted.

Declaration
public virtual AdvertisersResource.CreativesResource.DeleteRequest Delete(long advertiserId, long creativeId)
Parameters
Type Name Description
System.Int64 advertiserId

The ID of the advertiser this creative belongs to.

System.Int64 creativeId

The ID of the creative to be deleted.

Returns
Type Description
AdvertisersResource.CreativesResource.DeleteRequest

Get(Int64, Int64)

Gets a creative.

Declaration
public virtual AdvertisersResource.CreativesResource.GetRequest Get(long advertiserId, long creativeId)
Parameters
Type Name Description
System.Int64 advertiserId

Required. The ID of the advertiser this creative belongs to.

System.Int64 creativeId

Required. The ID of the creative to fetch.

Returns
Type Description
AdvertisersResource.CreativesResource.GetRequest

List(Int64)

Lists creatives in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, creatives with ENTITY_STATUS_ARCHIVED will not be included in the results.

Declaration
public virtual AdvertisersResource.CreativesResource.ListRequest List(long advertiserId)
Parameters
Type Name Description
System.Int64 advertiserId

Required. The ID of the advertiser to list creatives for.

Returns
Type Description
AdvertisersResource.CreativesResource.ListRequest

Patch(Creative, Int64, Int64)

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

Declaration
public virtual AdvertisersResource.CreativesResource.PatchRequest Patch(Creative body, long advertiserId, long creativeId)
Parameters
Type Name Description
Creative body

The body of the request.

System.Int64 advertiserId

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

System.Int64 creativeId

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

Returns
Type Description
AdvertisersResource.CreativesResource.PatchRequest
In This Article
Back to top Generated by DocFX