Class AdvertisersResource.ChannelsResource.SitesResource
The "sites" collection of methods.
Inherited Members
Namespace: Google.Apis.DisplayVideo.v3
Assembly: Google.Apis.DisplayVideo.v3.dll
Syntax
public class AdvertisersResource.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 AdvertisersResource.ChannelsResource.SitesResource.BulkEditRequest BulkEdit(BulkEditSitesRequest body, long advertiserId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
BulkEditSitesRequest | body | The body of the request. |
long | advertiserId | The ID of the advertiser that owns the parent channel. |
long | channelId | Required. The ID of the parent channel to which the sites belong. |
Returns
Type | Description |
---|---|
AdvertisersResource.ChannelsResource.SitesResource.BulkEditRequest |
Create(Site, long, long)
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. |
long | advertiserId | The ID of the advertiser that owns the parent channel. |
long | channelId | Required. The ID of the parent channel in which the site will be created. |
Returns
Type | Description |
---|---|
AdvertisersResource.ChannelsResource.SitesResource.CreateRequest |
Delete(long, long, 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 |
---|---|---|
long | advertiserId | The ID of the advertiser 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 |
---|---|
AdvertisersResource.ChannelsResource.SitesResource.DeleteRequest |
List(long, long)
Lists sites in a channel.
Declaration
public virtual AdvertisersResource.ChannelsResource.SitesResource.ListRequest List(long advertiserId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
long | advertiserId | The ID of the advertiser that owns the parent channel. |
long | channelId | Required. The ID of the parent channel to which the requested sites belong. |
Returns
Type | Description |
---|---|
AdvertisersResource.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 AdvertisersResource.ChannelsResource.SitesResource.ReplaceRequest Replace(ReplaceSitesRequest body, long advertiserId, long channelId)
Parameters
Type | Name | Description |
---|---|---|
ReplaceSitesRequest | body | The body of the request. |
long | advertiserId | The ID of the advertiser that owns the parent channel. |
long | channelId | Required. The ID of the parent channel whose sites will be replaced. |
Returns
Type | Description |
---|---|
AdvertisersResource.ChannelsResource.SitesResource.ReplaceRequest |