Class CampaignsResource
The "campaigns" collection of methods.
Inheritance
System.Object
CampaignsResource
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.Dfareporting.v3_4
Assembly: Google.Apis.Dfareporting.v3_4.dll
Syntax
public class CampaignsResource
Constructors
CampaignsResource(IClientService)
Constructs a new resource.
Declaration
public CampaignsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Get(Int64, Int64)
Gets one campaign by ID.
Declaration
public virtual CampaignsResource.GetRequest Get(long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | profileId | User profile ID associated with this request. |
System.Int64 | id | Campaign ID. |
Returns
Type | Description |
---|---|
CampaignsResource.GetRequest |
Insert(Campaign, Int64)
Inserts a new campaign.
Declaration
public virtual CampaignsResource.InsertRequest Insert(Campaign body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
Campaign | body | The body of the request. |
System.Int64 | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
CampaignsResource.InsertRequest |
List(Int64)
Retrieves a list of campaigns, possibly filtered. This method supports paging.
Declaration
public virtual CampaignsResource.ListRequest List(long profileId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
CampaignsResource.ListRequest |
Patch(Campaign, Int64, Int64)
Updates an existing campaign. This method supports patch semantics.
Declaration
public virtual CampaignsResource.PatchRequest Patch(Campaign body, long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
Campaign | body | The body of the request. |
System.Int64 | profileId | User profile ID associated with this request. |
System.Int64 | id | Campaign ID. |
Returns
Type | Description |
---|---|
CampaignsResource.PatchRequest |
Update(Campaign, Int64)
Updates an existing campaign.
Declaration
public virtual CampaignsResource.UpdateRequest Update(Campaign body, long profileId)
Parameters
Type | Name | Description |
---|---|---|
Campaign | body | The body of the request. |
System.Int64 | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
CampaignsResource.UpdateRequest |