Class PartnersResource.ChannelsResource.SitesResource
The "sites" collection of methods.
Inherited Members
Namespace: Google.Apis.DisplayVideo.v2
Assembly: Google.Apis.DisplayVideo.v2.dll
Syntax
public class PartnersResource.ChannelsResource.SitesResource
Constructors
SitesResource(IClientService)
Constructs a new resource.
Declaration
public SitesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
BulkEdit(BulkEditSitesRequest, long, long)
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 PartnersResource.ChannelsResource.SitesResource.BulkEditRequest BulkEdit(BulkEditSitesRequest body, long partnerId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
BulkEditSitesRequest | body | The body of the request. |
long | partnerId | The ID of the partner that owns the parent channel. |
long | channelId | Required. The ID of the parent channel to which the sites belong. |
Returns
Type | Description |
---|---|
PartnersResource.ChannelsResource.SitesResource.BulkEditRequest |
Create(Site, long, long)
Creates a site in a channel.
Declaration
public virtual PartnersResource.ChannelsResource.SitesResource.CreateRequest Create(Site body, long partnerId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
Site | body | The body of the request. |
long | partnerId | The ID of the partner that owns the parent channel. |
long | channelId | Required. The ID of the parent channel in which the site will be created. |
Returns
Type | Description |
---|---|
PartnersResource.ChannelsResource.SitesResource.CreateRequest |
Delete(long, long, string)
Deletes a site from a channel.
Declaration
public virtual PartnersResource.ChannelsResource.SitesResource.DeleteRequest Delete(long partnerId, long channelId, string urlOrAppId)
Parameters
Type | Name | Description |
---|---|---|
long | partnerId | The ID of the partner that owns the parent channel. |
long | channelId | Required. The ID of the parent channel to which the site belongs. |
string | urlOrAppId | Required. The URL or app ID of the site to delete. |
Returns
Type | Description |
---|---|
PartnersResource.ChannelsResource.SitesResource.DeleteRequest |
List(long, long)
Lists sites in a channel.
Declaration
public virtual PartnersResource.ChannelsResource.SitesResource.ListRequest List(long partnerId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
long | partnerId | The ID of the partner that owns the parent channel. |
long | channelId | Required. The ID of the parent channel to which the requested sites belong. |
Returns
Type | Description |
---|---|
PartnersResource.ChannelsResource.SitesResource.ListRequest |
Replace(ReplaceSitesRequest, long, long)
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. This method regularly experiences high latency. We recommend increasing your default timeout to avoid errors.
Declaration
public virtual PartnersResource.ChannelsResource.SitesResource.ReplaceRequest Replace(ReplaceSitesRequest body, long partnerId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
ReplaceSitesRequest | body | The body of the request. |
long | partnerId | The ID of the partner that owns the parent channel. |
long | channelId | Required. The ID of the parent channel whose sites will be replaced. |
Returns
Type | Description |
---|---|
PartnersResource.ChannelsResource.SitesResource.ReplaceRequest |