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 |
Insert the supplied ad unit into the specified publisher AdSense account.
See: AdSense Host API Reference for adsensehost.accounts.adunits.insert
.
Synopsis
- type AccountsAdUnitsInsertResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AdUnit :> Post '[JSON] AdUnit))))))))
- accountsAdUnitsInsert :: AdUnit -> Text -> Text -> AccountsAdUnitsInsert
- data AccountsAdUnitsInsert
- aauiPayload :: Lens' AccountsAdUnitsInsert AdUnit
- aauiAdClientId :: Lens' AccountsAdUnitsInsert Text
- aauiAccountId :: Lens' AccountsAdUnitsInsert Text
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
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.