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 |
Retrieves a report of the specified type.
See: Google Affiliate Network API Reference for gan.reports.get
.
- type ReportsGetResource = "gan" :> ("v1beta1" :> (Capture "role" ReportsGetRole :> (Capture "roleId" Text :> ("report" :> (Capture "reportType" ReportsGetReportType :> (QueryParam "status" ReportsGetStatus :> (QueryParams "advertiserId" Text :> (QueryParam "endDate" Text :> (QueryParam "eventType" ReportsGetEventType :> (QueryParam "startDate" Text :> (QueryParam "calculateTotals" Bool :> (QueryParams "linkId" Text :> (QueryParams "orderId" Text :> (QueryParams "publisherId" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Report)))))))))))))))))
- reportsGet :: Text -> ReportsGetRole -> ReportsGetReportType -> ReportsGet
- data ReportsGet
- rgStatus :: Lens' ReportsGet (Maybe ReportsGetStatus)
- rgAdvertiserId :: Lens' ReportsGet [Text]
- rgEndDate :: Lens' ReportsGet (Maybe Text)
- rgRoleId :: Lens' ReportsGet Text
- rgRole :: Lens' ReportsGet ReportsGetRole
- rgEventType :: Lens' ReportsGet (Maybe ReportsGetEventType)
- rgStartDate :: Lens' ReportsGet (Maybe Text)
- rgCalculateTotals :: Lens' ReportsGet (Maybe Bool)
- rgLinkId :: Lens' ReportsGet [Text]
- rgOrderId :: Lens' ReportsGet [Text]
- rgPublisherId :: Lens' ReportsGet [Text]
- rgReportType :: Lens' ReportsGet ReportsGetReportType
- rgStartIndex :: Lens' ReportsGet (Maybe Word32)
- rgMaxResults :: Lens' ReportsGet (Maybe Word32)
REST Resource
type ReportsGetResource = "gan" :> ("v1beta1" :> (Capture "role" ReportsGetRole :> (Capture "roleId" Text :> ("report" :> (Capture "reportType" ReportsGetReportType :> (QueryParam "status" ReportsGetStatus :> (QueryParams "advertiserId" Text :> (QueryParam "endDate" Text :> (QueryParam "eventType" ReportsGetEventType :> (QueryParam "startDate" Text :> (QueryParam "calculateTotals" Bool :> (QueryParams "linkId" Text :> (QueryParams "orderId" Text :> (QueryParams "publisherId" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Report))))))))))))))))) Source #
A resource alias for gan.reports.get
method which the
ReportsGet
request conforms to.
Creating a Request
Creates a value of ReportsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReportsGet Source #
Retrieves a report of the specified type.
See: reportsGet
smart constructor.
Eq ReportsGet Source # | |
Data ReportsGet Source # | |
Show ReportsGet Source # | |
Generic ReportsGet Source # | |
GoogleRequest ReportsGet Source # | |
type Rep ReportsGet Source # | |
type Scopes ReportsGet Source # | |
type Rs ReportsGet Source # | |
Request Lenses
rgStatus :: Lens' ReportsGet (Maybe ReportsGetStatus) Source #
Filters out all events that do not have the given status. Valid values: 'active', 'canceled', or 'invalid'. Optional.
rgAdvertiserId :: Lens' ReportsGet [Text] Source #
The IDs of the advertisers to look up, if applicable.
rgEndDate :: Lens' ReportsGet (Maybe Text) Source #
The end date (exclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day after startDate, if that is given, or today. Optional.
rgRole :: Lens' ReportsGet ReportsGetRole Source #
The role of the requester. Valid values: 'advertisers' or 'publishers'.
rgEventType :: Lens' ReportsGet (Maybe ReportsGetEventType) Source #
Filters out all events that are not of the given type. Valid values: 'action', 'transaction', or 'charge'. Optional.
rgStartDate :: Lens' ReportsGet (Maybe Text) Source #
The start date (inclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day before endDate, if that is given, or yesterday. Optional.
rgCalculateTotals :: Lens' ReportsGet (Maybe Bool) Source #
Whether or not to calculate totals rows. Optional.
rgOrderId :: Lens' ReportsGet [Text] Source #
Filters to capture one of the given order IDs. Optional.
rgPublisherId :: Lens' ReportsGet [Text] Source #
The IDs of the publishers to look up, if applicable.
rgReportType :: Lens' ReportsGet ReportsGetReportType Source #
The type of report being requested. Valid values: 'order_delta'. Required.
rgStartIndex :: Lens' ReportsGet (Maybe Word32) Source #
Offset on which to return results when paging. Optional.
rgMaxResults :: Lens' ReportsGet (Maybe Word32) Source #
Max number of items to return in this page. Optional. Defaults to return all results.