Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Inserts a new ad.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.ads.insert
.
Synopsis
- type AdsInsertResource = "dfareporting" :> ("v3.3" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("ads" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ad :> Post '[JSON] Ad))))))
- adsInsert :: Int64 -> Ad -> AdsInsert
- data AdsInsert
- aiProFileId :: Lens' AdsInsert Int64
- aiPayload :: Lens' AdsInsert Ad
REST Resource
type AdsInsertResource = "dfareporting" :> ("v3.3" :> ("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
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:
Inserts a new ad.
See: adsInsert
smart constructor.
Instances
Eq AdsInsert Source # | |
Data AdsInsert Source # | |
Defined in Network.Google.Resource.DFAReporting.Ads.Insert 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 # | |
Generic AdsInsert Source # | |
GoogleRequest AdsInsert Source # | |
type Rep AdsInsert Source # | |
Defined in Network.Google.Resource.DFAReporting.Ads.Insert type Rep AdsInsert = D1 (MetaData "AdsInsert" "Network.Google.Resource.DFAReporting.Ads.Insert" "gogol-dfareporting-0.5.0-H2nEimqYPoYBpPsdI4WnkF" 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 # | |
type Rs AdsInsert Source # | |