{-# 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.RemarketingLists.List
(
RemarketingListsListResource
, remarketingListsList
, RemarketingListsList
, rllFloodlightActivityId
, rllAdvertiserId
, rllProFileId
, rllSortOrder
, rllActive
, rllName
, rllPageToken
, rllSortField
, rllMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type RemarketingListsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"remarketingLists" :>
QueryParam "advertiserId" (Textual Int64) :>
QueryParam "floodlightActivityId" (Textual Int64) :>
QueryParam "sortOrder" RemarketingListsListSortOrder
:>
QueryParam "active" Bool :>
QueryParam "name" Text :>
QueryParam "pageToken" Text :>
QueryParam "sortField" RemarketingListsListSortField
:>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] RemarketingListsListResponse
data RemarketingListsList = RemarketingListsList'
{ _rllFloodlightActivityId :: !(Maybe (Textual Int64))
, _rllAdvertiserId :: !(Textual Int64)
, _rllProFileId :: !(Textual Int64)
, _rllSortOrder :: !RemarketingListsListSortOrder
, _rllActive :: !(Maybe Bool)
, _rllName :: !(Maybe Text)
, _rllPageToken :: !(Maybe Text)
, _rllSortField :: !RemarketingListsListSortField
, _rllMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
remarketingListsList
:: Int64
-> Int64
-> RemarketingListsList
remarketingListsList pRllAdvertiserId_ pRllProFileId_ =
RemarketingListsList'
{ _rllFloodlightActivityId = Nothing
, _rllAdvertiserId = _Coerce # pRllAdvertiserId_
, _rllProFileId = _Coerce # pRllProFileId_
, _rllSortOrder = RLLSOAscending
, _rllActive = Nothing
, _rllName = Nothing
, _rllPageToken = Nothing
, _rllSortField = RLLSFID
, _rllMaxResults = 1000
}
rllFloodlightActivityId :: Lens' RemarketingListsList (Maybe Int64)
rllFloodlightActivityId
= lens _rllFloodlightActivityId
(\ s a -> s{_rllFloodlightActivityId = a})
. mapping _Coerce
rllAdvertiserId :: Lens' RemarketingListsList Int64
rllAdvertiserId
= lens _rllAdvertiserId
(\ s a -> s{_rllAdvertiserId = a})
. _Coerce
rllProFileId :: Lens' RemarketingListsList Int64
rllProFileId
= lens _rllProFileId (\ s a -> s{_rllProFileId = a})
. _Coerce
rllSortOrder :: Lens' RemarketingListsList RemarketingListsListSortOrder
rllSortOrder
= lens _rllSortOrder (\ s a -> s{_rllSortOrder = a})
rllActive :: Lens' RemarketingListsList (Maybe Bool)
rllActive
= lens _rllActive (\ s a -> s{_rllActive = a})
rllName :: Lens' RemarketingListsList (Maybe Text)
rllName = lens _rllName (\ s a -> s{_rllName = a})
rllPageToken :: Lens' RemarketingListsList (Maybe Text)
rllPageToken
= lens _rllPageToken (\ s a -> s{_rllPageToken = a})
rllSortField :: Lens' RemarketingListsList RemarketingListsListSortField
rllSortField
= lens _rllSortField (\ s a -> s{_rllSortField = a})
rllMaxResults :: Lens' RemarketingListsList Int32
rllMaxResults
= lens _rllMaxResults
(\ s a -> s{_rllMaxResults = a})
. _Coerce
instance GoogleRequest RemarketingListsList where
type Rs RemarketingListsList =
RemarketingListsListResponse
type Scopes RemarketingListsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient RemarketingListsList'{..}
= go _rllProFileId (Just _rllAdvertiserId)
_rllFloodlightActivityId
(Just _rllSortOrder)
_rllActive
_rllName
_rllPageToken
(Just _rllSortField)
(Just _rllMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy RemarketingListsListResource)
mempty