google-ads-api 25.1.0-beta.0 → 25.1.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.
@@ -89,7 +89,7 @@ export class Service {
89
89
  return token;
90
90
  }
91
91
  loadService(service, options) {
92
- const serviceCacheKey = `${service}_${this.clientOptions.client_id}_${this.customerOptions.refresh_token}`;
92
+ const serviceCacheKey = `${service}_${this.clientOptions.client_id}_${this.customerOptions.refresh_token}_${JSON.stringify(this.clientOptions.grpc_channel_options ?? null)}`;
93
93
  if (!options?.skipCache) {
94
94
  const cachedService = serviceCache.get(serviceCacheKey);
95
95
  if (cachedService) {
@@ -102,9 +102,9 @@ export class Service {
102
102
  }
103
103
  // Initialising services can take a few ms, so we cache when possible.
104
104
  const client = new protoService({
105
+ ...this.clientOptions.grpc_channel_options,
105
106
  sslCreds: this.getCredentials(),
106
107
  universeDomain: "googleapis.com",
107
- ...this.clientOptions.grpc_channel_options,
108
108
  });
109
109
  if (!options?.skipCache) {
110
110
  serviceCache.set(serviceCacheKey, client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-ads-api",
3
- "version": "25.1.0-beta.0",
3
+ "version": "25.1.0",
4
4
  "description": "Google Ads API Client Library for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,9 @@
17
17
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && printf '{\"type\":\"module\"}' > build/esm/package.json",
18
18
  "compile": "esbuild --bundle --platform=node ./scripts/index.ts --outfile=./build/scripts/index.js && node ./build/scripts/index.js",
19
19
  "prepare": "rm -rf build && npm run build",
20
- "node": "tsx"
20
+ "node": "tsx",
21
+ "test:package": "npm run build && node tests/package.mjs",
22
+ "postcompile": "prettier --write src/protos/autogen"
21
23
  },
22
24
  "author": "Opteo",
23
25
  "license": "MIT",
@@ -25,7 +27,7 @@
25
27
  "@isaacs/ttlcache": "^1.4.0",
26
28
  "axios": "^1.6.7",
27
29
  "circ-json": "^1.0.4",
28
- "google-ads-node": "25.1.0-beta.0",
30
+ "google-ads-node": "25.1.0",
29
31
  "google-auth-library": "^11.0.2",
30
32
  "google-gax": "^6.3.0",
31
33
  "long": "^4.0.0",
@@ -48,7 +50,7 @@
48
50
  "pluralize": "^8.0.0",
49
51
  "prettier": "^3.6.2",
50
52
  "protobufjs": "^7.2.6",
51
- "ts-jest": "^29.1.2",
53
+ "ts-jest": "29.3.4",
52
54
  "tsx": "^4.19.3",
53
55
  "typescript": "^5.5.4"
54
56
  },