gogol-adexchange-seller-0.4.0: Google Ad Exchange Seller SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Contents

Description

Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.

See: Ad Exchange Seller API Reference for adexchangeseller.accounts.reports.generate.

Synopsis

REST Resource

type AccountsReportsGenerateResource = ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Report))))))))))))))) :<|> ("adexchangeseller" :> ("v2.0" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Word32) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))))))))))) Source #

A resource alias for adexchangeseller.accounts.reports.generate method which the AccountsReportsGenerate request conforms to.

Creating a Request

accountsReportsGenerate Source #

Creates a value of AccountsReportsGenerate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AccountsReportsGenerate Source #

Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.

See: accountsReportsGenerate smart constructor.

Instances
Eq AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Data AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccountsReportsGenerate -> c AccountsReportsGenerate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccountsReportsGenerate #

toConstr :: AccountsReportsGenerate -> Constr #

dataTypeOf :: AccountsReportsGenerate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccountsReportsGenerate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccountsReportsGenerate) #

gmapT :: (forall b. Data b => b -> b) -> AccountsReportsGenerate -> AccountsReportsGenerate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccountsReportsGenerate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccountsReportsGenerate -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccountsReportsGenerate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccountsReportsGenerate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccountsReportsGenerate -> m AccountsReportsGenerate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsReportsGenerate -> m AccountsReportsGenerate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsReportsGenerate -> m AccountsReportsGenerate #

Show AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Generic AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Associated Types

type Rep AccountsReportsGenerate :: Type -> Type #

GoogleRequest AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

GoogleRequest (MediaDownload AccountsReportsGenerate) Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

type Rep AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

type Rep AccountsReportsGenerate = D1 (MetaData "AccountsReportsGenerate" "Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate" "gogol-adexchange-seller-0.4.0-HYV6upaHGZRCooKGtAplfQ" False) (C1 (MetaCons "AccountsReportsGenerate'" PrefixI True) (((S1 (MetaSel (Just "_argDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_argLocale") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_argEndDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_argStartDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_argAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) :*: ((S1 (MetaSel (Just "_argMetric") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_argSort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_argFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_argStartIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32))) :*: S1 (MetaSel (Just "_argMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32))))))))
type Scopes AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

type Scopes AccountsReportsGenerate = "https://www.googleapis.com/auth/adexchange.seller" ': ("https://www.googleapis.com/auth/adexchange.seller.readonly" ': ([] :: [Symbol]))
type Rs AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

type Scopes (MediaDownload AccountsReportsGenerate) Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

type Rs (MediaDownload AccountsReportsGenerate) Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeSeller.Accounts.Reports.Generate

Request Lenses

argDimension :: Lens' AccountsReportsGenerate [Text] Source #

Dimensions to base the report on.

argLocale :: Lens' AccountsReportsGenerate (Maybe Text) Source #

Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.

argEndDate :: Lens' AccountsReportsGenerate Text Source #

End of the date range to report on in "YYYY-MM-DD" format, inclusive.

argStartDate :: Lens' AccountsReportsGenerate Text Source #

Start of the date range to report on in "YYYY-MM-DD" format, inclusive.

argAccountId :: Lens' AccountsReportsGenerate Text Source #

Account which owns the generated report.

argMetric :: Lens' AccountsReportsGenerate [Text] Source #

Numeric columns to include in the report.

argSort :: Lens' AccountsReportsGenerate [Text] Source #

The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.

argFilter :: Lens' AccountsReportsGenerate [Text] Source #

Filters to be run on the report.

argStartIndex :: Lens' AccountsReportsGenerate (Maybe Word32) Source #

Index of the first row of report data to return.

argMaxResults :: Lens' AccountsReportsGenerate (Maybe Word32) Source #

The maximum number of rows of report data to return.