| 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 |
Network.Google.Resource.AdSenseHost.Accounts.AdUnits.Patch
Description
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
See: AdSense Host API Reference for adsensehost.accounts.adunits.patch.
Synopsis
- type AccountsAdUnitsPatchResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "adUnitId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AdUnit :> Patch '[JSON] AdUnit)))))))))
- accountsAdUnitsPatch :: Text -> AdUnit -> Text -> Text -> AccountsAdUnitsPatch
- data AccountsAdUnitsPatch
- aaupAdUnitId :: Lens' AccountsAdUnitsPatch Text
- aaupPayload :: Lens' AccountsAdUnitsPatch AdUnit
- aaupAdClientId :: Lens' AccountsAdUnitsPatch Text
- aaupAccountId :: Lens' AccountsAdUnitsPatch Text
REST Resource
type AccountsAdUnitsPatchResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "adUnitId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AdUnit :> Patch '[JSON] AdUnit))))))))) Source #
A resource alias for adsensehost.accounts.adunits.patch method which the
AccountsAdUnitsPatch request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> AdUnit | |
| -> Text | |
| -> Text | |
| -> AccountsAdUnitsPatch |
Creates a value of AccountsAdUnitsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsAdUnitsPatch Source #
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
See: accountsAdUnitsPatch smart constructor.
Instances
Request Lenses
aaupAdUnitId :: Lens' AccountsAdUnitsPatch Text Source #
Ad unit to get.
aaupPayload :: Lens' AccountsAdUnitsPatch AdUnit Source #
Multipart request metadata.
aaupAdClientId :: Lens' AccountsAdUnitsPatch Text Source #
Ad client which contains the ad unit.
aaupAccountId :: Lens' AccountsAdUnitsPatch Text Source #
Account which contains the ad client.