Class AccountsResource.AdclientsResource.AdunitsResource
The "adunits" collection of methods.
Inheritance
System.Object
AccountsResource.AdclientsResource.AdunitsResource
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.Adsense.v2
Assembly: Google.Apis.Adsense.v2.dll
Syntax
public class AdunitsResource
Constructors
AdunitsResource(IClientService)
Constructs a new resource.
Declaration
public AdunitsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(String)
Gets an ad unit from a specified account and ad client.
Declaration
public virtual AccountsResource.AdclientsResource.AdunitsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Required. AdUnit to get information about. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} |
Returns
Type | Description |
---|---|
AccountsResource.AdclientsResource.AdunitsResource.GetRequest |
GetAdcode(String)
Gets the AdSense code for a given ad unit.
Declaration
public virtual AccountsResource.AdclientsResource.AdunitsResource.GetAdcodeRequest GetAdcode(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Required. Name of the adunit for which to get the adcode. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} |
Returns
Type | Description |
---|---|
AccountsResource.AdclientsResource.AdunitsResource.GetAdcodeRequest |
List(String)
Lists all ad units under a specified account and ad client.
Declaration
public virtual AccountsResource.AdclientsResource.AdunitsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
System.String | parent | Required. The ad client which owns the collection of ad units. Format: accounts/{account}/adclients/{adclient} |
Returns
Type | Description |
---|---|
AccountsResource.AdclientsResource.AdunitsResource.ListRequest |
ListLinkedCustomChannels(String)
Lists all the custom channels available for an ad unit.
Declaration
public virtual AccountsResource.AdclientsResource.AdunitsResource.ListLinkedCustomChannelsRequest ListLinkedCustomChannels(string parent)
Parameters
Type | Name | Description |
---|---|---|
System.String | parent | Required. The ad unit which owns the collection of custom channels. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} |
Returns
Type | Description |
---|---|
AccountsResource.AdclientsResource.AdunitsResource.ListLinkedCustomChannelsRequest |