Class AdvertisersResource.CreativesResource
The "creatives" collection of methods.
Inherited Members
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class AdvertisersResource.CreativesResource
Constructors
CreativesResource(IClientService)
Constructs a new resource.
Declaration
public CreativesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Creative, long)
Creates a new creative. Returns the newly created creative if successful. A "Standard" user role or greater for the parent advertiser or partner is required to make this request.
Declaration
public virtual AdvertisersResource.CreativesResource.CreateRequest Create(Creative body, long advertiserId)
Parameters
Type | Name | Description |
---|---|---|
Creative | body | The body of the request. |
long | advertiserId | Output only. The unique ID of the advertiser the creative belongs to. |
Returns
Type | Description |
---|---|
AdvertisersResource.CreativesResource.CreateRequest |
Delete(long, long)
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. A
"Standard" user role or greater for the parent
advertiser or partner is required to make this request.
Declaration
public virtual AdvertisersResource.CreativesResource.DeleteRequest Delete(long advertiserId, long creativeId)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | The ID of the advertiser this creative belongs to. |
long | creativeId | The ID of the creative to be deleted. |
Returns
Type | Description |
---|---|
AdvertisersResource.CreativesResource.DeleteRequest |
Get(long, long)
Gets a creative.
Declaration
public virtual AdvertisersResource.CreativesResource.GetRequest Get(long advertiserId, long creativeId)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | Required. The ID of the advertiser this creative belongs to. |
long | creativeId | Required. The ID of the creative to fetch. |
Returns
Type | Description |
---|---|
AdvertisersResource.CreativesResource.GetRequest |
List(long)
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 |
---|---|---|
long | advertiserId | Required. The ID of the advertiser to list creatives for. |
Returns
Type | Description |
---|---|
AdvertisersResource.CreativesResource.ListRequest |
Patch(Creative, long, long)
Updates an existing creative. Returns the updated creative if successful. A "Standard" user role or greater for the parent advertiser or partner is required to make this request.
Declaration
public virtual AdvertisersResource.CreativesResource.PatchRequest Patch(Creative body, long advertiserId, long creativeId)
Parameters
Type | Name | Description |
---|---|---|
Creative | body | The body of the request. |
long | advertiserId | Output only. The unique ID of the advertiser the creative belongs to. |
long | creativeId | Output only. The unique ID of the creative. Assigned by the system. |
Returns
Type | Description |
---|---|
AdvertisersResource.CreativesResource.PatchRequest |