gogol-adsense-0.4.0: Google AdSense Management 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.AdSense.Accounts.Reports.Generate

Contents

Description

Generate an AdSense 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: AdSense Management API Reference for adsense.accounts.reports.generate.

Synopsis

REST Resource

type AccountsReportsGenerateResource = ("adsense" :> ("v1.4" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParam "currency" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Int32) :> (QueryParam "useTimezoneReporting" Bool :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdsenseReportsGenerateResponse))))))))))))))))) :<|> ("adsense" :> ("v1.4" :> ("accounts" :> (Capture "accountId" Text :> ("reports" :> (QueryParam "startDate" Text :> (QueryParam "endDate" Text :> (QueryParams "dimension" Text :> (QueryParam "locale" Text :> (QueryParams "metric" Text :> (QueryParam "currency" Text :> (QueryParams "sort" Text :> (QueryParams "filter" Text :> (QueryParam "startIndex" (Textual Int32) :> (QueryParam "useTimezoneReporting" Bool :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))))))))))))) Source #

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

Creating a Request

data AccountsReportsGenerate Source #

Generate an AdSense 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.AdSense.Accounts.Reports.Generate

Data AccountsReportsGenerate Source # 
Instance details

Defined in Network.Google.Resource.AdSense.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.AdSense.Accounts.Reports.Generate

Generic AccountsReportsGenerate Source # 
Instance details

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

Associated Types

type Rep AccountsReportsGenerate :: Type -> Type #

GoogleRequest AccountsReportsGenerate Source # 
Instance details

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

GoogleRequest (MediaDownload AccountsReportsGenerate) Source # 
Instance details

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

type Rep AccountsReportsGenerate Source # 
Instance details

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

type Rep AccountsReportsGenerate = D1 (MetaData "AccountsReportsGenerate" "Network.Google.Resource.AdSense.Accounts.Reports.Generate" "gogol-adsense-0.4.0-8cOCEo3eYdbFA6XwLd5vHV" 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 "_argCurrency") 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 Int32))) :*: (S1 (MetaSel (Just "_argUseTimezoneReporting") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_argMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))))))
type Scopes AccountsReportsGenerate Source # 
Instance details

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

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

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

type Scopes (MediaDownload AccountsReportsGenerate) Source # 
Instance details

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

type Rs (MediaDownload AccountsReportsGenerate) Source # 
Instance details

Defined in Network.Google.Resource.AdSense.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 upon which to report.

argMetric :: Lens' AccountsReportsGenerate [Text] Source #

Numeric columns to include in the report.

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

Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.

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 Int32) Source #

Index of the first row of report data to return.

argUseTimezoneReporting :: Lens' AccountsReportsGenerate (Maybe Bool) Source #

Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.

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

The maximum number of rows of report data to return.