@googleapis/searchads360 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v0.js ADDED
@@ -0,0 +1,259 @@
1
+ "use strict";
2
+ // Copyright 2020 Google LLC
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.searchads360_v0 = void 0;
16
+ /* eslint-disable @typescript-eslint/no-explicit-any */
17
+ /* eslint-disable @typescript-eslint/no-unused-vars */
18
+ /* eslint-disable @typescript-eslint/no-empty-interface */
19
+ /* eslint-disable @typescript-eslint/no-namespace */
20
+ /* eslint-disable no-irregular-whitespace */
21
+ const googleapis_common_1 = require("googleapis-common");
22
+ var searchads360_v0;
23
+ (function (searchads360_v0) {
24
+ /**
25
+ * Search Ads 360 Reporting API
26
+ *
27
+ * The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360.
28
+ *
29
+ * @example
30
+ * ```js
31
+ * const {google} = require('googleapis');
32
+ * const searchads360 = google.searchads360('v0');
33
+ * ```
34
+ */
35
+ class Searchads360 {
36
+ constructor(options, google) {
37
+ this.context = {
38
+ _options: options || {},
39
+ google,
40
+ };
41
+ this.customers = new Resource$Customers(this.context);
42
+ this.searchAds360Fields = new Resource$Searchads360fields(this.context);
43
+ }
44
+ }
45
+ searchads360_v0.Searchads360 = Searchads360;
46
+ class Resource$Customers {
47
+ constructor(context) {
48
+ this.context = context;
49
+ this.customColumns = new Resource$Customers$Customcolumns(this.context);
50
+ this.searchAds360 = new Resource$Customers$Searchads360(this.context);
51
+ }
52
+ listAccessibleCustomers(paramsOrCallback, optionsOrCallback, callback) {
53
+ let params = (paramsOrCallback ||
54
+ {});
55
+ let options = (optionsOrCallback || {});
56
+ if (typeof paramsOrCallback === 'function') {
57
+ callback = paramsOrCallback;
58
+ params = {};
59
+ options = {};
60
+ }
61
+ if (typeof optionsOrCallback === 'function') {
62
+ callback = optionsOrCallback;
63
+ options = {};
64
+ }
65
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
66
+ const parameters = {
67
+ options: Object.assign({
68
+ url: (rootUrl + '/v0/customers:listAccessibleCustomers').replace(/([^:]\/)\/+/g, '$1'),
69
+ method: 'GET',
70
+ }, options),
71
+ params,
72
+ requiredParams: [],
73
+ pathParams: [],
74
+ context: this.context,
75
+ };
76
+ if (callback) {
77
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
78
+ }
79
+ else {
80
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
81
+ }
82
+ }
83
+ }
84
+ searchads360_v0.Resource$Customers = Resource$Customers;
85
+ class Resource$Customers$Customcolumns {
86
+ constructor(context) {
87
+ this.context = context;
88
+ }
89
+ get(paramsOrCallback, optionsOrCallback, callback) {
90
+ let params = (paramsOrCallback ||
91
+ {});
92
+ let options = (optionsOrCallback || {});
93
+ if (typeof paramsOrCallback === 'function') {
94
+ callback = paramsOrCallback;
95
+ params = {};
96
+ options = {};
97
+ }
98
+ if (typeof optionsOrCallback === 'function') {
99
+ callback = optionsOrCallback;
100
+ options = {};
101
+ }
102
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
103
+ const parameters = {
104
+ options: Object.assign({
105
+ url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'),
106
+ method: 'GET',
107
+ }, options),
108
+ params,
109
+ requiredParams: ['resourceName'],
110
+ pathParams: ['resourceName'],
111
+ context: this.context,
112
+ };
113
+ if (callback) {
114
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
115
+ }
116
+ else {
117
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
118
+ }
119
+ }
120
+ list(paramsOrCallback, optionsOrCallback, callback) {
121
+ let params = (paramsOrCallback ||
122
+ {});
123
+ let options = (optionsOrCallback || {});
124
+ if (typeof paramsOrCallback === 'function') {
125
+ callback = paramsOrCallback;
126
+ params = {};
127
+ options = {};
128
+ }
129
+ if (typeof optionsOrCallback === 'function') {
130
+ callback = optionsOrCallback;
131
+ options = {};
132
+ }
133
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
134
+ const parameters = {
135
+ options: Object.assign({
136
+ url: (rootUrl + '/v0/customers/{+customerId}/customColumns').replace(/([^:]\/)\/+/g, '$1'),
137
+ method: 'GET',
138
+ }, options),
139
+ params,
140
+ requiredParams: ['customerId'],
141
+ pathParams: ['customerId'],
142
+ context: this.context,
143
+ };
144
+ if (callback) {
145
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
146
+ }
147
+ else {
148
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
149
+ }
150
+ }
151
+ }
152
+ searchads360_v0.Resource$Customers$Customcolumns = Resource$Customers$Customcolumns;
153
+ class Resource$Customers$Searchads360 {
154
+ constructor(context) {
155
+ this.context = context;
156
+ }
157
+ search(paramsOrCallback, optionsOrCallback, callback) {
158
+ let params = (paramsOrCallback ||
159
+ {});
160
+ let options = (optionsOrCallback || {});
161
+ if (typeof paramsOrCallback === 'function') {
162
+ callback = paramsOrCallback;
163
+ params = {};
164
+ options = {};
165
+ }
166
+ if (typeof optionsOrCallback === 'function') {
167
+ callback = optionsOrCallback;
168
+ options = {};
169
+ }
170
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
171
+ const parameters = {
172
+ options: Object.assign({
173
+ url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:search').replace(/([^:]\/)\/+/g, '$1'),
174
+ method: 'POST',
175
+ }, options),
176
+ params,
177
+ requiredParams: ['customerId'],
178
+ pathParams: ['customerId'],
179
+ context: this.context,
180
+ };
181
+ if (callback) {
182
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
183
+ }
184
+ else {
185
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
186
+ }
187
+ }
188
+ }
189
+ searchads360_v0.Resource$Customers$Searchads360 = Resource$Customers$Searchads360;
190
+ class Resource$Searchads360fields {
191
+ constructor(context) {
192
+ this.context = context;
193
+ }
194
+ get(paramsOrCallback, optionsOrCallback, callback) {
195
+ let params = (paramsOrCallback ||
196
+ {});
197
+ let options = (optionsOrCallback || {});
198
+ if (typeof paramsOrCallback === 'function') {
199
+ callback = paramsOrCallback;
200
+ params = {};
201
+ options = {};
202
+ }
203
+ if (typeof optionsOrCallback === 'function') {
204
+ callback = optionsOrCallback;
205
+ options = {};
206
+ }
207
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
208
+ const parameters = {
209
+ options: Object.assign({
210
+ url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'),
211
+ method: 'GET',
212
+ }, options),
213
+ params,
214
+ requiredParams: ['resourceName'],
215
+ pathParams: ['resourceName'],
216
+ context: this.context,
217
+ };
218
+ if (callback) {
219
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
220
+ }
221
+ else {
222
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
223
+ }
224
+ }
225
+ search(paramsOrCallback, optionsOrCallback, callback) {
226
+ let params = (paramsOrCallback ||
227
+ {});
228
+ let options = (optionsOrCallback || {});
229
+ if (typeof paramsOrCallback === 'function') {
230
+ callback = paramsOrCallback;
231
+ params = {};
232
+ options = {};
233
+ }
234
+ if (typeof optionsOrCallback === 'function') {
235
+ callback = optionsOrCallback;
236
+ options = {};
237
+ }
238
+ const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/';
239
+ const parameters = {
240
+ options: Object.assign({
241
+ url: (rootUrl + '/v0/searchAds360Fields:search').replace(/([^:]\/)\/+/g, '$1'),
242
+ method: 'POST',
243
+ }, options),
244
+ params,
245
+ requiredParams: [],
246
+ pathParams: [],
247
+ context: this.context,
248
+ };
249
+ if (callback) {
250
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
251
+ }
252
+ else {
253
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
254
+ }
255
+ }
256
+ }
257
+ searchads360_v0.Resource$Searchads360fields = Resource$Searchads360fields;
258
+ })(searchads360_v0 = exports.searchads360_v0 || (exports.searchads360_v0 = {}));
259
+ //# sourceMappingURL=v0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v0.js","sourceRoot":"","sources":["../v0.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,eAAe,CAizG/B;AAjzGD,WAAiB,eAAe;IAgE9B;;;;;;;;;;OAUG;IACH,MAAa,YAAY;QAKvB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtD,IAAI,CAAC,kBAAkB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1E,CAAC;KACF;IAdY,4BAAY,eAcxB,CAAA;IA6kFD,MAAa,kBAAkB;QAI7B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,aAAa,GAAG,IAAI,gCAAgC,CAAC,IAAI,C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;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,+BAA+B,CAAC,CAAC,OAAO,CACtD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,MAAM;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IArMY,2CAA2B,8BAqMvC,CAAA;AAgBH,CAAC,EAjzGgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAizG/B"}
package/index.ts ADDED
@@ -0,0 +1,46 @@
1
+ // Copyright 2020 Google LLC
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ /*! THIS FILE IS AUTO-GENERATED */
15
+
16
+ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
17
+ import {searchads360_v0} from './v0';
18
+
19
+ export const VERSIONS = {
20
+ v0: searchads360_v0.Searchads360,
21
+ };
22
+
23
+ export function searchads360(version: 'v0'): searchads360_v0.Searchads360;
24
+ export function searchads360(
25
+ options: searchads360_v0.Options
26
+ ): searchads360_v0.Searchads360;
27
+ export function searchads360<T = searchads360_v0.Searchads360>(
28
+ this: GoogleConfigurable,
29
+ versionOrOptions: 'v0' | searchads360_v0.Options
30
+ ) {
31
+ return getAPI<T>('searchads360', versionOrOptions, VERSIONS, this);
32
+ }
33
+
34
+ const auth = new AuthPlus();
35
+ export {auth};
36
+ export {searchads360_v0};
37
+ export {
38
+ AuthPlus,
39
+ GlobalOptions,
40
+ APIRequestContext,
41
+ GoogleConfigurable,
42
+ StreamMethodOptions,
43
+ GaxiosPromise,
44
+ MethodOptions,
45
+ BodyResponseCallback,
46
+ } from 'googleapis-common';
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@googleapis/searchads360",
3
+ "version": "1.0.0",
4
+ "description": "searchads360",
5
+ "main": "build/index.js",
6
+ "types": "build/index.d.ts",
7
+ "keywords": [
8
+ "google"
9
+ ],
10
+ "author": "Google LLC",
11
+ "license": "Apache-2.0",
12
+ "homepage": "https://github.com/googleapis/google-api-nodejs-client",
13
+ "bugs": {
14
+ "url": "https://github.com/googleapis/google-api-nodejs-client/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/googleapis/google-api-nodejs-client.git"
19
+ },
20
+ "engines": {
21
+ "node": ">=12.0.0"
22
+ },
23
+ "scripts": {
24
+ "fix": "gts fix",
25
+ "lint": "gts check",
26
+ "compile": "tsc -p .",
27
+ "prepare": "npm run compile",
28
+ "webpack": "webpack"
29
+ },
30
+ "dependencies": {
31
+ "googleapis-common": "^6.0.3"
32
+ },
33
+ "devDependencies": {
34
+ "@microsoft/api-documenter": "^7.8.10",
35
+ "@microsoft/api-extractor": "^7.8.10",
36
+ "gts": "^3.1.1",
37
+ "null-loader": "^4.0.0",
38
+ "ts-loader": "^9.0.0",
39
+ "typescript": "~4.8.4",
40
+ "webpack": "^5.0.0",
41
+ "webpack-cli": "^5.0.0"
42
+ }
43
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./node_modules/gts/tsconfig-google.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "outDir": "build"
6
+ },
7
+ "include": [
8
+ "*.ts",
9
+ ]
10
+ }