target.apidocs.com.google.api.services.adsense.v2.Adsense.Accounts.Sites.html Maven / Gradle / Ivy
The newest version!
Adsense.Accounts.Sites (AdSense Management API v2-rev20241211-2.0.0)
com.google.api.services.adsense.v2
Class Adsense.Accounts.Sites
- java.lang.Object
-
- com.google.api.services.adsense.v2.Adsense.Accounts.Sites
-
- Enclosing class:
- Adsense.Accounts
public class Adsense.Accounts.Sites
extends Object
The "sites" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Adsense.Accounts.Sites.Get
class
Adsense.Accounts.Sites.List
-
Constructor Summary
Constructors
Constructor and Description
Sites()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Adsense.Accounts.Sites.Get
get(String name)
Gets information about the selected site.
Adsense.Accounts.Sites.List
list(String parent)
Lists all the sites available in an account.
-
-
Method Detail
-
get
public Adsense.Accounts.Sites.Get get(String name)
throws IOException
Gets information about the selected site.
Create a request for the method "sites.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. Name of the site. Format: accounts/{account}/sites/{site}
- Returns:
- the request
- Throws:
IOException
-
list
public Adsense.Accounts.Sites.List list(String parent)
throws IOException
Lists all the sites available in an account.
Create a request for the method "sites.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 sites. Format: accounts/{account}
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy