gogol-affiliates-0.0.1: Google Affiliate Network SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.GAN.Reports.Get

Contents

Description

Retrieves a report of the specified type.

See: Google Affiliate Network API Reference for gan.reports.get.

Synopsis

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

data ReportsGet Source

Retrieves a report of the specified type.

See: reportsGet smart constructor.

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.

rgRoleId :: Lens' ReportsGet Text Source

The ID of the requesting advertiser or publisher.

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.

rgLinkId :: Lens' ReportsGet [Text] Source

Filters to capture one of given link IDs. 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.