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

Contents

Description

Get ad code for the specified ad unit, attaching the specified host custom channels.

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

Synopsis

REST Resource

type AccountsAdUnitsGetAdCodeResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (Capture "adUnitId" Text :> ("adcode" :> (QueryParams "hostCustomChannelId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] AdCode)))))))))) Source #

A resource alias for adsensehost.accounts.adunits.getAdCode method which the AccountsAdUnitsGetAdCode request conforms to.

Creating a Request

accountsAdUnitsGetAdCode Source #

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

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

data AccountsAdUnitsGetAdCode Source #

Get ad code for the specified ad unit, attaching the specified host custom channels.

See: accountsAdUnitsGetAdCode smart constructor.

Instances
Eq AccountsAdUnitsGetAdCode Source # 
Instance details

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

Data AccountsAdUnitsGetAdCode Source # 
Instance details

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

Methods

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

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

toConstr :: AccountsAdUnitsGetAdCode -> Constr #

dataTypeOf :: AccountsAdUnitsGetAdCode -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccountsAdUnitsGetAdCode Source # 
Instance details

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

Generic AccountsAdUnitsGetAdCode Source # 
Instance details

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

Associated Types

type Rep AccountsAdUnitsGetAdCode :: Type -> Type #

GoogleRequest AccountsAdUnitsGetAdCode Source # 
Instance details

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

type Rep AccountsAdUnitsGetAdCode Source # 
Instance details

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

type Rep AccountsAdUnitsGetAdCode = D1 (MetaData "AccountsAdUnitsGetAdCode" "Network.Google.Resource.AdSenseHost.Accounts.AdUnits.GetAdCode" "gogol-adsense-host-0.4.0-9ZqQWUle4m2HKOQnxH9pTD" False) (C1 (MetaCons "AccountsAdUnitsGetAdCode'" PrefixI True) ((S1 (MetaSel (Just "_aaugacAdUnitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aaugacAdClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_aaugacAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aaugacHostCustomChannelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))))
type Scopes AccountsAdUnitsGetAdCode Source # 
Instance details

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

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

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

Request Lenses

aaugacAdUnitId :: Lens' AccountsAdUnitsGetAdCode Text Source #

Ad unit to get the code for.

aaugacAdClientId :: Lens' AccountsAdUnitsGetAdCode Text Source #

Ad client with contains the ad unit.

aaugacAccountId :: Lens' AccountsAdUnitsGetAdCode Text Source #

Account which contains the ad client.

aaugacHostCustomChannelId :: Lens' AccountsAdUnitsGetAdCode [Text] Source #

Host custom channel to attach to the ad code.