gogol-adsense-host-0.4.0: Google AdSense Host 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.AdSenseHost.Accounts.AdUnits.Patch

Contents

Description

Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.

See: AdSense Host API Reference for adsensehost.accounts.adunits.patch.

Synopsis

REST Resource

type AccountsAdUnitsPatchResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "adUnitId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AdUnit :> Patch '[JSON] AdUnit))))))))) Source #

A resource alias for adsensehost.accounts.adunits.patch method which the AccountsAdUnitsPatch request conforms to.

Creating a Request

accountsAdUnitsPatch Source #

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

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

data AccountsAdUnitsPatch Source #

Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.

See: accountsAdUnitsPatch smart constructor.

Instances
Eq AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Data AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Methods

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

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

toConstr :: AccountsAdUnitsPatch -> Constr #

dataTypeOf :: AccountsAdUnitsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Generic AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Associated Types

type Rep AccountsAdUnitsPatch :: Type -> Type #

GoogleRequest AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Associated Types

type Rs AccountsAdUnitsPatch :: Type #

type Scopes AccountsAdUnitsPatch :: [Symbol] #

type Rep AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

type Rep AccountsAdUnitsPatch = D1 (MetaData "AccountsAdUnitsPatch" "Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch" "gogol-adsense-host-0.4.0-9ZqQWUle4m2HKOQnxH9pTD" False) (C1 (MetaCons "AccountsAdUnitsPatch'" PrefixI True) ((S1 (MetaSel (Just "_aaupAdUnitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aaupPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AdUnit)) :*: (S1 (MetaSel (Just "_aaupAdClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aaupAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes AccountsAdUnitsPatch Source # 
Instance details

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

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

Defined in Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch

Request Lenses

aaupPayload :: Lens' AccountsAdUnitsPatch AdUnit Source #

Multipart request metadata.

aaupAdClientId :: Lens' AccountsAdUnitsPatch Text Source #

Ad client which contains the ad unit.

aaupAccountId :: Lens' AccountsAdUnitsPatch Text Source #

Account which contains the ad client.