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