Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Generate an AdSense report based on the saved report ID sent in the query parameters.
See: AdSense Management API Reference for adsense.reports.saved.generate
.
Synopsis
- type ReportsSavedGenerateResource = "adsense" :> ("v1.4" :> ("reports" :> (Capture "savedReportId" Text :> (QueryParam "locale" Text :> (QueryParam "startIndex" (Textual Int32) :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdsenseReportsGenerateResponse)))))))
- reportsSavedGenerate :: Text -> ReportsSavedGenerate
- data ReportsSavedGenerate
- rsgLocale :: Lens' ReportsSavedGenerate (Maybe Text)
- rsgSavedReportId :: Lens' ReportsSavedGenerate Text
- rsgStartIndex :: Lens' ReportsSavedGenerate (Maybe Int32)
- rsgMaxResults :: Lens' ReportsSavedGenerate (Maybe Int32)
REST Resource
type ReportsSavedGenerateResource = "adsense" :> ("v1.4" :> ("reports" :> (Capture "savedReportId" Text :> (QueryParam "locale" Text :> (QueryParam "startIndex" (Textual Int32) :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdsenseReportsGenerateResponse))))))) Source #
A resource alias for adsense.reports.saved.generate
method which the
ReportsSavedGenerate
request conforms to.
Creating a Request
Creates a value of ReportsSavedGenerate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReportsSavedGenerate Source #
Generate an AdSense report based on the saved report ID sent in the query parameters.
See: reportsSavedGenerate
smart constructor.
Instances
Request Lenses
rsgLocale :: Lens' ReportsSavedGenerate (Maybe Text) Source #
Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
rsgSavedReportId :: Lens' ReportsSavedGenerate Text Source #
The saved report to retrieve.
rsgStartIndex :: Lens' ReportsSavedGenerate (Maybe Int32) Source #
Index of the first row of report data to return.
rsgMaxResults :: Lens' ReportsSavedGenerate (Maybe Int32) Source #
The maximum number of rows of report data to return.