Show / Hide Table of Contents

Class AdvertisersResource.ChannelsResource.SitesResource

The "sites" collection of methods.

Inheritance
System.Object
AdvertisersResource.ChannelsResource.SitesResource
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 SitesResource

Constructors

SitesResource(IClientService)

Constructs a new resource.

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

Methods

BulkEdit(BulkEditSitesRequest, Int64, Int64)

Bulk edits sites under a single channel. The operation will delete the sites provided in BulkEditSitesRequest.deleted_sites and then create the sites provided in BulkEditSitesRequest.created_sites.

Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.BulkEditRequest BulkEdit(BulkEditSitesRequest body, long advertiserId, long channelId)
Parameters
Type Name Description
BulkEditSitesRequest body

The body of the request.

System.Int64 advertiserId

The ID of the advertiser that owns the parent channel.

System.Int64 channelId

Required. The ID of the parent channel to which the sites belong.

Returns
Type Description
AdvertisersResource.ChannelsResource.SitesResource.BulkEditRequest

Create(Site, Int64, Int64)

Creates a site in a channel.

Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.CreateRequest Create(Site body, long advertiserId, long channelId)
Parameters
Type Name Description
Site body

The body of the request.

System.Int64 advertiserId

The ID of the advertiser that owns the parent channel.

System.Int64 channelId

Required. The ID of the parent channel in which the site will be created.

Returns
Type Description
AdvertisersResource.ChannelsResource.SitesResource.CreateRequest

Delete(Int64, Int64, String)

Deletes a site from a channel.

Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.DeleteRequest Delete(long advertiserId, long channelId, string urlOrAppId)
Parameters
Type Name Description
System.Int64 advertiserId

The ID of the advertiser that owns the parent channel.

System.Int64 channelId

Required. The ID of the parent channel to which the site belongs.

System.String urlOrAppId

Required. The URL or app ID of the site to delete.

Returns
Type Description
AdvertisersResource.ChannelsResource.SitesResource.DeleteRequest

List(Int64, Int64)

Lists sites in a channel.

Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.ListRequest List(long advertiserId, long channelId)
Parameters
Type Name Description
System.Int64 advertiserId

The ID of the advertiser that owns the parent channel.

System.Int64 channelId

Required. The ID of the parent channel to which the requested sites belong.

Returns
Type Description
AdvertisersResource.ChannelsResource.SitesResource.ListRequest

Replace(ReplaceSitesRequest, Int64, Int64)

Replaces all of the sites under a single channel. The operation will replace the sites under a channel with the sites provided in ReplaceSitesRequest.new_sites.

Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.ReplaceRequest Replace(ReplaceSitesRequest body, long advertiserId, long channelId)
Parameters
Type Name Description
ReplaceSitesRequest body

The body of the request.

System.Int64 advertiserId

The ID of the advertiser that owns the parent channel.

System.Int64 channelId

Required. The ID of the parent channel whose sites will be replaced.

Returns
Type Description
AdvertisersResource.ChannelsResource.SitesResource.ReplaceRequest
In This Article
Back to top Generated by DocFX