{-# 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.AdSense.Accounts.AdUnits.CustomChannels.List
(
AccountsAdUnitsCustomChannelsListResource
, accountsAdUnitsCustomChannelsList
, AccountsAdUnitsCustomChannelsList
, aaucclAdUnitId
, aaucclAdClientId
, aaucclAccountId
, aaucclPageToken
, aaucclMaxResults
) where
import Network.Google.AdSense.Types
import Network.Google.Prelude
type AccountsAdUnitsCustomChannelsListResource =
"adsense" :>
"v1.4" :>
"accounts" :>
Capture "accountId" Text :>
"adclients" :>
Capture "adClientId" Text :>
"adunits" :>
Capture "adUnitId" Text :>
"customchannels" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] CustomChannels
data AccountsAdUnitsCustomChannelsList = AccountsAdUnitsCustomChannelsList'
{ _aaucclAdUnitId :: !Text
, _aaucclAdClientId :: !Text
, _aaucclAccountId :: !Text
, _aaucclPageToken :: !(Maybe Text)
, _aaucclMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
accountsAdUnitsCustomChannelsList
:: Text
-> Text
-> Text
-> AccountsAdUnitsCustomChannelsList
accountsAdUnitsCustomChannelsList pAaucclAdUnitId_ pAaucclAdClientId_ pAaucclAccountId_ =
AccountsAdUnitsCustomChannelsList'
{ _aaucclAdUnitId = pAaucclAdUnitId_
, _aaucclAdClientId = pAaucclAdClientId_
, _aaucclAccountId = pAaucclAccountId_
, _aaucclPageToken = Nothing
, _aaucclMaxResults = Nothing
}
aaucclAdUnitId :: Lens' AccountsAdUnitsCustomChannelsList Text
aaucclAdUnitId
= lens _aaucclAdUnitId
(\ s a -> s{_aaucclAdUnitId = a})
aaucclAdClientId :: Lens' AccountsAdUnitsCustomChannelsList Text
aaucclAdClientId
= lens _aaucclAdClientId
(\ s a -> s{_aaucclAdClientId = a})
aaucclAccountId :: Lens' AccountsAdUnitsCustomChannelsList Text
aaucclAccountId
= lens _aaucclAccountId
(\ s a -> s{_aaucclAccountId = a})
aaucclPageToken :: Lens' AccountsAdUnitsCustomChannelsList (Maybe Text)
aaucclPageToken
= lens _aaucclPageToken
(\ s a -> s{_aaucclPageToken = a})
aaucclMaxResults :: Lens' AccountsAdUnitsCustomChannelsList (Maybe Int32)
aaucclMaxResults
= lens _aaucclMaxResults
(\ s a -> s{_aaucclMaxResults = a})
. mapping _Coerce
instance GoogleRequest
AccountsAdUnitsCustomChannelsList where
type Rs AccountsAdUnitsCustomChannelsList =
CustomChannels
type Scopes AccountsAdUnitsCustomChannelsList =
'["https://www.googleapis.com/auth/adsense",
"https://www.googleapis.com/auth/adsense.readonly"]
requestClient AccountsAdUnitsCustomChannelsList'{..}
= go _aaucclAccountId _aaucclAdClientId
_aaucclAdUnitId
_aaucclPageToken
_aaucclMaxResults
(Just AltJSON)
adSenseService
where go
= buildClient
(Proxy ::
Proxy AccountsAdUnitsCustomChannelsListResource)
mempty