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" :>
"v2.5" :>
"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 :: !(Maybe CampaignCreativeAssociationsListSortOrder)
, _ccalPageToken :: !(Maybe Text)
, _ccalMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
campaignCreativeAssociationsList
:: Int64
-> Int64
-> CampaignCreativeAssociationsList
campaignCreativeAssociationsList pCcalCampaignId_ pCcalProFileId_ =
CampaignCreativeAssociationsList'
{ _ccalCampaignId = _Coerce # pCcalCampaignId_
, _ccalProFileId = _Coerce # pCcalProFileId_
, _ccalSortOrder = Nothing
, _ccalPageToken = Nothing
, _ccalMaxResults = Nothing
}
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 (Maybe 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 (Maybe Int32)
ccalMaxResults
= lens _ccalMaxResults
(\ s a -> s{_ccalMaxResults = a})
. mapping _Coerce
instance GoogleRequest
CampaignCreativeAssociationsList where
type Rs CampaignCreativeAssociationsList =
CampaignCreativeAssociationsListResponse
type Scopes CampaignCreativeAssociationsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CampaignCreativeAssociationsList'{..}
= go _ccalProFileId _ccalCampaignId _ccalSortOrder
_ccalPageToken
_ccalMaxResults
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy ::
Proxy CampaignCreativeAssociationsListResource)
mempty