Show / Hide Table of Contents

Class AdunitsResource

The "adunits" collection of methods.

Inheritance
System.Object
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.v1_4
Assembly: Google.Apis.AdSense.v1_4.dll
Syntax
public class AdunitsResource

Constructors

AdunitsResource(IClientService)

Constructs a new resource.

Declaration
public AdunitsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Properties

Customchannels

Gets the Customchannels resource.

Declaration
public virtual AdunitsResource.CustomchannelsResource Customchannels { get; }
Property Value
Type Description
AdunitsResource.CustomchannelsResource

Methods

Get(String, String)

Gets the specified ad unit in the specified ad client.

Declaration
public virtual AdunitsResource.GetRequest Get(string adClientId, string adUnitId)
Parameters
Type Name Description
System.String adClientId

Ad client for which to get the ad unit.

System.String adUnitId

Ad unit to retrieve.

Returns
Type Description
AdunitsResource.GetRequest

GetAdCode(String, String)

Get ad code for the specified ad unit.

Declaration
public virtual AdunitsResource.GetAdCodeRequest GetAdCode(string adClientId, string adUnitId)
Parameters
Type Name Description
System.String adClientId

Ad client with contains the ad unit.

System.String adUnitId

Ad unit to get the code for.

Returns
Type Description
AdunitsResource.GetAdCodeRequest

List(String)

List all ad units in the specified ad client for this AdSense account.

Declaration
public virtual AdunitsResource.ListRequest List(string adClientId)
Parameters
Type Name Description
System.String adClientId

Ad client for which to list ad units.

Returns
Type Description
AdunitsResource.ListRequest
In This Article
Back to top