gogol-adsense-host-0.3.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.CustomChannels.Insert

Contents

Description

Add a new custom channel to the host AdSense account.

See: AdSense Host API Reference for adsensehost.customchannels.insert.

Synopsis

REST Resource

type CustomChannelsInsertResource = "adsensehost" :> ("v4.1" :> ("adclients" :> (Capture "adClientId" Text :> ("customchannels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomChannel :> Post '[JSON] CustomChannel)))))) Source #

A resource alias for adsensehost.customchannels.insert method which the CustomChannelsInsert request conforms to.

Creating a Request

customChannelsInsert Source #

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

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

data CustomChannelsInsert Source #

Add a new custom channel to the host AdSense account.

See: customChannelsInsert smart constructor.

Instances

Eq CustomChannelsInsert Source # 
Data CustomChannelsInsert Source # 

Methods

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

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

toConstr :: CustomChannelsInsert -> Constr #

dataTypeOf :: CustomChannelsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CustomChannelsInsert Source # 
Generic CustomChannelsInsert Source # 
GoogleRequest CustomChannelsInsert Source # 
type Rep CustomChannelsInsert Source # 
type Rep CustomChannelsInsert = D1 (MetaData "CustomChannelsInsert" "Network.Google.Resource.AdSenseHost.CustomChannels.Insert" "gogol-adsense-host-0.3.0-7sOjHR6zIpFE3PXwWfsQsy" False) (C1 (MetaCons "CustomChannelsInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cciPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CustomChannel)) (S1 (MetaSel (Just Symbol "_cciAdClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes CustomChannelsInsert Source # 
type Scopes CustomChannelsInsert = (:) Symbol "https://www.googleapis.com/auth/adsensehost" ([] Symbol)
type Rs CustomChannelsInsert Source # 

Request Lenses

cciAdClientId :: Lens' CustomChannelsInsert Text Source #

Ad client to which the new custom channel will be added.