{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.DFAReporting.TargetableRemarketingLists.List
(
TargetableRemarketingListsListResource
, targetableRemarketingListsList
, TargetableRemarketingListsList
, trllAdvertiserId
, trllProFileId
, trllSortOrder
, trllActive
, trllName
, trllPageToken
, trllSortField
, trllMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type TargetableRemarketingListsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"targetableRemarketingLists" :>
QueryParam "advertiserId" (Textual Int64) :>
QueryParam "sortOrder"
TargetableRemarketingListsListSortOrder
:>
QueryParam "active" Bool :>
QueryParam "name" Text :>
QueryParam "pageToken" Text :>
QueryParam "sortField"
TargetableRemarketingListsListSortField
:>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON]
TargetableRemarketingListsListResponse
data TargetableRemarketingListsList = TargetableRemarketingListsList'
{ _trllAdvertiserId :: !(Textual Int64)
, _trllProFileId :: !(Textual Int64)
, _trllSortOrder :: !TargetableRemarketingListsListSortOrder
, _trllActive :: !(Maybe Bool)
, _trllName :: !(Maybe Text)
, _trllPageToken :: !(Maybe Text)
, _trllSortField :: !TargetableRemarketingListsListSortField
, _trllMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
targetableRemarketingListsList
:: Int64
-> Int64
-> TargetableRemarketingListsList
targetableRemarketingListsList pTrllAdvertiserId_ pTrllProFileId_ =
TargetableRemarketingListsList'
{ _trllAdvertiserId = _Coerce # pTrllAdvertiserId_
, _trllProFileId = _Coerce # pTrllProFileId_
, _trllSortOrder = TRLLSOAscending
, _trllActive = Nothing
, _trllName = Nothing
, _trllPageToken = Nothing
, _trllSortField = TRLLSFID
, _trllMaxResults = 1000
}
trllAdvertiserId :: Lens' TargetableRemarketingListsList Int64
trllAdvertiserId
= lens _trllAdvertiserId
(\ s a -> s{_trllAdvertiserId = a})
. _Coerce
trllProFileId :: Lens' TargetableRemarketingListsList Int64
trllProFileId
= lens _trllProFileId
(\ s a -> s{_trllProFileId = a})
. _Coerce
trllSortOrder :: Lens' TargetableRemarketingListsList TargetableRemarketingListsListSortOrder
trllSortOrder
= lens _trllSortOrder
(\ s a -> s{_trllSortOrder = a})
trllActive :: Lens' TargetableRemarketingListsList (Maybe Bool)
trllActive
= lens _trllActive (\ s a -> s{_trllActive = a})
trllName :: Lens' TargetableRemarketingListsList (Maybe Text)
trllName = lens _trllName (\ s a -> s{_trllName = a})
trllPageToken :: Lens' TargetableRemarketingListsList (Maybe Text)
trllPageToken
= lens _trllPageToken
(\ s a -> s{_trllPageToken = a})
trllSortField :: Lens' TargetableRemarketingListsList TargetableRemarketingListsListSortField
trllSortField
= lens _trllSortField
(\ s a -> s{_trllSortField = a})
trllMaxResults :: Lens' TargetableRemarketingListsList Int32
trllMaxResults
= lens _trllMaxResults
(\ s a -> s{_trllMaxResults = a})
. _Coerce
instance GoogleRequest TargetableRemarketingListsList
where
type Rs TargetableRemarketingListsList =
TargetableRemarketingListsListResponse
type Scopes TargetableRemarketingListsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient TargetableRemarketingListsList'{..}
= go _trllProFileId (Just _trllAdvertiserId)
(Just _trllSortOrder)
_trllActive
_trllName
_trllPageToken
(Just _trllSortField)
(Just _trllMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy ::
Proxy TargetableRemarketingListsListResource)
mempty