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 |
List all ad units in the specified publisher's AdSense account.
See: AdSense Host API Reference for adsensehost.accounts.adunits.list
.
Synopsis
- type AccountsAdUnitsListResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "includeInactive" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdUnits))))))))))
- accountsAdUnitsList :: Text -> Text -> AccountsAdUnitsList
- data AccountsAdUnitsList
- aaulIncludeInactive :: Lens' AccountsAdUnitsList (Maybe Bool)
- aaulAdClientId :: Lens' AccountsAdUnitsList Text
- aaulAccountId :: Lens' AccountsAdUnitsList Text
- aaulPageToken :: Lens' AccountsAdUnitsList (Maybe Text)
- aaulMaxResults :: Lens' AccountsAdUnitsList (Maybe Word32)
REST Resource
type AccountsAdUnitsListResource = "adsensehost" :> ("v4.1" :> ("accounts" :> (Capture "accountId" Text :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "includeInactive" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdUnits)))))))))) Source #
A resource alias for adsensehost.accounts.adunits.list
method which the
AccountsAdUnitsList
request conforms to.
Creating a Request
Creates a value of AccountsAdUnitsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsAdUnitsList Source #
List all ad units in the specified publisher's AdSense account.
See: accountsAdUnitsList
smart constructor.
Instances
Request Lenses
aaulIncludeInactive :: Lens' AccountsAdUnitsList (Maybe Bool) Source #
Whether to include inactive ad units. Default: true.
aaulAdClientId :: Lens' AccountsAdUnitsList Text Source #
Ad client for which to list ad units.
aaulAccountId :: Lens' AccountsAdUnitsList Text Source #
Account which contains the ad client.
aaulPageToken :: Lens' AccountsAdUnitsList (Maybe Text) Source #
A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
aaulMaxResults :: Lens' AccountsAdUnitsList (Maybe Word32) Source #
The maximum number of ad units to include in the response, used for paging.