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.CreativeAssets.Insert

Contents

Description

Inserts a new creative asset.

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

Synopsis

REST Resource

type CreativeAssetsInsertResource = ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata))))))))) :<|> ("upload" :> ("dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("creativeAssets" :> (Capture "advertiserId" (Textual Int64) :> ("creativeAssets" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] CreativeAssetMetadata :> Post '[JSON] CreativeAssetMetadata))))))))))) Source #

A resource alias for dfareporting.creativeAssets.insert method which the CreativeAssetsInsert request conforms to.

Creating a Request

creativeAssetsInsert Source #

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

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

data CreativeAssetsInsert Source #

Inserts a new creative asset.

See: creativeAssetsInsert smart constructor.

Instances
Eq CreativeAssetsInsert Source # 
Instance details

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

Data CreativeAssetsInsert Source # 
Instance details

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

Methods

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

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

toConstr :: CreativeAssetsInsert -> Constr #

dataTypeOf :: CreativeAssetsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreativeAssetsInsert Source # 
Instance details

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

Generic CreativeAssetsInsert Source # 
Instance details

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

Associated Types

type Rep CreativeAssetsInsert :: Type -> Type #

GoogleRequest CreativeAssetsInsert Source # 
Instance details

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

Associated Types

type Rs CreativeAssetsInsert :: Type #

type Scopes CreativeAssetsInsert :: [Symbol] #

GoogleRequest (MediaUpload CreativeAssetsInsert) Source # 
Instance details

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

type Rep CreativeAssetsInsert Source # 
Instance details

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

type Rep CreativeAssetsInsert = D1 (MetaData "CreativeAssetsInsert" "Network.Google.Resource.DFAReporting.CreativeAssets.Insert" "gogol-dfareporting-0.4.0-9N9I1R95b3Y5YmOKldvlKw" False) (C1 (MetaCons "CreativeAssetsInsert'" PrefixI True) (S1 (MetaSel (Just "_caiAdvertiserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: (S1 (MetaSel (Just "_caiProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_caiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreativeAssetMetadata))))
type Scopes CreativeAssetsInsert Source # 
Instance details

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

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

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

type Scopes (MediaUpload CreativeAssetsInsert) Source # 
Instance details

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

type Rs (MediaUpload CreativeAssetsInsert) Source # 
Instance details

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

Request Lenses

caiAdvertiserId :: Lens' CreativeAssetsInsert Int64 Source #

Advertiser ID of this creative. This is a required field.

caiProFileId :: Lens' CreativeAssetsInsert Int64 Source #

User profile ID associated with this request.