gogol-dfareporting-0.4.0: Google DCM/DFA Reporting And Trafficking 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.DFAReporting.Ads.Insert

Contents

Description

Inserts a new ad.

See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.ads.insert.

Synopsis

REST Resource

type AdsInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("ads" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ad :> Post '[JSON] Ad)))))) Source #

A resource alias for dfareporting.ads.insert method which the AdsInsert request conforms to.

Creating a Request

adsInsert Source #

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

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

data AdsInsert Source #

Inserts a new ad.

See: adsInsert smart constructor.

Instances
Eq AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

Data AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

Methods

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

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

toConstr :: AdsInsert -> Constr #

dataTypeOf :: AdsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

Generic AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

Associated Types

type Rep AdsInsert :: Type -> Type #

GoogleRequest AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

Associated Types

type Rs AdsInsert :: Type #

type Scopes AdsInsert :: [Symbol] #

type Rep AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

type Rep AdsInsert = D1 (MetaData "AdsInsert" "Network.Google.Resource.DFAReporting.Ads.Insert" "gogol-dfareporting-0.4.0-9N9I1R95b3Y5YmOKldvlKw" False) (C1 (MetaCons "AdsInsert'" PrefixI True) (S1 (MetaSel (Just "_aiProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_aiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Ad)))
type Scopes AdsInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

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

Defined in Network.Google.Resource.DFAReporting.Ads.Insert

type Rs AdsInsert = Ad

Request Lenses

aiProFileId :: Lens' AdsInsert Int64 Source #

User profile ID associated with this request.

aiPayload :: Lens' AdsInsert Ad Source #

Multipart request metadata.