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 Ad Exchange 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.
See: Ad Exchange Seller API Reference for adexchangeseller.accounts.reports.generate
.
Synopsis
- type AccountsReportsGenerateResource = ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Report))))))))))))))) :<|> ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream)))))))))))))))
- accountsReportsGenerate :: Text -> Text -> Text -> AccountsReportsGenerate
- data AccountsReportsGenerate
- argDimension :: Lens' AccountsReportsGenerate [Text]
- argLocale :: Lens' AccountsReportsGenerate (Maybe Text)
- argEndDate :: Lens' AccountsReportsGenerate Text
- argStartDate :: Lens' AccountsReportsGenerate Text
- argAccountId :: Lens' AccountsReportsGenerate Text
- argMetric :: Lens' AccountsReportsGenerate [Text]
- argSort :: Lens' AccountsReportsGenerate [Text]
- argFilter :: Lens' AccountsReportsGenerate [Text]
- argStartIndex :: Lens' AccountsReportsGenerate (Maybe Word32)
- argMaxResults :: Lens' AccountsReportsGenerate (Maybe Word32)
REST Resource
type AccountsReportsGenerateResource = ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Report))))))))))))))) :<|> ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))))))))))) Source #
A resource alias for adexchangeseller.accounts.reports.generate
method which the
AccountsReportsGenerate
request conforms to.
Creating a Request
accountsReportsGenerate Source #
Creates a value of AccountsReportsGenerate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsReportsGenerate Source #
Generate an Ad Exchange 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.
See: accountsReportsGenerate
smart constructor.
Instances
Request Lenses
argDimension :: Lens' AccountsReportsGenerate [Text] Source #
Dimensions to base the report on.
argLocale :: Lens' AccountsReportsGenerate (Maybe Text) Source #
Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
argEndDate :: Lens' AccountsReportsGenerate Text Source #
End of the date range to report on in "YYYY-MM-DD" format, inclusive.
argStartDate :: Lens' AccountsReportsGenerate Text Source #
Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
argAccountId :: Lens' AccountsReportsGenerate Text Source #
Account which owns the generated report.
argSort :: Lens' AccountsReportsGenerate [Text] Source #
The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
argStartIndex :: Lens' AccountsReportsGenerate (Maybe Word32) Source #
Index of the first row of report data to return.
argMaxResults :: Lens' AccountsReportsGenerate (Maybe Word32) Source #
The maximum number of rows of report data to return.