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.accounts.reports.saved.generate
.
Synopsis
- type AccountsReportsSavedGenerateResource = "adsense" :> ("v1.4" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (Capture "savedReportId" Text :> (QueryParam "locale" Text :> (QueryParam "startIndex" (Textual Int32) :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdsenseReportsGenerateResponse)))))))))
- accountsReportsSavedGenerate :: Text -> Text -> AccountsReportsSavedGenerate
- data AccountsReportsSavedGenerate
- arsgLocale :: Lens' AccountsReportsSavedGenerate (Maybe Text)
- arsgSavedReportId :: Lens' AccountsReportsSavedGenerate Text
- arsgAccountId :: Lens' AccountsReportsSavedGenerate Text
- arsgStartIndex :: Lens' AccountsReportsSavedGenerate (Maybe Int32)
- arsgMaxResults :: Lens' AccountsReportsSavedGenerate (Maybe Int32)
REST Resource
type AccountsReportsSavedGenerateResource = "adsense" :> ("v1.4" :> ("accounts" :> (Capture "accountId" Text :> ("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.accounts.reports.saved.generate
method which the
AccountsReportsSavedGenerate
request conforms to.
Creating a Request
accountsReportsSavedGenerate Source #
Creates a value of AccountsReportsSavedGenerate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsReportsSavedGenerate Source #
Generate an AdSense report based on the saved report ID sent in the query parameters.
See: accountsReportsSavedGenerate
smart constructor.
Instances
Request Lenses
arsgLocale :: Lens' AccountsReportsSavedGenerate (Maybe Text) Source #
Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
arsgSavedReportId :: Lens' AccountsReportsSavedGenerate Text Source #
The saved report to retrieve.
arsgAccountId :: Lens' AccountsReportsSavedGenerate Text Source #
Account to which the saved reports belong.
arsgStartIndex :: Lens' AccountsReportsSavedGenerate (Maybe Int32) Source #
Index of the first row of report data to return.
arsgMaxResults :: Lens' AccountsReportsSavedGenerate (Maybe Int32) Source #
The maximum number of rows of report data to return.