google-ads-api 17.1.0 → 19.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.
@@ -1,10 +1,10 @@
1
1
  import allProtos, { protos } from "google-ads-node";
2
- export declare const VERSION: "v17";
3
- export import common = protos.google.ads.googleads.v17.common;
4
- export import errors = protos.google.ads.googleads.v17.errors;
5
- export import resources = protos.google.ads.googleads.v17.resources;
6
- export import services = protos.google.ads.googleads.v17.services;
7
- export import internalEnums = protos.google.ads.googleads.v17.enums;
2
+ export declare const VERSION: "v19";
3
+ export import common = protos.google.ads.googleads.v19.common;
4
+ export import errors = protos.google.ads.googleads.v19.errors;
5
+ export import resources = protos.google.ads.googleads.v19.resources;
6
+ export import services = protos.google.ads.googleads.v19.services;
7
+ export import internalEnums = protos.google.ads.googleads.v19.enums;
8
8
  export { enums } from "./autogen/enums";
9
9
  export { fields } from "./autogen/fields";
10
10
  export { GoogleAdsServiceClient } from "google-ads-node";
@@ -7,12 +7,12 @@ const version_1 = require("../version");
7
7
  exports.VERSION = version_1.googleAdsVersion;
8
8
  // -- Expose the googleads generated types --
9
9
  // The namespace path is shortened for ease of use
10
- exports.common = google_ads_node_1.protos.google.ads.googleads.v17.common;
11
- exports.errors = google_ads_node_1.protos.google.ads.googleads.v17.errors;
12
- exports.resources = google_ads_node_1.protos.google.ads.googleads.v17.resources;
13
- exports.services = google_ads_node_1.protos.google.ads.googleads.v17.services;
10
+ exports.common = google_ads_node_1.protos.google.ads.googleads.v19.common;
11
+ exports.errors = google_ads_node_1.protos.google.ads.googleads.v19.errors;
12
+ exports.resources = google_ads_node_1.protos.google.ads.googleads.v19.resources;
13
+ exports.services = google_ads_node_1.protos.google.ads.googleads.v19.services;
14
14
  // We compile enums ourselves, the Google ones should be used internally only
15
- exports.internalEnums = google_ads_node_1.protos.google.ads.googleads.v17.enums;
15
+ exports.internalEnums = google_ads_node_1.protos.google.ads.googleads.v19.enums;
16
16
  var enums_1 = require("./autogen/enums");
17
17
  Object.defineProperty(exports, "enums", { enumerable: true, get: function () { return enums_1.enums; } });
18
18
  var fields_1 = require("./autogen/fields");
@@ -283,8 +283,8 @@ function buildOrderClause(order, orderBy, sortOrder, entity) {
283
283
  }
284
284
  }
285
285
  function buildRequestOptions(reportOptions) {
286
- const { page_size, page_token, validate_only, summary_row_setting } = reportOptions;
287
- return { page_size, page_token, validate_only, summary_row_setting };
286
+ const { page_size, page_token, validate_only, search_settings } = reportOptions;
287
+ return { page_size, page_token, validate_only, search_settings };
288
288
  }
289
289
  function buildQuery(reportOptions) {
290
290
  const SELECT = buildSelectClause(reportOptions.attributes, reportOptions.metrics, reportOptions.segments);
@@ -2,7 +2,7 @@ import { ClientOptions } from "./client";
2
2
  import { AllServices, errors, GoogleAdsServiceClient, ServiceName, services } from "./protos";
3
3
  import { CustomerOptions, CustomerCredentials, RequestOptions, MutateOperation, MutateOptions } from "./types";
4
4
  import { Hooks } from "./hooks";
5
- export declare const FAILURE_KEY = "google.ads.googleads.v17.errors.googleadsfailure-bin";
5
+ export declare const FAILURE_KEY = "google.ads.googleads.v19.errors.googleadsfailure-bin";
6
6
  export interface CallHeaders {
7
7
  "developer-token": string;
8
8
  "login-customer-id"?: string;
@@ -47,7 +47,9 @@ export type ConstraintType2 = {
47
47
  };
48
48
  export type Constraint = string | ConstraintType1 | ConstraintType2;
49
49
  export type Constraints = Constraint[] | ConstraintType2;
50
- export type RequestOptions = Omit<services.ISearchGoogleAdsRequest, "customer_id" | "query" | "return_total_results_count">;
50
+ export type RequestOptions = Omit<services.ISearchGoogleAdsRequest, "customer_id" | "query" | "search_settings"> & {
51
+ search_settings?: Omit<services.SearchGoogleAdsRequest["search_settings"], "return_total_results_count">;
52
+ };
51
53
  export type MutateOptions = Omit<services.IMutateGoogleAdsRequest, "customer_id" | "mutate_operations">;
52
54
  export type MutateOperation<T> = {
53
55
  resource: T;
@@ -82,7 +82,7 @@ function recursiveFieldMaskSearch(data) {
82
82
  }
83
83
  const fieldKey = toSnakeCase(key);
84
84
  const value = data[key];
85
- if (typeof value === "object" && !Array.isArray(value)) {
85
+ if (typeof value === "object" && !Array.isArray(value) && value !== null) {
86
86
  const children = recursiveFieldMaskSearch(value);
87
87
  for (const child of children) {
88
88
  paths.push(`${fieldKey}.${child}`);
@@ -1 +1 @@
1
- export declare const googleAdsVersion = "v17";
1
+ export declare const googleAdsVersion = "v19";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.googleAdsVersion = void 0;
4
- exports.googleAdsVersion = "v17";
4
+ exports.googleAdsVersion = "v19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-ads-api",
3
- "version": "17.1.0",
3
+ "version": "19.0.0",
4
4
  "description": "Google Ads API Client Library for Node.js",
5
5
  "repository": "https://github.com/Opteo/google-ads-api",
6
6
  "main": "build/src/index.js",
@@ -12,13 +12,14 @@
12
12
  "lint": "eslint . --ext .ts",
13
13
  "build": "tsc",
14
14
  "compile": "tsc && node build/scripts/index.js",
15
- "prepare": "rm -rf build && npm run build"
15
+ "prepare": "rm -rf build && npm run build",
16
+ "node": "tsx"
16
17
  },
17
18
  "author": "Opteo",
18
19
  "license": "MIT",
19
20
  "dependencies": {
20
21
  "@isaacs/ttlcache": "^1.2.2",
21
- "google-ads-node": "14.0.0",
22
+ "google-ads-node": "15.0.0",
22
23
  "google-auth-library": "^7.1.0",
23
24
  "google-gax": "^4.4.1",
24
25
  "long": "^4.0.0"
@@ -33,6 +34,7 @@
33
34
  "jest": "^29.0.3",
34
35
  "pluralize": "^8.0.0",
35
36
  "ts-jest": "^29.0.0",
37
+ "tsx": "^4.19.3",
36
38
  "typescript": "^5.5.4"
37
39
  },
38
40
  "keywords": [
@@ -46,5 +48,6 @@
46
48
  "adwords nodejs",
47
49
  "adwords javascript",
48
50
  "gads"
49
- ]
51
+ ],
52
+ "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
50
53
  }