Class AdsResource
The "ads" collection of methods.
Inherited Members
Namespace: Google.Apis.Dfareporting.v4
Assembly: Google.Apis.Dfareporting.v4.dll
Syntax
public class AdsResource
Constructors
AdsResource(IClientService)
Constructs a new resource.
Declaration
public AdsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(long, long)
Gets one ad by ID.
Declaration
public virtual AdsResource.GetRequest Get(long profileId, long id)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
long | id | Ad ID. |
Returns
Type | Description |
---|---|
AdsResource.GetRequest |
Insert(Ad, long)
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. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
AdsResource.InsertRequest |
List(long)
Retrieves a list of ads, possibly filtered. This method supports paging.
Declaration
public virtual AdsResource.ListRequest List(long profileId)
Parameters
Type | Name | Description |
---|---|---|
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
AdsResource.ListRequest |
Patch(Ad, long, long)
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. |
long | profileId | User profile ID associated with this request. |
long | id | Required. RemarketingList ID. |
Returns
Type | Description |
---|---|
AdsResource.PatchRequest |
Update(Ad, long)
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. |
long | profileId | User profile ID associated with this request. |
Returns
Type | Description |
---|---|
AdsResource.UpdateRequest |