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 ad client for this AdSense account.
See: AdSense Management API Reference for adsense.adunits.list
.
Synopsis
- type AdUnitsListResource = "adsense" :> ("v1.4" :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "includeInactive" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdUnits))))))))
- adUnitsList :: Text -> AdUnitsList
- data AdUnitsList
- aulIncludeInactive :: Lens' AdUnitsList (Maybe Bool)
- aulAdClientId :: Lens' AdUnitsList Text
- aulPageToken :: Lens' AdUnitsList (Maybe Text)
- aulMaxResults :: Lens' AdUnitsList (Maybe Int32)
REST Resource
type AdUnitsListResource = "adsense" :> ("v1.4" :> ("adclients" :> (Capture "adClientId" Text :> ("adunits" :> (QueryParam "includeInactive" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] AdUnits)))))))) Source #
A resource alias for adsense.adunits.list
method which the
AdUnitsList
request conforms to.
Creating a Request
Creates a value of AdUnitsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AdUnitsList Source #
List all ad units in the specified ad client for this AdSense account.
See: adUnitsList
smart constructor.
Instances
Request Lenses
aulIncludeInactive :: Lens' AdUnitsList (Maybe Bool) Source #
Whether to include inactive ad units. Default: true.
aulAdClientId :: Lens' AdUnitsList Text Source #
Ad client for which to list ad units.
aulPageToken :: Lens' AdUnitsList (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.
aulMaxResults :: Lens' AdUnitsList (Maybe Int32) Source #
The maximum number of ad units to include in the response, used for paging.