Class AccountsResource.AdunitsResource
The "adunits" collection of methods.
Inherited Members
Namespace: Google.Apis.AdSenseHost.v4_1
Assembly: Google.Apis.AdSenseHost.v4_1.dll
Syntax
public class AccountsResource.AdunitsResource
Constructors
AdunitsResource(IClientService)
Constructs a new resource.
Declaration
public AdunitsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string, string)
Delete the specified ad unit from the specified publisher AdSense account.
Declaration
public virtual AccountsResource.AdunitsResource.DeleteRequest Delete(string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | Account which contains the ad unit. |
string | adClientId | Ad client for which to get ad unit. |
string | adUnitId | Ad unit to delete. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.DeleteRequest |
Get(string, string, string)
Get the specified host ad unit in this AdSense account.
Declaration
public virtual AccountsResource.AdunitsResource.GetRequest Get(string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | Account which contains the ad unit. |
string | adClientId | Ad client for which to get ad unit. |
string | adUnitId | Ad unit to get. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.GetRequest |
GetAdCode(string, string, string)
Get ad code for the specified ad unit, attaching the specified host custom channels.
Declaration
public virtual AccountsResource.AdunitsResource.GetAdCodeRequest GetAdCode(string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | Account which contains the ad client. |
string | adClientId | Ad client with contains the ad unit. |
string | adUnitId | Ad unit to get the code for. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.GetAdCodeRequest |
Insert(AdUnit, string, string)
Insert the supplied ad unit into the specified publisher AdSense account.
Declaration
public virtual AccountsResource.AdunitsResource.InsertRequest Insert(AdUnit body, string accountId, string adClientId)
Parameters
Type | Name | Description |
---|---|---|
AdUnit | body | The body of the request. |
string | accountId | Account which will contain the ad unit. |
string | adClientId | Ad client into which to insert the ad unit. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.InsertRequest |
List(string, string)
List all ad units in the specified publisher's AdSense account.
Declaration
public virtual AccountsResource.AdunitsResource.ListRequest List(string accountId, string adClientId)
Parameters
Type | Name | Description |
---|---|---|
string | accountId | Account which contains the ad client. |
string | adClientId | Ad client for which to list ad units. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.ListRequest |
Patch(AdUnit, string, string, string)
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
Declaration
public virtual AccountsResource.AdunitsResource.PatchRequest Patch(AdUnit body, string accountId, string adClientId, string adUnitId)
Parameters
Type | Name | Description |
---|---|---|
AdUnit | body | The body of the request. |
string | accountId | Account which contains the ad client. |
string | adClientId | Ad client which contains the ad unit. |
string | adUnitId | Ad unit to get. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.PatchRequest |
Update(AdUnit, string, string)
Update the supplied ad unit in the specified publisher AdSense account.
Declaration
public virtual AccountsResource.AdunitsResource.UpdateRequest Update(AdUnit body, string accountId, string adClientId)
Parameters
Type | Name | Description |
---|---|---|
AdUnit | body | The body of the request. |
string | accountId | Account which contains the ad client. |
string | adClientId | Ad client which contains the ad unit. |
Returns
Type | Description |
---|---|
AccountsResource.AdunitsResource.UpdateRequest |