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 |
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
- 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))))))))))
- accountsAdUnitsGetAdCode :: Text -> Text -> Text -> AccountsAdUnitsGetAdCode
- data AccountsAdUnitsGetAdCode
- aaugacAdUnitId :: Lens' AccountsAdUnitsGetAdCode Text
- aaugacAdClientId :: Lens' AccountsAdUnitsGetAdCode Text
- aaugacAccountId :: Lens' AccountsAdUnitsGetAdCode Text
- aaugacHostCustomChannelId :: Lens' AccountsAdUnitsGetAdCode [Text]
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
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.