gogol-adexchange-seller-1.0.0: gen/Gogol/AdExchangeSeller/Accounts/Customchannels/Get.hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE ImportQualifiedPost #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- |
-- Module : Gogol.AdExchangeSeller.Accounts.Customchannels.Get
-- Copyright : (c) 2015-2025 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>
-- Toni Cebrián <toni@tonicebrian.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Get the specified custom channel from the specified ad client.
--
-- /See:/ <https://developers.google.com/ad-exchange/seller-rest/ Ad Exchange Seller API Reference> for @adexchangeseller.accounts.customchannels.get@.
module Gogol.AdExchangeSeller.Accounts.Customchannels.Get
( -- * Resource
AdExchangeSellerAccountsCustomchannelsGetResource,
-- ** Constructing a Request
AdExchangeSellerAccountsCustomchannelsGet (..),
newAdExchangeSellerAccountsCustomchannelsGet,
)
where
import Gogol.AdExchangeSeller.Types
import Gogol.Prelude qualified as Core
-- | A resource alias for @adexchangeseller.accounts.customchannels.get@ method which the
-- 'AdExchangeSellerAccountsCustomchannelsGet' request conforms to.
type AdExchangeSellerAccountsCustomchannelsGetResource =
"adexchangeseller"
Core.:> "v2.0"
Core.:> "accounts"
Core.:> Core.Capture "accountId" Core.Text
Core.:> "adclients"
Core.:> Core.Capture "adClientId" Core.Text
Core.:> "customchannels"
Core.:> Core.Capture "customChannelId" Core.Text
Core.:> Core.QueryParam "alt" Core.AltJSON
Core.:> Core.Get '[Core.JSON] CustomChannel
-- | Get the specified custom channel from the specified ad client.
--
-- /See:/ 'newAdExchangeSellerAccountsCustomchannelsGet' smart constructor.
data AdExchangeSellerAccountsCustomchannelsGet = AdExchangeSellerAccountsCustomchannelsGet
{ -- | Account to which the ad client belongs.
accountId :: Core.Text,
-- | Ad client which contains the custom channel.
adClientId :: Core.Text,
-- | Custom channel to retrieve.
customChannelId :: Core.Text
}
deriving (Core.Eq, Core.Show, Core.Generic)
-- | Creates a value of 'AdExchangeSellerAccountsCustomchannelsGet' with the minimum fields required to make a request.
newAdExchangeSellerAccountsCustomchannelsGet ::
-- | Account to which the ad client belongs. See 'accountId'.
Core.Text ->
-- | Ad client which contains the custom channel. See 'adClientId'.
Core.Text ->
-- | Custom channel to retrieve. See 'customChannelId'.
Core.Text ->
AdExchangeSellerAccountsCustomchannelsGet
newAdExchangeSellerAccountsCustomchannelsGet
accountId
adClientId
customChannelId =
AdExchangeSellerAccountsCustomchannelsGet
{ accountId = accountId,
adClientId = adClientId,
customChannelId = customChannelId
}
instance
Core.GoogleRequest
AdExchangeSellerAccountsCustomchannelsGet
where
type Rs AdExchangeSellerAccountsCustomchannelsGet = CustomChannel
type
Scopes AdExchangeSellerAccountsCustomchannelsGet =
'[Adexchange'Seller, Adexchange'Seller'Readonly]
requestClient AdExchangeSellerAccountsCustomchannelsGet {..} =
go
accountId
adClientId
customChannelId
(Core.Just Core.AltJSON)
adExchangeSellerService
where
go =
Core.buildClient
( Core.Proxy ::
Core.Proxy AdExchangeSellerAccountsCustomchannelsGetResource
)
Core.mempty