target.apidocs.com.google.api.services.adsense.v2.Adsense.Accounts.Adclients.html Maven / Gradle / Ivy
The newest version!
Adsense.Accounts.Adclients (AdSense Management API v2-rev20241211-2.0.0)
com.google.api.services.adsense.v2
Class Adsense.Accounts.Adclients
- java.lang.Object
-
- com.google.api.services.adsense.v2.Adsense.Accounts.Adclients
-
- Enclosing class:
- Adsense.Accounts
public class Adsense.Accounts.Adclients
extends Object
The "adclients" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Adsense.Accounts.Adclients.Adunits
The "adunits" collection of methods.
class
Adsense.Accounts.Adclients.Customchannels
The "customchannels" collection of methods.
class
Adsense.Accounts.Adclients.Get
class
Adsense.Accounts.Adclients.GetAdcode
class
Adsense.Accounts.Adclients.List
class
Adsense.Accounts.Adclients.Urlchannels
The "urlchannels" collection of methods.
-
Constructor Summary
Constructors
Constructor and Description
Adclients()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Adsense.Accounts.Adclients.Adunits
adunits()
An accessor for creating requests from the Adunits collection.
Adsense.Accounts.Adclients.Customchannels
customchannels()
An accessor for creating requests from the Customchannels collection.
Adsense.Accounts.Adclients.Get
get(String name)
Gets the ad client from the given resource name.
Adsense.Accounts.Adclients.GetAdcode
getAdcode(String name)
Gets the AdSense code for a given ad client.
Adsense.Accounts.Adclients.List
list(String parent)
Lists all the ad clients available in an account.
Adsense.Accounts.Adclients.Urlchannels
urlchannels()
An accessor for creating requests from the Urlchannels collection.
-
-
Method Detail
-
get
public Adsense.Accounts.Adclients.Get get(String name)
throws IOException
Gets the ad client from the given resource name.
Create a request for the method "adclients.get".
This request holds the parameters needed by the adsense server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the ad client to retrieve. Format: accounts/{account}/adclients/{adclient}
- Returns:
- the request
- Throws:
IOException
-
getAdcode
public Adsense.Accounts.Adclients.GetAdcode getAdcode(String name)
throws IOException
Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto
ad code'. This is only supported for ad clients with a product_code of AFC. For more information,
see [About the AdSense code](https://support.google.com/adsense/answer/9274634).
Create a request for the method "adclients.getAdcode".
This request holds the parameters needed by the adsense server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the ad client for which to get the adcode. Format:
accounts/{account}/adclients/{adclient}
- Returns:
- the request
- Throws:
IOException
-
list
public Adsense.Accounts.Adclients.List list(String parent)
throws IOException
Lists all the ad clients available in an account.
Create a request for the method "adclients.list".
This request holds the parameters needed by the adsense server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The account which owns the collection of ad clients. Format: accounts/{account}
- Returns:
- the request
- Throws:
IOException
-
adunits
public Adsense.Accounts.Adclients.Adunits adunits()
An accessor for creating requests from the Adunits collection.
The typical use is:
Adsense adsense = new Adsense(...);
Adsense.Adunits.List request = adsense.adunits().list(parameters ...)
- Returns:
- the resource collection
-
customchannels
public Adsense.Accounts.Adclients.Customchannels customchannels()
An accessor for creating requests from the Customchannels collection.
The typical use is:
Adsense adsense = new Adsense(...);
Adsense.Customchannels.List request = adsense.customchannels().list(parameters ...)
- Returns:
- the resource collection
-
urlchannels
public Adsense.Accounts.Adclients.Urlchannels urlchannels()
An accessor for creating requests from the Urlchannels collection.
The typical use is:
Adsense adsense = new Adsense(...);
Adsense.Urlchannels.List request = adsense.urlchannels().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy