"description":"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.",
"description":"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.",
"description":"List all hosted ad clients in the specified hosted account.",
"httpMethod":"GET",
"id":"adsensehost.accounts.adclients.list",
"parameterOrder":[
"accountId"
],
"parameters":{
"accountId":{
"description":"Account for which to list ad clients.",
"location":"path",
"required":true,
"type":"string"
},
"maxResults":{
"description":"The maximum number of ad clients to include in the response, used for paging.",
"format":"uint32",
"location":"query",
"maximum":"10000",
"minimum":"0",
"type":"integer"
},
"pageToken":{
"description":"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.",
"description":"List all ad units in the specified publisher's AdSense account.",
"httpMethod":"GET",
"id":"adsensehost.accounts.adunits.list",
"parameterOrder":[
"accountId",
"adClientId"
],
"parameters":{
"accountId":{
"description":"Account which contains the ad client.",
"location":"path",
"required":true,
"type":"string"
},
"adClientId":{
"description":"Ad client for which to list ad units.",
"location":"path",
"required":true,
"type":"string"
},
"includeInactive":{
"description":"Whether to include inactive ad units. Default: true.",
"location":"query",
"type":"boolean"
},
"maxResults":{
"description":"The maximum number of ad units to include in the response, used for paging.",
"format":"uint32",
"location":"query",
"maximum":"10000",
"minimum":"0",
"type":"integer"
},
"pageToken":{
"description":"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.",
"description":"Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.",
"httpMethod":"GET",
"id":"adsensehost.accounts.reports.generate",
"parameterOrder":[
"accountId",
"startDate",
"endDate"
],
"parameters":{
"accountId":{
"description":"Hosted account upon which to report.",
"location":"path",
"required":true,
"type":"string"
},
"dimension":{
"description":"Dimensions to base the report on.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"endDate":{
"description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
"description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"type":"string"
},
"maxResults":{
"description":"The maximum number of rows of report data to return.",
"format":"uint32",
"location":"query",
"maximum":"50000",
"minimum":"0",
"type":"integer"
},
"metric":{
"description":"Numeric columns to include in the report.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"sort":{
"description":"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.",
"location":"query",
"pattern":"(\\+|-)?[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"startDate":{
"description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
"description":"Get information about one of the ad clients in the Host AdSense account.",
"httpMethod":"GET",
"id":"adsensehost.adclients.get",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client to get.",
"location":"path",
"required":true,
"type":"string"
}
},
"path":"adclients/{adClientId}",
"response":{
"$ref":"AdClient"
},
"scopes":[
"https://www.googleapis.com/auth/adsensehost"
]
},
"list":{
"description":"List all host ad clients in this AdSense account.",
"httpMethod":"GET",
"id":"adsensehost.adclients.list",
"parameters":{
"maxResults":{
"description":"The maximum number of ad clients to include in the response, used for paging.",
"format":"uint32",
"location":"query",
"maximum":"10000",
"minimum":"0",
"type":"integer"
},
"pageToken":{
"description":"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.",
"description":"Add a new custom channel to the host AdSense account.",
"httpMethod":"POST",
"id":"adsensehost.customchannels.insert",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client to which the new custom channel will be added.",
"location":"path",
"required":true,
"type":"string"
}
},
"path":"adclients/{adClientId}/customchannels",
"request":{
"$ref":"CustomChannel"
},
"response":{
"$ref":"CustomChannel"
},
"scopes":[
"https://www.googleapis.com/auth/adsensehost"
]
},
"list":{
"description":"List all host custom channels in this AdSense account.",
"httpMethod":"GET",
"id":"adsensehost.customchannels.list",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client for which to list custom channels.",
"location":"path",
"required":true,
"type":"string"
},
"maxResults":{
"description":"The maximum number of custom channels to include in the response, used for paging.",
"format":"uint32",
"location":"query",
"maximum":"10000",
"minimum":"0",
"type":"integer"
},
"pageToken":{
"description":"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.",
"location":"query",
"type":"string"
}
},
"path":"adclients/{adClientId}/customchannels",
"response":{
"$ref":"CustomChannels"
},
"scopes":[
"https://www.googleapis.com/auth/adsensehost"
]
},
"patch":{
"description":"Update a custom channel in the host AdSense account. This method supports patch semantics.",
"httpMethod":"PATCH",
"id":"adsensehost.customchannels.patch",
"parameterOrder":[
"adClientId",
"customChannelId"
],
"parameters":{
"adClientId":{
"description":"Ad client in which the custom channel will be updated.",
"location":"path",
"required":true,
"type":"string"
},
"customChannelId":{
"description":"Custom channel to get.",
"location":"query",
"required":true,
"type":"string"
}
},
"path":"adclients/{adClientId}/customchannels",
"request":{
"$ref":"CustomChannel"
},
"response":{
"$ref":"CustomChannel"
},
"scopes":[
"https://www.googleapis.com/auth/adsensehost"
]
},
"update":{
"description":"Update a custom channel in the host AdSense account.",
"httpMethod":"PUT",
"id":"adsensehost.customchannels.update",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client in which the custom channel will be updated.",
"description":"Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.",
"httpMethod":"GET",
"id":"adsensehost.reports.generate",
"parameterOrder":[
"startDate",
"endDate"
],
"parameters":{
"dimension":{
"description":"Dimensions to base the report on.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"endDate":{
"description":"End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
"description":"Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"type":"string"
},
"maxResults":{
"description":"The maximum number of rows of report data to return.",
"format":"uint32",
"location":"query",
"maximum":"50000",
"minimum":"0",
"type":"integer"
},
"metric":{
"description":"Numeric columns to include in the report.",
"location":"query",
"pattern":"[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"sort":{
"description":"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.",
"location":"query",
"pattern":"(\\+|-)?[a-zA-Z_]+",
"repeated":true,
"type":"string"
},
"startDate":{
"description":"Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.",
"description":"Add a new URL channel to the host AdSense account.",
"httpMethod":"POST",
"id":"adsensehost.urlchannels.insert",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client to which the new URL channel will be added.",
"location":"path",
"required":true,
"type":"string"
}
},
"path":"adclients/{adClientId}/urlchannels",
"request":{
"$ref":"UrlChannel"
},
"response":{
"$ref":"UrlChannel"
},
"scopes":[
"https://www.googleapis.com/auth/adsensehost"
]
},
"list":{
"description":"List all host URL channels in the host AdSense account.",
"httpMethod":"GET",
"id":"adsensehost.urlchannels.list",
"parameterOrder":[
"adClientId"
],
"parameters":{
"adClientId":{
"description":"Ad client for which to list URL channels.",
"location":"path",
"required":true,
"type":"string"
},
"maxResults":{
"description":"The maximum number of URL channels to include in the response, used for paging.",
"format":"uint32",
"location":"query",
"maximum":"10000",
"minimum":"0",
"type":"integer"
},
"pageToken":{
"description":"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.",
"description":"Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's \"pageToken\" value to this.",
"description":"The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.",
"description":"Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).",
"properties":{
"backupOption":{
"description":"The backup option to be used in instances where no ad is available.",
"properties":{
"color":{
"description":"Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.",
"type":"string"
},
"type":{
"description":"Type of the backup option. Possible values are BLANK, COLOR and URL.",
"type":"string"
},
"url":{
"description":"URL to use when type is set to URL.",
"type":"string"
}
},
"type":"object"
},
"size":{
"description":"Size of this ad unit. Size values are in the form SIZE_{width}_{height}.",
"type":"string"
},
"type":{
"description":"Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.",
"description":"Custom style information specific to this ad unit."
},
"id":{
"description":"Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.",
"type":"string"
},
"kind":{
"default":"adsensehost#adUnit",
"description":"Kind of resource this is, in this case adsensehost#adUnit.",
"type":"string"
},
"mobileContentAdsSettings":{
"description":"Settings specific to WAP mobile content ads (AFMC - deprecated).",
"properties":{
"markupLanguage":{
"description":"The markup language to use for this ad unit.",
"type":"string"
},
"scriptingLanguage":{
"description":"The scripting language to use for this ad unit.",
"type":"string"
},
"size":{
"description":"Size of this ad unit.",
"type":"string"
},
"type":{
"description":"Type of this ad unit.",
"type":"string"
}
},
"type":"object"
},
"name":{
"description":"Name of this ad unit.",
"type":"string"
},
"status":{
"description":"Status of this ad unit. Possible values are:\nNEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.\n\nACTIVE: Indicates that there has been activity on this ad unit in the last seven days.\n\nINACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.",
"description":"Kind of list this is, in this case adsensehost#adUnits.",
"type":"string"
},
"nextPageToken":{
"description":"Continuation token used to page through ad units. To retrieve the next page of results, set the next request's \"pageToken\" value to this.",
"description":"Status of the completed association, available once the association callback token has been verified. One of ACCEPTED, REJECTED, or ERROR.",
"description":"Code of this custom channel, not necessarily unique across ad clients.",
"type":"string"
},
"id":{
"description":"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.",
"type":"string"
},
"kind":{
"default":"adsensehost#customChannel",
"description":"Kind of resource this is, in this case adsensehost#customChannel.",
"description":"ETag of this response for caching purposes.",
"type":"string"
},
"items":{
"description":"The custom channels returned in this list response.",
"items":{
"$ref":"CustomChannel"
},
"type":"array"
},
"kind":{
"default":"adsensehost#customChannels",
"description":"Kind of list this is, in this case adsensehost#customChannels.",
"type":"string"
},
"nextPageToken":{
"description":"Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's \"pageToken\" value to this.",
"description":"The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.",
"items":{
"type":"string"
},
"type":"array"
},
"headers":{
"description":"The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.",
"items":{
"properties":{
"currency":{
"description":"The currency of this column. Only present if the header type is METRIC_CURRENCY.",
"type":"string"
},
"name":{
"description":"The name of the header.",
"type":"string"
},
"type":{
"description":"The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.",
"type":"string"
}
},
"type":"object"
},
"type":"array"
},
"kind":{
"default":"adsensehost#report",
"description":"Kind this is, in this case adsensehost#report.",
"type":"string"
},
"rows":{
"description":"The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.",
"items":{
"items":{
"type":"string"
},
"type":"array"
},
"type":"array"
},
"totalMatchedRows":{
"description":"The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.",
"format":"int64",
"type":"string"
},
"totals":{
"description":"The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.",
"items":{
"type":"string"
},
"type":"array"
},
"warnings":{
"description":"Any warnings associated with generation of the report.",
"description":"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.",
"type":"string"
},
"kind":{
"default":"adsensehost#urlChannel",
"description":"Kind of resource this is, in this case adsensehost#urlChannel.",
"type":"string"
},
"urlPattern":{
"description":"URL Pattern of this URL channel. Does not include \"http://\" or \"https://\". Example: www.example.com/home",
"description":"ETag of this response for caching purposes.",
"type":"string"
},
"items":{
"description":"The URL channels returned in this list response.",
"items":{
"$ref":"UrlChannel"
},
"type":"array"
},
"kind":{
"default":"adsensehost#urlChannels",
"description":"Kind of list this is, in this case adsensehost#urlChannels.",
"type":"string"
},
"nextPageToken":{
"description":"Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's \"pageToken\" value to this.",