gogol-analytics-1.0.0: gen/Gogol/Analytics/Management/WebPropertyAdWordsLinks/Delete.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.Analytics.Management.WebPropertyAdWordsLinks.Delete
-- 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)
--
-- Deletes a web property-Google Ads link.
--
-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.webPropertyAdWordsLinks.delete@.
module Gogol.Analytics.Management.WebPropertyAdWordsLinks.Delete
( -- * Resource
AnalyticsManagementWebPropertyAdWordsLinksDeleteResource,
-- ** Constructing a Request
AnalyticsManagementWebPropertyAdWordsLinksDelete (..),
newAnalyticsManagementWebPropertyAdWordsLinksDelete,
)
where
import Gogol.Analytics.Types
import Gogol.Prelude qualified as Core
-- | A resource alias for @analytics.management.webPropertyAdWordsLinks.delete@ method which the
-- 'AnalyticsManagementWebPropertyAdWordsLinksDelete' request conforms to.
type AnalyticsManagementWebPropertyAdWordsLinksDeleteResource =
"analytics"
Core.:> "v3"
Core.:> "management"
Core.:> "accounts"
Core.:> Core.Capture "accountId" Core.Text
Core.:> "webproperties"
Core.:> Core.Capture "webPropertyId" Core.Text
Core.:> "entityAdWordsLinks"
Core.:> Core.Capture "webPropertyAdWordsLinkId" Core.Text
Core.:> Core.QueryParam "alt" Core.AltJSON
Core.:> Core.Delete '[Core.JSON] ()
-- | Deletes a web property-Google Ads link.
--
-- /See:/ 'newAnalyticsManagementWebPropertyAdWordsLinksDelete' smart constructor.
data AnalyticsManagementWebPropertyAdWordsLinksDelete = AnalyticsManagementWebPropertyAdWordsLinksDelete
{ -- | ID of the account which the given web property belongs to.
accountId :: Core.Text,
-- | Web property Google Ads link ID.
webPropertyAdWordsLinkId :: Core.Text,
-- | Web property ID to delete the Google Ads link for.
webPropertyId :: Core.Text
}
deriving (Core.Eq, Core.Show, Core.Generic)
-- | Creates a value of 'AnalyticsManagementWebPropertyAdWordsLinksDelete' with the minimum fields required to make a request.
newAnalyticsManagementWebPropertyAdWordsLinksDelete ::
-- | ID of the account which the given web property belongs to. See 'accountId'.
Core.Text ->
-- | Web property Google Ads link ID. See 'webPropertyAdWordsLinkId'.
Core.Text ->
-- | Web property ID to delete the Google Ads link for. See 'webPropertyId'.
Core.Text ->
AnalyticsManagementWebPropertyAdWordsLinksDelete
newAnalyticsManagementWebPropertyAdWordsLinksDelete
accountId
webPropertyAdWordsLinkId
webPropertyId =
AnalyticsManagementWebPropertyAdWordsLinksDelete
{ accountId =
accountId,
webPropertyAdWordsLinkId =
webPropertyAdWordsLinkId,
webPropertyId = webPropertyId
}
instance
Core.GoogleRequest
AnalyticsManagementWebPropertyAdWordsLinksDelete
where
type Rs AnalyticsManagementWebPropertyAdWordsLinksDelete = ()
type
Scopes AnalyticsManagementWebPropertyAdWordsLinksDelete =
'[Analytics'Edit]
requestClient AnalyticsManagementWebPropertyAdWordsLinksDelete {..} =
go
accountId
webPropertyId
webPropertyAdWordsLinkId
(Core.Just Core.AltJSON)
analyticsService
where
go =
Core.buildClient
( Core.Proxy ::
Core.Proxy
AnalyticsManagementWebPropertyAdWordsLinksDeleteResource
)
Core.mempty