Skip to content

Commit

Permalink
publishing 24.0.0 (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Jan 11, 2018
1 parent cdf72a2 commit 6a9b578
Show file tree
Hide file tree
Showing 87 changed files with 36,519 additions and 46,585 deletions.
350 changes: 188 additions & 162 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -56,7 +56,7 @@
"name": "Justin Beckwith"
}
],
"version": "23.0.2",
"version": "24.0.0",
"scripts": {
"posttest": "npm run check && npm run lint && npm run license-check",
"test": "npm run cover",
Expand Down
132 changes: 132 additions & 0 deletions src/apis/abusiveexperiencereport/v1.ts
@@ -0,0 +1,132 @@
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {createAPIRequest} from '../../lib/apirequest';

/**
* Google Abusive Experience Report API
*
* View Abusive Experience Report data, and get a list of sites that have a
* significant number of abusive experiences.
*
* @example
* const google = require('googleapis');
* const abusiveexperiencereport = google.abusiveexperiencereport('v1');
*
* @namespace abusiveexperiencereport
* @type {Function}
* @version v1
* @variation v1
* @param {object=} options Options for Abusiveexperiencereport
*/
function Abusiveexperiencereport(options) {
const self = this;
self._options = options || {};
self.sites = {
/**
* abusiveexperiencereport.sites.get
* @desc Gets a summary of the abusive experience rating of a site.
* @alias abusiveexperiencereport.sites.get
* @memberOf! abusiveexperiencereport(v1)
*
* @param {object} params Parameters for request
* @param {string} params.name The required site name. This is the site property whose abusive experiences have been reviewed, and it must be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Abusive Experience Report.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
options = options || {};
const rootUrl =
options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: self
};
return createAPIRequest(parameters, callback);
}

};
self.violatingSites = {
/**
* abusiveexperiencereport.violatingSites.list
* @desc Lists sites with Abusive Experience Report statuses of "Failing".
* @alias abusiveexperiencereport.violatingSites.list
* @memberOf! abusiveexperiencereport(v1)
*
* @param {object} params Parameters for request
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
options = options || {};
const rootUrl =
options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/violatingSites')
.replace(/([^:]\/)\/+/g, '$1'),
method: 'GET'
},
options),
params,
requiredParams: [],
pathParams: [],
context: self
};
return createAPIRequest(parameters, callback);
}

};
}
/**
* @typedef SiteSummaryResponse
* @memberOf! abusiveexperiencereport(v1)
* @type object
* @property {string} abusiveStatus The status of the site reviewed for the abusive experiences.
* @property {string} enforcementTime The date on which enforcement begins.
* @property {string} filterStatus The abusive experience enforcement status of the site.
* @property {string} lastChangeTime The last time that the site changed status.
* @property {string} reportUrl A link that leads to a full abusive experience report.
* @property {string} reviewedSite The name of the site reviewed.
* @property {boolean} underReview Whether the site is currently under review.
*/
/**
* @typedef ViolatingSitesResponse
* @memberOf! abusiveexperiencereport(v1)
* @type object
* @property {abusiveexperiencereport(v1).SiteSummaryResponse[]} violatingSites A list of summaries of violating sites.
*/

export = Abusiveexperiencereport;
13 changes: 8 additions & 5 deletions src/apis/adexchangebuyer2/v2beta1.ts
Expand Up @@ -441,6 +441,7 @@ function Adexchangebuyer2(options) {
*
* @param {object} params Parameters for request
* @param {string} params.accountId The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
* @param {string=} params.accountId1 The account the creative belongs to.
* @param {string=} params.duplicateIdMode Indicates if multiple creatives can share an ID or not. Default is NO_DUPLICATES (one ID per creative).
* @param {adexchangebuyer2(v2beta1).Creative} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -516,7 +517,7 @@ function Adexchangebuyer2(options) {
* @param {string} params.accountId The account to list the creatives from. Specify "-" to list all creatives the current user has access to.
* @param {integer=} params.pageSize Requested page size. The server may return fewer creatives than requested (due to timeout constraint) even if more are available via another call. If unspecified, server will pick an appropriate default. Acceptable values are 1 to 1000, inclusive.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativesResponse.next_page_token returned from the previous call to 'ListCreatives' method.
* @param {string=} params.query An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>creative_id_string</i> <li>dealsStatus: {approved, conditionally_approved, disapproved, not_checked} <li>openAuctionStatus: {approved, conditionally_approved, disapproved, not_checked} <li>attribute: {a numeric attribute from the list of attributes} <li>disapprovalReason: {a reason from DisapprovalReason </ul> Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
* @param {string=} params.query An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>creative_id_string</i> <li>dealsStatus: {approved, conditionally_approved, disapproved, not_checked} <li>openAuctionStatus: {approved, conditionally_approved, disapproved, not_checked} <li>attribute: {a numeric attribute from the list of attributes} <li>disapprovalReason: {a reason from DisapprovalReason} </ul> Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -590,6 +591,7 @@ function Adexchangebuyer2(options) {
*
* @param {object} params Parameters for request
* @param {string} params.accountId The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
* @param {string=} params.accountId1 The account the creative belongs to.
* @param {string} params.creativeId The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
* @param {adexchangebuyer2(v2beta1).Creative} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -2137,11 +2139,12 @@ function Adexchangebuyer2(options) {
* @memberOf! adexchangebuyer2(v2beta1)
* @type object
* @property {adexchangebuyer2(v2beta1).AbsoluteDateRange} absoluteDateRange An absolute date range, defined by a start date and an end date. Interpreted relative to Pacific time zone.
* @property {string} creativeId The ID of the creative on which to filter; optional. This field may be set only for a filter set that accesses buyer-level troubleshooting data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x pattern.
* @property {string} dealId The ID of the deal on which to filter; optional. This field may be set only for a filter set that accesses buyer-level troubleshooting data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x pattern.
* @property {string} creativeId The ID of the creative on which to filter; optional. This field may be set only for a filter set that accesses account-level troubleshooting data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x pattern.
* @property {string} dealId The ID of the deal on which to filter; optional. This field may be set only for a filter set that accesses account-level troubleshooting data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x pattern.
* @property {string} environment The environment on which to filter; optional.
* @property {string} format The format on which to filter; optional.
* @property {string} name A user-defined name of the filter set. Filter set names must be unique globally and match one of the patterns: - `bidders/x/filterSets/x (for accessing bidder-level troubleshooting data) - `bidders/x/accounts/x/filterSets/x (for accessing buyer-level troubleshooting data) This field is required in create operations.
* @property {string} format DEPRECATED: use repeated formats field instead. The format on which to filter; optional.
* @property {string[]} formats The list of formats on which to filter; may be empty. The filters represented by multiple formats are ORed together (i.e. if non-empty, results must match any one of the formats).
* @property {string} name A user-defined name of the filter set. Filter set names must be unique globally and match one of the patterns: - `bidders/x/filterSets/x (for accessing bidder-level troubleshooting data) - `bidders/x/accounts/x/filterSets/x (for accessing account-level troubleshooting data) This field is required in create operations.
* @property {string[]} platforms The list of platforms on which to filter; may be empty. The filters represented by multiple platforms are ORed together (i.e. if non-empty, results must match any one of the platforms).
* @property {adexchangebuyer2(v2beta1).RealtimeTimeRange} realtimeTimeRange An open-ended realtime time range, defined by the aggregation start timestamp.
* @property {adexchangebuyer2(v2beta1).RelativeDateRange} relativeDateRange A relative date range, defined by an offset from today and a duration. Interpreted relative to Pacific time zone.
Expand Down

0 comments on commit 6a9b578

Please sign in to comment.