gogol-dfareporting-0.2.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.Patch

Contents

Description

Updates an existing ad. This method supports patch semantics.

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

Synopsis

REST Resource

type AdsPatchResource = "dfareporting" :> ("v2.7" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("ads" :> (QueryParam "id" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ad :> Patch '[JSON] Ad))))))) Source #

A resource alias for dfareporting.ads.patch method which the AdsPatch request conforms to.

Creating a Request

adsPatch Source #

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

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

data AdsPatch Source #

Updates an existing ad. This method supports patch semantics.

See: adsPatch smart constructor.

Instances

Eq AdsPatch Source # 
Data AdsPatch Source # 

Methods

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

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

toConstr :: AdsPatch -> Constr #

dataTypeOf :: AdsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AdsPatch Source # 
Generic AdsPatch Source # 

Associated Types

type Rep AdsPatch :: * -> * #

Methods

from :: AdsPatch -> Rep AdsPatch x #

to :: Rep AdsPatch x -> AdsPatch #

GoogleRequest AdsPatch Source # 

Associated Types

type Rs AdsPatch :: * #

type Scopes AdsPatch :: [Symbol] #

type Rep AdsPatch Source # 
type Rep AdsPatch = D1 (MetaData "AdsPatch" "Network.Google.Resource.DFAReporting.Ads.Patch" "gogol-dfareporting-0.2.0-3vkytqIdbR4DxGH3Av8E8" False) (C1 (MetaCons "AdsPatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_adsdProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))) ((:*:) (S1 (MetaSel (Just Symbol "_adsdPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Ad)) (S1 (MetaSel (Just Symbol "_adsdId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))))))
type Scopes AdsPatch Source # 
type Scopes AdsPatch = (:) Symbol "https://www.googleapis.com/auth/dfatrafficking" ([] Symbol)
type Rs AdsPatch Source # 
type Rs AdsPatch = Ad

Request Lenses

adsdProFileId :: Lens' AdsPatch Int64 Source #

User profile ID associated with this request.

adsdPayload :: Lens' AdsPatch Ad Source #

Multipart request metadata.