Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Add a new custom channel to the host AdSense account.
See: AdSense Host API Reference for adsensehost.customchannels.insert
.
Synopsis
- type CustomChannelsInsertResource = "adsensehost" :> ("v4.1" :> ("adclients" :> (Capture "adClientId" Text :> ("customchannels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomChannel :> Post '[JSON] CustomChannel))))))
- customChannelsInsert :: CustomChannel -> Text -> CustomChannelsInsert
- data CustomChannelsInsert
- cciPayload :: Lens' CustomChannelsInsert CustomChannel
- cciAdClientId :: Lens' CustomChannelsInsert Text
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
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
Request Lenses
cciPayload :: Lens' CustomChannelsInsert CustomChannel Source #
Multipart request metadata.
cciAdClientId :: Lens' CustomChannelsInsert Text Source #
Ad client to which the new custom channel will be added.