{-# 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.Placements.List
(
PlacementsListResource
, placementsList
, PlacementsList
, pPlacementStrategyIds
, pContentCategoryIds
, pMaxEndDate
, pCampaignIds
, pPricingTypes
, pSearchString
, pSizeIds
, pIds
, pProFileId
, pGroupIds
, pDirectorySiteIds
, pSortOrder
, pPaymentSource
, pSiteIds
, pPageToken
, pSortField
, pCompatibilities
, pMaxStartDate
, pAdvertiserIds
, pMinStartDate
, pArchived
, pMaxResults
, pMinEndDate
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type PlacementsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"placements" :>
QueryParams "placementStrategyIds" (Textual Int64) :>
QueryParams "contentCategoryIds" (Textual Int64) :>
QueryParam "maxEndDate" Text :>
QueryParams "campaignIds" (Textual Int64) :>
QueryParams "pricingTypes" PlacementsListPricingTypes
:>
QueryParam "searchString" Text :>
QueryParams "sizeIds" (Textual Int64) :>
QueryParams "ids" (Textual Int64) :>
QueryParams "groupIds" (Textual Int64) :>
QueryParams "directorySiteIds" (Textual Int64)
:>
QueryParam "sortOrder"
PlacementsListSortOrder
:>
QueryParam "paymentSource"
PlacementsListPaymentSource
:>
QueryParams "siteIds" (Textual Int64) :>
QueryParam "pageToken" Text :>
QueryParam "sortField"
PlacementsListSortField
:>
QueryParams "compatibilities"
PlacementsListCompatibilities
:>
QueryParam "maxStartDate" Text :>
QueryParams "advertiserIds"
(Textual Int64)
:>
QueryParam "minStartDate"
Text
:>
QueryParam "archived" Bool
:>
QueryParam "maxResults"
(Textual Int32)
:>
QueryParam "minEndDate"
Text
:>
QueryParam "alt"
AltJSON
:>
Get '[JSON]
PlacementsListResponse
data PlacementsList = PlacementsList'
{ _pPlacementStrategyIds :: !(Maybe [Textual Int64])
, _pContentCategoryIds :: !(Maybe [Textual Int64])
, _pMaxEndDate :: !(Maybe Text)
, _pCampaignIds :: !(Maybe [Textual Int64])
, _pPricingTypes :: !(Maybe [PlacementsListPricingTypes])
, _pSearchString :: !(Maybe Text)
, _pSizeIds :: !(Maybe [Textual Int64])
, _pIds :: !(Maybe [Textual Int64])
, _pProFileId :: !(Textual Int64)
, _pGroupIds :: !(Maybe [Textual Int64])
, _pDirectorySiteIds :: !(Maybe [Textual Int64])
, _pSortOrder :: !PlacementsListSortOrder
, _pPaymentSource :: !(Maybe PlacementsListPaymentSource)
, _pSiteIds :: !(Maybe [Textual Int64])
, _pPageToken :: !(Maybe Text)
, _pSortField :: !PlacementsListSortField
, _pCompatibilities :: !(Maybe [PlacementsListCompatibilities])
, _pMaxStartDate :: !(Maybe Text)
, _pAdvertiserIds :: !(Maybe [Textual Int64])
, _pMinStartDate :: !(Maybe Text)
, _pArchived :: !(Maybe Bool)
, _pMaxResults :: !(Textual Int32)
, _pMinEndDate :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
placementsList
:: Int64
-> PlacementsList
placementsList pPProFileId_ =
PlacementsList'
{ _pPlacementStrategyIds = Nothing
, _pContentCategoryIds = Nothing
, _pMaxEndDate = Nothing
, _pCampaignIds = Nothing
, _pPricingTypes = Nothing
, _pSearchString = Nothing
, _pSizeIds = Nothing
, _pIds = Nothing
, _pProFileId = _Coerce # pPProFileId_
, _pGroupIds = Nothing
, _pDirectorySiteIds = Nothing
, _pSortOrder = Ascending
, _pPaymentSource = Nothing
, _pSiteIds = Nothing
, _pPageToken = Nothing
, _pSortField = PLSFID
, _pCompatibilities = Nothing
, _pMaxStartDate = Nothing
, _pAdvertiserIds = Nothing
, _pMinStartDate = Nothing
, _pArchived = Nothing
, _pMaxResults = 1000
, _pMinEndDate = Nothing
}
pPlacementStrategyIds :: Lens' PlacementsList [Int64]
pPlacementStrategyIds
= lens _pPlacementStrategyIds
(\ s a -> s{_pPlacementStrategyIds = a})
. _Default
. _Coerce
pContentCategoryIds :: Lens' PlacementsList [Int64]
pContentCategoryIds
= lens _pContentCategoryIds
(\ s a -> s{_pContentCategoryIds = a})
. _Default
. _Coerce
pMaxEndDate :: Lens' PlacementsList (Maybe Text)
pMaxEndDate
= lens _pMaxEndDate (\ s a -> s{_pMaxEndDate = a})
pCampaignIds :: Lens' PlacementsList [Int64]
pCampaignIds
= lens _pCampaignIds (\ s a -> s{_pCampaignIds = a})
. _Default
. _Coerce
pPricingTypes :: Lens' PlacementsList [PlacementsListPricingTypes]
pPricingTypes
= lens _pPricingTypes
(\ s a -> s{_pPricingTypes = a})
. _Default
. _Coerce
pSearchString :: Lens' PlacementsList (Maybe Text)
pSearchString
= lens _pSearchString
(\ s a -> s{_pSearchString = a})
pSizeIds :: Lens' PlacementsList [Int64]
pSizeIds
= lens _pSizeIds (\ s a -> s{_pSizeIds = a}) .
_Default
. _Coerce
pIds :: Lens' PlacementsList [Int64]
pIds
= lens _pIds (\ s a -> s{_pIds = a}) . _Default .
_Coerce
pProFileId :: Lens' PlacementsList Int64
pProFileId
= lens _pProFileId (\ s a -> s{_pProFileId = a}) .
_Coerce
pGroupIds :: Lens' PlacementsList [Int64]
pGroupIds
= lens _pGroupIds (\ s a -> s{_pGroupIds = a}) .
_Default
. _Coerce
pDirectorySiteIds :: Lens' PlacementsList [Int64]
pDirectorySiteIds
= lens _pDirectorySiteIds
(\ s a -> s{_pDirectorySiteIds = a})
. _Default
. _Coerce
pSortOrder :: Lens' PlacementsList PlacementsListSortOrder
pSortOrder
= lens _pSortOrder (\ s a -> s{_pSortOrder = a})
pPaymentSource :: Lens' PlacementsList (Maybe PlacementsListPaymentSource)
pPaymentSource
= lens _pPaymentSource
(\ s a -> s{_pPaymentSource = a})
pSiteIds :: Lens' PlacementsList [Int64]
pSiteIds
= lens _pSiteIds (\ s a -> s{_pSiteIds = a}) .
_Default
. _Coerce
pPageToken :: Lens' PlacementsList (Maybe Text)
pPageToken
= lens _pPageToken (\ s a -> s{_pPageToken = a})
pSortField :: Lens' PlacementsList PlacementsListSortField
pSortField
= lens _pSortField (\ s a -> s{_pSortField = a})
pCompatibilities :: Lens' PlacementsList [PlacementsListCompatibilities]
pCompatibilities
= lens _pCompatibilities
(\ s a -> s{_pCompatibilities = a})
. _Default
. _Coerce
pMaxStartDate :: Lens' PlacementsList (Maybe Text)
pMaxStartDate
= lens _pMaxStartDate
(\ s a -> s{_pMaxStartDate = a})
pAdvertiserIds :: Lens' PlacementsList [Int64]
pAdvertiserIds
= lens _pAdvertiserIds
(\ s a -> s{_pAdvertiserIds = a})
. _Default
. _Coerce
pMinStartDate :: Lens' PlacementsList (Maybe Text)
pMinStartDate
= lens _pMinStartDate
(\ s a -> s{_pMinStartDate = a})
pArchived :: Lens' PlacementsList (Maybe Bool)
pArchived
= lens _pArchived (\ s a -> s{_pArchived = a})
pMaxResults :: Lens' PlacementsList Int32
pMaxResults
= lens _pMaxResults (\ s a -> s{_pMaxResults = a}) .
_Coerce
pMinEndDate :: Lens' PlacementsList (Maybe Text)
pMinEndDate
= lens _pMinEndDate (\ s a -> s{_pMinEndDate = a})
instance GoogleRequest PlacementsList where
type Rs PlacementsList = PlacementsListResponse
type Scopes PlacementsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient PlacementsList'{..}
= go _pProFileId (_pPlacementStrategyIds ^. _Default)
(_pContentCategoryIds ^. _Default)
_pMaxEndDate
(_pCampaignIds ^. _Default)
(_pPricingTypes ^. _Default)
_pSearchString
(_pSizeIds ^. _Default)
(_pIds ^. _Default)
(_pGroupIds ^. _Default)
(_pDirectorySiteIds ^. _Default)
(Just _pSortOrder)
_pPaymentSource
(_pSiteIds ^. _Default)
_pPageToken
(Just _pSortField)
(_pCompatibilities ^. _Default)
_pMaxStartDate
(_pAdvertiserIds ^. _Default)
_pMinStartDate
_pArchived
(Just _pMaxResults)
_pMinEndDate
(Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy PlacementsListResource)
mempty