
target.apidocs.com.google.api.services.adsensehost.AdSenseHost.Accounts.Reports.html Maven / Gradle / Ivy
AdSenseHost.Accounts.Reports (AdSense Host API v4.1-rev20200930-2.0.0)
com.google.api.services.adsensehost
Class AdSenseHost.Accounts.Reports
- java.lang.Object
-
- com.google.api.services.adsensehost.AdSenseHost.Accounts.Reports
-
- Enclosing class:
- AdSenseHost.Accounts
public class AdSenseHost.Accounts.Reports
extends Object
The "reports" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AdSenseHost.Accounts.Reports.Generate
-
Constructor Summary
Constructors
Constructor and Description
Reports()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AdSenseHost.Accounts.Reports.Generate
generate(String accountId,
String startDate,
String endDate)
Generate an AdSense report based on the report request sent in the query parameters.
-
-
Method Detail
-
generate
public AdSenseHost.Accounts.Reports.Generate generate(String accountId,
String startDate,
String endDate)
throws IOException
Generate an AdSense report based on the report request sent in the query parameters. Returns the
result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Create a request for the method "reports.generate".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Hosted account upon which to report.
startDate
- Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
endDate
- End of the date range to report on in "YYYY-MM-DD" format, inclusive.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy