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

Contents

Description

Insert the supplied ad unit into the specified publisher AdSense account.

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

Synopsis

REST Resource

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

A resource alias for adsensehost.accounts.adunits.insert method which the AccountsAdUnitsInsert request conforms to.

Creating a Request

accountsAdUnitsInsert Source #

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

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

data AccountsAdUnitsInsert Source #

Insert the supplied ad unit into the specified publisher AdSense account.

See: accountsAdUnitsInsert smart constructor.

Instances
Eq AccountsAdUnitsInsert Source # 
Instance details

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

Data AccountsAdUnitsInsert Source # 
Instance details

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

Methods

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

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

toConstr :: AccountsAdUnitsInsert -> Constr #

dataTypeOf :: AccountsAdUnitsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccountsAdUnitsInsert Source # 
Instance details

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

Generic AccountsAdUnitsInsert Source # 
Instance details

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

Associated Types

type Rep AccountsAdUnitsInsert :: Type -> Type #

GoogleRequest AccountsAdUnitsInsert Source # 
Instance details

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

type Rep AccountsAdUnitsInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

aauiPayload :: Lens' AccountsAdUnitsInsert AdUnit Source #

Multipart request metadata.

aauiAdClientId :: Lens' AccountsAdUnitsInsert Text Source #

Ad client into which to insert the ad unit.

aauiAccountId :: Lens' AccountsAdUnitsInsert Text Source #

Account which will contain the ad unit.