Class SitesResource
The "sites" collection of methods.
Inherited Members
Namespace: Google.Apis.Dfareporting.v4
Assembly: Google.Apis.Dfareporting.v4.dll
Syntax
public class SitesResource
Constructors
SitesResource(IClientService)
Constructs a new resource.
Declaration
public SitesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(long, long)
Gets one site by ID.
Declaration
public virtual SitesResource.GetRequest Get(long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
long | id | Site ID. |
Returns
Type | Description |
---|---|
SitesResource.GetRequest |
Insert(Site, long)
Inserts a new site.
Declaration
public virtual SitesResource.InsertRequest Insert(Site body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
Site | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
SitesResource.InsertRequest |
List(long)
Retrieves a list of sites, possibly filtered. This method supports paging.
Declaration
public virtual SitesResource.ListRequest List(long profileId)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
SitesResource.ListRequest |
Patch(Site, long, long)
Updates an existing site. This method supports patch semantics.
Declaration
public virtual SitesResource.PatchRequest Patch(Site body, long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
Site | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
long | id | Required. Site ID. |
Returns
Type | Description |
---|---|
SitesResource.PatchRequest |
Update(Site, long)
Updates an existing site.
Declaration
public virtual SitesResource.UpdateRequest Update(Site body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
Site | body | The body of the request. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
SitesResource.UpdateRequest |