AdSense Host API v4.1
This documentation has been automatically generated using information supplied by the Google API Discovery service.
1 API Parameters
procedure
(_ [ #:alt alt #:fields fields #:key key #:oauth_token oauth_token #:prettyPrint prettyPrint #:quotaUser quotaUser #:userIp userIp]) → jsexpr? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
This is not actually a function. This is just using Scribble’s defproc form to list the optional keyword arguments that may be passed to all functions for this service.
fields: Selector specifying which fields to include in a partial response.
key: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_token: OAuth 2.0 token for the current user.
prettyPrint: Returns response with indentations and line breaks.
quotaUser: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
userIp: IP address of the site where the request originates. Use this if you want to enforce per-user limits.
2 Resources
2.1 accounts
3 Resources
procedure
(adsensehost-accounts-list #:filterAdClientId filterAdClientId [ #:alt alt #:fields fields #:key key #:oauth_token oauth_token #:prettyPrint prettyPrint #:quotaUser quotaUser #:userIp userIp]) → jsexpr? filterAdClientId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
filterAdClientId: Ad clients to list accounts for.
procedure
(adsensehost-accounts-get #:accountId accountId [ #:alt alt #:fields fields #:key key #:oauth_token oauth_token #:prettyPrint prettyPrint #:quotaUser quotaUser #:userIp userIp]) → jsexpr? accountId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
accountId: Account to get information about.
3.1 customchannels
procedure
→ jsexpr? adClientId : string? maxResults : string? = 'N/A pageToken : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client for which to list custom channels.
maxResults: The maximum number of custom channels to include in the response, used for paging.
pageToken: A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
procedure
→ jsexpr? adClientId : string? customChannelId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client from which to get the custom channel.
customChannelId: Custom channel to get.
procedure
→ jsexpr? adClientId : string? id : string? = 'N/A name : string? = 'N/A kind : string? = 'N/A code : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client to which the new custom channel will be added.
id: Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
name: Name of this custom channel.
kind: Kind of resource this is, in this case adsensehost#customChannel.
code: Code of this custom channel, not necessarily unique across ad clients.
procedure
→ jsexpr? adClientId : string? customChannelId : string? id : string? = 'N/A name : string? = 'N/A kind : string? = 'N/A code : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client in which the custom channel will be updated.
customChannelId: Custom channel to get.
id: Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
name: Name of this custom channel.
kind: Kind of resource this is, in this case adsensehost#customChannel.
code: Code of this custom channel, not necessarily unique across ad clients.
procedure
→ jsexpr? adClientId : string? customChannelId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client from which to delete the custom channel.
customChannelId: Custom channel to delete.
procedure
→ jsexpr? adClientId : string? id : string? = 'N/A name : string? = 'N/A kind : string? = 'N/A code : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client in which the custom channel will be updated.
id: Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
name: Name of this custom channel.
kind: Kind of resource this is, in this case adsensehost#customChannel.
code: Code of this custom channel, not necessarily unique across ad clients.
3.2 adclients
procedure
→ jsexpr? maxResults : string? = 'N/A pageToken : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
maxResults: The maximum number of ad clients to include in the response, used for paging.
pageToken: A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
procedure
(adsensehost-adclients-get #:adClientId adClientId [ #:alt alt #:fields fields #:key key #:oauth_token oauth_token #:prettyPrint prettyPrint #:quotaUser quotaUser #:userIp userIp]) → jsexpr? adClientId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client to get.
3.3 reports
procedure
→ jsexpr? endDate : string? startDate : string? sort : string? = 'N/A filter : string? = 'N/A maxResults : string? = 'N/A dimension : string? = 'N/A locale : string? = 'N/A metric : string? = 'N/A startIndex : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
endDate: End of the date range to report on in "YYYY-MM-DD" format, inclusive.
startDate: Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
sort: The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
filter: Filters to be run on the report.
maxResults: The maximum number of rows of report data to return.
dimension: Dimensions to base the report on.
locale: Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
metric: Numeric columns to include in the report.
startIndex: Index of the first row of report data to return.
3.4 urlchannels
procedure
→ jsexpr? adClientId : string? maxResults : string? = 'N/A pageToken : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client for which to list URL channels.
maxResults: The maximum number of URL channels to include in the response, used for paging.
pageToken: A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
procedure
→ jsexpr? adClientId : string? id : string? = 'N/A kind : string? = 'N/A urlPattern : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client to which the new URL channel will be added.
id: Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
kind: Kind of resource this is, in this case adsensehost#urlChannel.
urlPattern: URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
procedure
→ jsexpr? adClientId : string? urlChannelId : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
adClientId: Ad client from which to delete the URL channel.
urlChannelId: URL channel to delete.
3.5 associationsessions
procedure
→ jsexpr? productCode : string? websiteUrl : string? userLocale : string? = 'N/A websiteLocale : string? = 'N/A alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
productCode: Products to associate with the user.
websiteUrl: The URL of the user’s hosted website.
userLocale: The preferred locale of the user.
websiteLocale: The locale of the user’s hosted website.
procedure
(adsensehost-associationsessions-verify #:token token [ #:alt alt #:fields fields #:key key #:oauth_token oauth_token #:prettyPrint prettyPrint #:quotaUser quotaUser #:userIp userIp]) → jsexpr? token : string? alt : string? = 'N/A fields : string? = 'N/A key : string? = (api-key) oauth_token : string? = 'N/A prettyPrint : string? = 'N/A quotaUser : string? = 'N/A userIp : string? = 'N/A
token: The token returned to the association callback URL.