{-# 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.Ads.List
(
AdsListResource
, adsList
, AdsList
, alRemarketingListIds
, alLandingPageIds
, alCreativeIds
, alAdvertiserId
, alCampaignIds
, alSearchString
, alSizeIds
, alSSLCompliant
, alIds
, alProFileId
, alSortOrder
, alActive
, alCreativeOptimizationConfigurationIds
, alPlacementIds
, alSSLRequired
, alOverriddenEventTagId
, alPageToken
, alSortField
, alType
, alDynamicClickTracker
, alCompatibility
, alArchived
, alMaxResults
, alAudienceSegmentIds
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AdsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"ads" :>
QueryParams "remarketingListIds" (Textual Int64) :>
QueryParams "landingPageIds" (Textual Int64) :>
QueryParams "creativeIds" (Textual Int64) :>
QueryParam "advertiserId" (Textual Int64) :>
QueryParams "campaignIds" (Textual Int64) :>
QueryParam "searchString" Text :>
QueryParams "sizeIds" (Textual Int64) :>
QueryParam "sslCompliant" Bool :>
QueryParams "ids" (Textual Int64) :>
QueryParam "sortOrder" AdsListSortOrder :>
QueryParam "active" Bool :>
QueryParams
"creativeOptimizationConfigurationIds"
(Textual Int64)
:>
QueryParams "placementIds"
(Textual Int64)
:>
QueryParam "sslRequired" Bool :>
QueryParam "overriddenEventTagId"
(Textual Int64)
:>
QueryParam "pageToken" Text :>
QueryParam "sortField"
AdsListSortField
:>
QueryParams "type" AdsListType
:>
QueryParam
"dynamicClickTracker"
Bool
:>
QueryParam "compatibility"
AdsListCompatibility
:>
QueryParam "archived"
Bool
:>
QueryParam "maxResults"
(Textual Int32)
:>
QueryParams
"audienceSegmentIds"
(Textual Int64)
:>
QueryParam "alt"
AltJSON
:>
Get '[JSON]
AdsListResponse
data AdsList = AdsList'
{ _alRemarketingListIds :: !(Maybe [Textual Int64])
, _alLandingPageIds :: !(Maybe [Textual Int64])
, _alCreativeIds :: !(Maybe [Textual Int64])
, _alAdvertiserId :: !(Maybe (Textual Int64))
, _alCampaignIds :: !(Maybe [Textual Int64])
, _alSearchString :: !(Maybe Text)
, _alSizeIds :: !(Maybe [Textual Int64])
, _alSSLCompliant :: !(Maybe Bool)
, _alIds :: !(Maybe [Textual Int64])
, _alProFileId :: !(Textual Int64)
, _alSortOrder :: !AdsListSortOrder
, _alActive :: !(Maybe Bool)
, _alCreativeOptimizationConfigurationIds :: !(Maybe [Textual Int64])
, _alPlacementIds :: !(Maybe [Textual Int64])
, _alSSLRequired :: !(Maybe Bool)
, _alOverriddenEventTagId :: !(Maybe (Textual Int64))
, _alPageToken :: !(Maybe Text)
, _alSortField :: !AdsListSortField
, _alType :: !(Maybe [AdsListType])
, _alDynamicClickTracker :: !(Maybe Bool)
, _alCompatibility :: !(Maybe AdsListCompatibility)
, _alArchived :: !(Maybe Bool)
, _alMaxResults :: !(Textual Int32)
, _alAudienceSegmentIds :: !(Maybe [Textual Int64])
} deriving (Eq,Show,Data,Typeable,Generic)
adsList
:: Int64
-> AdsList
adsList pAlProFileId_ =
AdsList'
{ _alRemarketingListIds = Nothing
, _alLandingPageIds = Nothing
, _alCreativeIds = Nothing
, _alAdvertiserId = Nothing
, _alCampaignIds = Nothing
, _alSearchString = Nothing
, _alSizeIds = Nothing
, _alSSLCompliant = Nothing
, _alIds = Nothing
, _alProFileId = _Coerce # pAlProFileId_
, _alSortOrder = ADSAscending
, _alActive = Nothing
, _alCreativeOptimizationConfigurationIds = Nothing
, _alPlacementIds = Nothing
, _alSSLRequired = Nothing
, _alOverriddenEventTagId = Nothing
, _alPageToken = Nothing
, _alSortField = ALSFID
, _alType = Nothing
, _alDynamicClickTracker = Nothing
, _alCompatibility = Nothing
, _alArchived = Nothing
, _alMaxResults = 1000
, _alAudienceSegmentIds = Nothing
}
alRemarketingListIds :: Lens' AdsList [Int64]
alRemarketingListIds
= lens _alRemarketingListIds
(\ s a -> s{_alRemarketingListIds = a})
. _Default
. _Coerce
alLandingPageIds :: Lens' AdsList [Int64]
alLandingPageIds
= lens _alLandingPageIds
(\ s a -> s{_alLandingPageIds = a})
. _Default
. _Coerce
alCreativeIds :: Lens' AdsList [Int64]
alCreativeIds
= lens _alCreativeIds
(\ s a -> s{_alCreativeIds = a})
. _Default
. _Coerce
alAdvertiserId :: Lens' AdsList (Maybe Int64)
alAdvertiserId
= lens _alAdvertiserId
(\ s a -> s{_alAdvertiserId = a})
. mapping _Coerce
alCampaignIds :: Lens' AdsList [Int64]
alCampaignIds
= lens _alCampaignIds
(\ s a -> s{_alCampaignIds = a})
. _Default
. _Coerce
alSearchString :: Lens' AdsList (Maybe Text)
alSearchString
= lens _alSearchString
(\ s a -> s{_alSearchString = a})
alSizeIds :: Lens' AdsList [Int64]
alSizeIds
= lens _alSizeIds (\ s a -> s{_alSizeIds = a}) .
_Default
. _Coerce
alSSLCompliant :: Lens' AdsList (Maybe Bool)
alSSLCompliant
= lens _alSSLCompliant
(\ s a -> s{_alSSLCompliant = a})
alIds :: Lens' AdsList [Int64]
alIds
= lens _alIds (\ s a -> s{_alIds = a}) . _Default .
_Coerce
alProFileId :: Lens' AdsList Int64
alProFileId
= lens _alProFileId (\ s a -> s{_alProFileId = a}) .
_Coerce
alSortOrder :: Lens' AdsList AdsListSortOrder
alSortOrder
= lens _alSortOrder (\ s a -> s{_alSortOrder = a})
alActive :: Lens' AdsList (Maybe Bool)
alActive = lens _alActive (\ s a -> s{_alActive = a})
alCreativeOptimizationConfigurationIds :: Lens' AdsList [Int64]
alCreativeOptimizationConfigurationIds
= lens _alCreativeOptimizationConfigurationIds
(\ s a ->
s{_alCreativeOptimizationConfigurationIds = a})
. _Default
. _Coerce
alPlacementIds :: Lens' AdsList [Int64]
alPlacementIds
= lens _alPlacementIds
(\ s a -> s{_alPlacementIds = a})
. _Default
. _Coerce
alSSLRequired :: Lens' AdsList (Maybe Bool)
alSSLRequired
= lens _alSSLRequired
(\ s a -> s{_alSSLRequired = a})
alOverriddenEventTagId :: Lens' AdsList (Maybe Int64)
alOverriddenEventTagId
= lens _alOverriddenEventTagId
(\ s a -> s{_alOverriddenEventTagId = a})
. mapping _Coerce
alPageToken :: Lens' AdsList (Maybe Text)
alPageToken
= lens _alPageToken (\ s a -> s{_alPageToken = a})
alSortField :: Lens' AdsList AdsListSortField
alSortField
= lens _alSortField (\ s a -> s{_alSortField = a})
alType :: Lens' AdsList [AdsListType]
alType
= lens _alType (\ s a -> s{_alType = a}) . _Default .
_Coerce
alDynamicClickTracker :: Lens' AdsList (Maybe Bool)
alDynamicClickTracker
= lens _alDynamicClickTracker
(\ s a -> s{_alDynamicClickTracker = a})
alCompatibility :: Lens' AdsList (Maybe AdsListCompatibility)
alCompatibility
= lens _alCompatibility
(\ s a -> s{_alCompatibility = a})
alArchived :: Lens' AdsList (Maybe Bool)
alArchived
= lens _alArchived (\ s a -> s{_alArchived = a})
alMaxResults :: Lens' AdsList Int32
alMaxResults
= lens _alMaxResults (\ s a -> s{_alMaxResults = a})
. _Coerce
alAudienceSegmentIds :: Lens' AdsList [Int64]
alAudienceSegmentIds
= lens _alAudienceSegmentIds
(\ s a -> s{_alAudienceSegmentIds = a})
. _Default
. _Coerce
instance GoogleRequest AdsList where
type Rs AdsList = AdsListResponse
type Scopes AdsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AdsList'{..}
= go _alProFileId (_alRemarketingListIds ^. _Default)
(_alLandingPageIds ^. _Default)
(_alCreativeIds ^. _Default)
_alAdvertiserId
(_alCampaignIds ^. _Default)
_alSearchString
(_alSizeIds ^. _Default)
_alSSLCompliant
(_alIds ^. _Default)
(Just _alSortOrder)
_alActive
(_alCreativeOptimizationConfigurationIds ^. _Default)
(_alPlacementIds ^. _Default)
_alSSLRequired
_alOverriddenEventTagId
_alPageToken
(Just _alSortField)
(_alType ^. _Default)
_alDynamicClickTracker
_alCompatibility
_alArchived
(Just _alMaxResults)
(_alAudienceSegmentIds ^. _Default)
(Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy AdsListResource) mempty