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 URL channel to the host AdSense account.
See: AdSense Host API Reference for adsensehost.urlchannels.insert
.
- type URLChannelsInsertResource = "adsensehost" :> ("v4.1" :> ("adclients" :> (Capture "adClientId" Text :> ("urlchannels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] URLChannel :> Post '[JSON] URLChannel))))))
- urlChannelsInsert :: URLChannel -> Text -> URLChannelsInsert
- data URLChannelsInsert
- uciPayload :: Lens' URLChannelsInsert URLChannel
- uciAdClientId :: Lens' URLChannelsInsert Text
REST Resource
type URLChannelsInsertResource = "adsensehost" :> ("v4.1" :> ("adclients" :> (Capture "adClientId" Text :> ("urlchannels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] URLChannel :> Post '[JSON] URLChannel)))))) Source #
A resource alias for adsensehost.urlchannels.insert
method which the
URLChannelsInsert
request conforms to.
Creating a Request
Creates a value of URLChannelsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data URLChannelsInsert Source #
Add a new URL channel to the host AdSense account.
See: urlChannelsInsert
smart constructor.
Request Lenses
uciPayload :: Lens' URLChannelsInsert URLChannel Source #
Multipart request metadata.
uciAdClientId :: Lens' URLChannelsInsert Text Source #
Ad client to which the new URL channel will be added.