{-# 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.AdvertiserLandingPages.Get
(
AdvertiserLandingPagesGetResource
, advertiserLandingPagesGet
, AdvertiserLandingPagesGet
, alpgProFileId
, alpgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AdvertiserLandingPagesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"advertiserLandingPages" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] LandingPage
data AdvertiserLandingPagesGet = AdvertiserLandingPagesGet'
{ _alpgProFileId :: !(Textual Int64)
, _alpgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
advertiserLandingPagesGet
:: Int64
-> Int64
-> AdvertiserLandingPagesGet
advertiserLandingPagesGet pAlpgProFileId_ pAlpgId_ =
AdvertiserLandingPagesGet'
{ _alpgProFileId = _Coerce # pAlpgProFileId_
, _alpgId = _Coerce # pAlpgId_
}
alpgProFileId :: Lens' AdvertiserLandingPagesGet Int64
alpgProFileId
= lens _alpgProFileId
(\ s a -> s{_alpgProFileId = a})
. _Coerce
alpgId :: Lens' AdvertiserLandingPagesGet Int64
alpgId
= lens _alpgId (\ s a -> s{_alpgId = a}) . _Coerce
instance GoogleRequest AdvertiserLandingPagesGet
where
type Rs AdvertiserLandingPagesGet = LandingPage
type Scopes AdvertiserLandingPagesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AdvertiserLandingPagesGet'{..}
= go _alpgProFileId _alpgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy AdvertiserLandingPagesGetResource)
mempty