UNPKG

googleapis

Version:
1,214 lines 124 kB
"use strict"; // Copyright 2020 Google LLC // 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. Object.defineProperty(exports, "__esModule", { value: true }); exports.adexchangebuyer2_v2beta1 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = require("googleapis-common"); var adexchangebuyer2_v2beta1; (function (adexchangebuyer2_v2beta1) { /** * Ad Exchange Buyer API II * * Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. * * @example * ```js * const {google} = require('googleapis'); * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); * ``` */ class Adexchangebuyer2 { context; accounts; bidders; buyers; constructor(options, google) { this.context = { _options: options || {}, google, }; this.accounts = new Resource$Accounts(this.context); this.bidders = new Resource$Bidders(this.context); this.buyers = new Resource$Buyers(this.context); } } adexchangebuyer2_v2beta1.Adexchangebuyer2 = Adexchangebuyer2; class Resource$Accounts { context; clients; creatives; finalizedProposals; products; proposals; publisherProfiles; constructor(context) { this.context = context; this.clients = new Resource$Accounts$Clients(this.context); this.creatives = new Resource$Accounts$Creatives(this.context); this.finalizedProposals = new Resource$Accounts$Finalizedproposals(this.context); this.products = new Resource$Accounts$Products(this.context); this.proposals = new Resource$Accounts$Proposals(this.context); this.publisherProfiles = new Resource$Accounts$Publisherprofiles(this.context); } } adexchangebuyer2_v2beta1.Resource$Accounts = Resource$Accounts; class Resource$Accounts$Clients { context; invitations; users; constructor(context) { this.context = context; this.invitations = new Resource$Accounts$Clients$Invitations(this.context); this.users = new Resource$Accounts$Clients$Users(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId'], pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId'], pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Clients = Resource$Accounts$Clients; class Resource$Accounts$Clients$Invitations { context; constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId'], pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId', 'invitationId'], pathParams: ['accountId', 'clientAccountId', 'invitationId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId'], pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Invitations = Resource$Accounts$Clients$Invitations; class Resource$Accounts$Clients$Users { context; constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId', 'userId'], pathParams: ['accountId', 'clientAccountId', 'userId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId'], pathParams: ['accountId', 'clientAccountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', apiVersion: '', }, options), params, requiredParams: ['accountId', 'clientAccountId', 'userId'], pathParams: ['accountId', 'clientAccountId', 'userId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Users = Resource$Accounts$Clients$Users; class Resource$Accounts$Creatives { context; dealAssociations; constructor(context) { this.context = context; this.dealAssociations = new Resource$Accounts$Creatives$Dealassociations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } stopWatching(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } watch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Creatives = Resource$Accounts$Creatives; class Resource$Accounts$Creatives$Dealassociations { context; constructor(context) { this.context = context; } add(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'creativeId'], pathParams: ['accountId', 'creativeId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Creatives$Dealassociations = Resource$Accounts$Creatives$Dealassociations; class Resource$Accounts$Finalizedproposals { context; constructor(context) { this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Finalizedproposals = Resource$Accounts$Finalizedproposals; class Resource$Accounts$Products { context; constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'productId'], pathParams: ['accountId', 'productId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } adexchangebuyer2_v2beta1.Resource$Accounts$Products = Resource$Accounts$Products; class Resource$Accounts$Proposals { context; constructor(context) { this.context = context; } accept(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } addNote(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } completeSetup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', apiVersion: '', }, options), params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options), params, requiredParams: ['accountId', 'proposalId'], pathParams: ['accountId', 'proposalId'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; pa