{-# 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.AdSenseHost.Customchannels.Delete -- Copyright : (c) 2015-2025 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Toni Cebrián -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Delete a specific custom channel from the host AdSense account. -- -- /See:/ for @adsensehost.customchannels.delete@. module Gogol.AdSenseHost.Customchannels.Delete ( -- * Resource AdSenseHostCustomchannelsDeleteResource, -- ** Constructing a Request AdSenseHostCustomchannelsDelete (..), newAdSenseHostCustomchannelsDelete, ) where import Gogol.AdSenseHost.Types import Gogol.Prelude qualified as Core -- | A resource alias for @adsensehost.customchannels.delete@ method which the -- 'AdSenseHostCustomchannelsDelete' request conforms to. type AdSenseHostCustomchannelsDeleteResource = "adsensehost" Core.:> "v4.1" Core.:> "adclients" Core.:> Core.Capture "adClientId" Core.Text Core.:> "customchannels" Core.:> Core.Capture "customChannelId" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Delete '[Core.JSON] CustomChannel -- | Delete a specific custom channel from the host AdSense account. -- -- /See:/ 'newAdSenseHostCustomchannelsDelete' smart constructor. data AdSenseHostCustomchannelsDelete = AdSenseHostCustomchannelsDelete { -- | Ad client from which to delete the custom channel. adClientId :: Core.Text, -- | Custom channel to delete. customChannelId :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'AdSenseHostCustomchannelsDelete' with the minimum fields required to make a request. newAdSenseHostCustomchannelsDelete :: -- | Ad client from which to delete the custom channel. See 'adClientId'. Core.Text -> -- | Custom channel to delete. See 'customChannelId'. Core.Text -> AdSenseHostCustomchannelsDelete newAdSenseHostCustomchannelsDelete adClientId customChannelId = AdSenseHostCustomchannelsDelete { adClientId = adClientId, customChannelId = customChannelId } instance Core.GoogleRequest AdSenseHostCustomchannelsDelete where type Rs AdSenseHostCustomchannelsDelete = CustomChannel type Scopes AdSenseHostCustomchannelsDelete = '[Adsensehost'FullControl] requestClient AdSenseHostCustomchannelsDelete {..} = go adClientId customChannelId (Core.Just Core.AltJSON) adSenseHostService where go = Core.buildClient (Core.Proxy :: Core.Proxy AdSenseHostCustomchannelsDeleteResource) Core.mempty