{-# 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.CampaignCreativeAssociations.List
(
CampaignCreativeAssociationsListResource
, campaignCreativeAssociationsList
, CampaignCreativeAssociationsList
, ccalCampaignId
, ccalProFileId
, ccalSortOrder
, ccalPageToken
, ccalMaxResults
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type CampaignCreativeAssociationsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"campaigns" :>
Capture "campaignId" (Textual Int64) :>
"campaignCreativeAssociations" :>
QueryParam "sortOrder"
CampaignCreativeAssociationsListSortOrder
:>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] CampaignCreativeAssociationsListResponse
data CampaignCreativeAssociationsList = CampaignCreativeAssociationsList'
{ _ccalCampaignId :: !(Textual Int64)
, _ccalProFileId :: !(Textual Int64)
, _ccalSortOrder :: !CampaignCreativeAssociationsListSortOrder
, _ccalPageToken :: !(Maybe Text)
, _ccalMaxResults :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
campaignCreativeAssociationsList
:: Int64
-> Int64
-> CampaignCreativeAssociationsList
campaignCreativeAssociationsList pCcalCampaignId_ pCcalProFileId_ =
CampaignCreativeAssociationsList'
{ _ccalCampaignId = _Coerce # pCcalCampaignId_
, _ccalProFileId = _Coerce # pCcalProFileId_
, _ccalSortOrder = CCALSOAscending
, _ccalPageToken = Nothing
, _ccalMaxResults = 1000
}
ccalCampaignId :: Lens' CampaignCreativeAssociationsList Int64
ccalCampaignId
= lens _ccalCampaignId
(\ s a -> s{_ccalCampaignId = a})
. _Coerce
ccalProFileId :: Lens' CampaignCreativeAssociationsList Int64
ccalProFileId
= lens _ccalProFileId
(\ s a -> s{_ccalProFileId = a})
. _Coerce
ccalSortOrder :: Lens' CampaignCreativeAssociationsList CampaignCreativeAssociationsListSortOrder
ccalSortOrder
= lens _ccalSortOrder
(\ s a -> s{_ccalSortOrder = a})
ccalPageToken :: Lens' CampaignCreativeAssociationsList (Maybe Text)
ccalPageToken
= lens _ccalPageToken
(\ s a -> s{_ccalPageToken = a})
ccalMaxResults :: Lens' CampaignCreativeAssociationsList Int32
ccalMaxResults
= lens _ccalMaxResults
(\ s a -> s{_ccalMaxResults = a})
. _Coerce
instance GoogleRequest
CampaignCreativeAssociationsList where
type Rs CampaignCreativeAssociationsList =
CampaignCreativeAssociationsListResponse
type Scopes CampaignCreativeAssociationsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CampaignCreativeAssociationsList'{..}
= go _ccalProFileId _ccalCampaignId
(Just _ccalSortOrder)
_ccalPageToken
(Just _ccalMaxResults)
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy ::
Proxy CampaignCreativeAssociationsListResource)
mempty