{-# 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.PlacementGroups.List
(
PlacementGroupsListResource
, placementGroupsList
, PlacementGroupsList
, pglPlacementStrategyIds
, pglContentCategoryIds
, pglMaxEndDate
, pglCampaignIds
, pglPricingTypes
, pglSearchString
, pglIds
, pglProFileId
, pglPlacementGroupType
, pglDirectorySiteIds
, pglSortOrder
, pglSiteIds
, pglPageToken
, pglSortField
, pglMaxStartDate
, pglAdvertiserIds
, pglMinStartDate
, pglArchived
, pglMaxResults
, pglMinEndDate
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type PlacementGroupsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"placementGroups" :>
QueryParams "placementStrategyIds" (Textual Int64) :>
QueryParams "contentCategoryIds" (Textual Int64) :>
QueryParam "maxEndDate" Text :>
QueryParams "campaignIds" (Textual Int64) :>
QueryParams "pricingTypes"
PlacementGroupsListPricingTypes
:>
QueryParam "searchString" Text :>
QueryParams "ids" (Textual Int64) :>
QueryParam "placementGroupType"
PlacementGroupsListPlacementGroupType
:>
QueryParams "directorySiteIds" (Textual Int64) :>
QueryParam "sortOrder"
PlacementGroupsListSortOrder
:>
QueryParams "siteIds" (Textual Int64) :>
QueryParam "pageToken" Text :>
QueryParam "sortField"
PlacementGroupsListSortField
:>
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]
PlacementGroupsListResponse
data PlacementGroupsList = PlacementGroupsList'
{ _pglPlacementStrategyIds :: !(Maybe [Textual Int64])
, _pglContentCategoryIds :: !(Maybe [Textual Int64])
, _pglMaxEndDate :: !(Maybe Text)
, _pglCampaignIds :: !(Maybe [Textual Int64])
, _pglPricingTypes :: !(Maybe [PlacementGroupsListPricingTypes])
, _pglSearchString :: !(Maybe Text)
, _pglIds :: !(Maybe [Textual Int64])
, _pglProFileId :: !(Textual Int64)
, _pglPlacementGroupType :: !(Maybe PlacementGroupsListPlacementGroupType)
, _pglDirectorySiteIds :: !(Maybe [Textual Int64])
, _pglSortOrder :: !PlacementGroupsListSortOrder
, _pglSiteIds :: !(Maybe [Textual Int64])
, _pglPageToken :: !(Maybe Text)
, _pglSortField :: !PlacementGroupsListSortField
, _pglMaxStartDate :: !(Maybe Text)
, _pglAdvertiserIds :: !(Maybe [Textual Int64])
, _pglMinStartDate :: !(Maybe Text)
, _pglArchived :: !(Maybe Bool)
, _pglMaxResults :: !(Textual Int32)
, _pglMinEndDate :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
placementGroupsList
:: Int64
-> PlacementGroupsList
placementGroupsList pPglProFileId_ =
PlacementGroupsList'
{ _pglPlacementStrategyIds = Nothing
, _pglContentCategoryIds = Nothing
, _pglMaxEndDate = Nothing
, _pglCampaignIds = Nothing
, _pglPricingTypes = Nothing
, _pglSearchString = Nothing
, _pglIds = Nothing
, _pglProFileId = _Coerce # pPglProFileId_
, _pglPlacementGroupType = Nothing
, _pglDirectorySiteIds = Nothing
, _pglSortOrder = PGLSOAscending
, _pglSiteIds = Nothing
, _pglPageToken = Nothing
, _pglSortField = PGLSFID
, _pglMaxStartDate = Nothing
, _pglAdvertiserIds = Nothing
, _pglMinStartDate = Nothing
, _pglArchived = Nothing
, _pglMaxResults = 800
, _pglMinEndDate = Nothing
}
pglPlacementStrategyIds :: Lens' PlacementGroupsList [Int64]
pglPlacementStrategyIds
= lens _pglPlacementStrategyIds
(\ s a -> s{_pglPlacementStrategyIds = a})
. _Default
. _Coerce
pglContentCategoryIds :: Lens' PlacementGroupsList [Int64]
pglContentCategoryIds
= lens _pglContentCategoryIds
(\ s a -> s{_pglContentCategoryIds = a})
. _Default
. _Coerce
pglMaxEndDate :: Lens' PlacementGroupsList (Maybe Text)
pglMaxEndDate
= lens _pglMaxEndDate
(\ s a -> s{_pglMaxEndDate = a})
pglCampaignIds :: Lens' PlacementGroupsList [Int64]
pglCampaignIds
= lens _pglCampaignIds
(\ s a -> s{_pglCampaignIds = a})
. _Default
. _Coerce
pglPricingTypes :: Lens' PlacementGroupsList [PlacementGroupsListPricingTypes]
pglPricingTypes
= lens _pglPricingTypes
(\ s a -> s{_pglPricingTypes = a})
. _Default
. _Coerce
pglSearchString :: Lens' PlacementGroupsList (Maybe Text)
pglSearchString
= lens _pglSearchString
(\ s a -> s{_pglSearchString = a})
pglIds :: Lens' PlacementGroupsList [Int64]
pglIds
= lens _pglIds (\ s a -> s{_pglIds = a}) . _Default .
_Coerce
pglProFileId :: Lens' PlacementGroupsList Int64
pglProFileId
= lens _pglProFileId (\ s a -> s{_pglProFileId = a})
. _Coerce
pglPlacementGroupType :: Lens' PlacementGroupsList (Maybe PlacementGroupsListPlacementGroupType)
pglPlacementGroupType
= lens _pglPlacementGroupType
(\ s a -> s{_pglPlacementGroupType = a})
pglDirectorySiteIds :: Lens' PlacementGroupsList [Int64]
pglDirectorySiteIds
= lens _pglDirectorySiteIds
(\ s a -> s{_pglDirectorySiteIds = a})
. _Default
. _Coerce
pglSortOrder :: Lens' PlacementGroupsList PlacementGroupsListSortOrder
pglSortOrder
= lens _pglSortOrder (\ s a -> s{_pglSortOrder = a})
pglSiteIds :: Lens' PlacementGroupsList [Int64]
pglSiteIds
= lens _pglSiteIds (\ s a -> s{_pglSiteIds = a}) .
_Default
. _Coerce
pglPageToken :: Lens' PlacementGroupsList (Maybe Text)
pglPageToken
= lens _pglPageToken (\ s a -> s{_pglPageToken = a})
pglSortField :: Lens' PlacementGroupsList PlacementGroupsListSortField
pglSortField
= lens _pglSortField (\ s a -> s{_pglSortField = a})
pglMaxStartDate :: Lens' PlacementGroupsList (Maybe Text)
pglMaxStartDate
= lens _pglMaxStartDate
(\ s a -> s{_pglMaxStartDate = a})
pglAdvertiserIds :: Lens' PlacementGroupsList [Int64]
pglAdvertiserIds
= lens _pglAdvertiserIds
(\ s a -> s{_pglAdvertiserIds = a})
. _Default
. _Coerce
pglMinStartDate :: Lens' PlacementGroupsList (Maybe Text)
pglMinStartDate
= lens _pglMinStartDate
(\ s a -> s{_pglMinStartDate = a})
pglArchived :: Lens' PlacementGroupsList (Maybe Bool)
pglArchived
= lens _pglArchived (\ s a -> s{_pglArchived = a})
pglMaxResults :: Lens' PlacementGroupsList Int32
pglMaxResults
= lens _pglMaxResults
(\ s a -> s{_pglMaxResults = a})
. _Coerce
pglMinEndDate :: Lens' PlacementGroupsList (Maybe Text)
pglMinEndDate
= lens _pglMinEndDate
(\ s a -> s{_pglMinEndDate = a})
instance GoogleRequest PlacementGroupsList where
type Rs PlacementGroupsList =
PlacementGroupsListResponse
type Scopes PlacementGroupsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient PlacementGroupsList'{..}
= go _pglProFileId
(_pglPlacementStrategyIds ^. _Default)
(_pglContentCategoryIds ^. _Default)
_pglMaxEndDate
(_pglCampaignIds ^. _Default)
(_pglPricingTypes ^. _Default)
_pglSearchString
(_pglIds ^. _Default)
_pglPlacementGroupType
(_pglDirectorySiteIds ^. _Default)
(Just _pglSortOrder)
(_pglSiteIds ^. _Default)
_pglPageToken
(Just _pglSortField)
_pglMaxStartDate
(_pglAdvertiserIds ^. _Default)
_pglMinStartDate
_pglArchived
(Just _pglMaxResults)
_pglMinEndDate
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy PlacementGroupsListResource)
mempty