gogol-affiliates-0.1.1: Google Affiliate Network SDK.

Copyright(c) 2015-2016 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.Events.List

Contents

Description

Retrieves event data for a given advertiser/publisher.

See: Google Affiliate Network API Reference for gan.events.list.

Synopsis

REST Resource

type EventsListResource = "gan" :> ("v1beta1" :> (Capture "role" EventsListRole :> (Capture "roleId" Text :> ("events" :> (QueryParam "status" EventsListStatus :> (QueryParam "eventDateMin" Text :> (QueryParam "chargeType" EventsListChargeType :> (QueryParam "memberId" Text :> (QueryParam "modifyDateMax" Text :> (QueryParam "advertiserId" Text :> (QueryParam "modifyDateMin" Text :> (QueryParam "eventDateMax" Text :> (QueryParam "sku" Text :> (QueryParam "linkId" Text :> (QueryParam "pageToken" Text :> (QueryParam "type" EventsListType :> (QueryParam "orderId" Text :> (QueryParam "publisherId" Text :> (QueryParam "productCategory" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Events))))))))))))))))))))) Source #

A resource alias for gan.events.list method which the EventsList request conforms to.

Creating a Request

data EventsList Source #

Retrieves event data for a given advertiser/publisher.

See: eventsList smart constructor.

Instances

Eq EventsList Source # 
Data EventsList Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EventsList -> c EventsList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EventsList #

toConstr :: EventsList -> Constr #

dataTypeOf :: EventsList -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c EventsList) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EventsList) #

gmapT :: (forall b. Data b => b -> b) -> EventsList -> EventsList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EventsList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EventsList -> r #

gmapQ :: (forall d. Data d => d -> u) -> EventsList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EventsList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EventsList -> m EventsList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EventsList -> m EventsList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EventsList -> m EventsList #

Show EventsList Source # 
Generic EventsList Source # 

Associated Types

type Rep EventsList :: * -> * #

GoogleRequest EventsList Source # 

Associated Types

type Rs EventsList :: * #

type Scopes EventsList :: [Symbol] #

type Rep EventsList Source # 
type Rep EventsList = D1 (MetaData "EventsList" "Network.Google.Resource.GAN.Events.List" "gogol-affiliates-0.1.1-Fxbr1pfiDZSDHf2HoAp3U" False) (C1 (MetaCons "EventsList'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_elStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventsListStatus))) (S1 (MetaSel (Just Symbol "_elEventDateMin") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_elChargeType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventsListChargeType))) (S1 (MetaSel (Just Symbol "_elMemberId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_elModifyDateMax") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_elAdvertiserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_elModifyDateMin") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_elRoleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_elRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EventsListRole)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_elEventDateMax") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_elSKU") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_elLinkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_elPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_elType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventsListType))) (S1 (MetaSel (Just Symbol "_elOrderId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_elPublisherId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_elProductCategory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_elMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32))))))))))
type Scopes EventsList Source # 
type Rs EventsList Source # 

Request Lenses

elStatus :: Lens' EventsList (Maybe EventsListStatus) Source #

Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.

elEventDateMin :: Lens' EventsList (Maybe Text) Source #

Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.

elChargeType :: Lens' EventsList (Maybe EventsListChargeType) Source #

Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.

elMemberId :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.

elModifyDateMax :: Lens' EventsList (Maybe Text) Source #

Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.

elAdvertiserId :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.

elModifyDateMin :: Lens' EventsList (Maybe Text) Source #

Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.

elRoleId :: Lens' EventsList Text Source #

The ID of the requesting advertiser or publisher.

elRole :: Lens' EventsList EventsListRole Source #

The role of the requester. Valid values: 'advertisers' or 'publishers'.

elEventDateMax :: Lens' EventsList (Maybe Text) Source #

Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.

elSKU :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.

elLinkId :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.

elPageToken :: Lens' EventsList (Maybe Text) Source #

The value of 'nextPageToken' from the previous page. Optional.

elType :: Lens' EventsList (Maybe EventsListType) Source #

Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.

elOrderId :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.

elPublisherId :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.

elProductCategory :: Lens' EventsList (Maybe Text) Source #

Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.

elMaxResults :: Lens' EventsList (Maybe Word32) Source #

Max number of offers to return in this page. Optional. Defaults to 20.