{-# 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.AdvertiserGroups.Get
(
AdvertiserGroupsGetResource
, advertiserGroupsGet
, AdvertiserGroupsGet
, agggProFileId
, agggId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AdvertiserGroupsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"advertiserGroups" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] AdvertiserGroup
data AdvertiserGroupsGet = AdvertiserGroupsGet'
{ _agggProFileId :: !(Textual Int64)
, _agggId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
advertiserGroupsGet
:: Int64
-> Int64
-> AdvertiserGroupsGet
advertiserGroupsGet pAgggProFileId_ pAgggId_ =
AdvertiserGroupsGet'
{ _agggProFileId = _Coerce # pAgggProFileId_
, _agggId = _Coerce # pAgggId_
}
agggProFileId :: Lens' AdvertiserGroupsGet Int64
agggProFileId
= lens _agggProFileId
(\ s a -> s{_agggProFileId = a})
. _Coerce
agggId :: Lens' AdvertiserGroupsGet Int64
agggId
= lens _agggId (\ s a -> s{_agggId = a}) . _Coerce
instance GoogleRequest AdvertiserGroupsGet where
type Rs AdvertiserGroupsGet = AdvertiserGroup
type Scopes AdvertiserGroupsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AdvertiserGroupsGet'{..}
= go _agggProFileId _agggId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy AdvertiserGroupsGetResource)
mempty