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.
- package/README.md +9 -1
- package/build/cjs/protos/autogen/enums.d.ts +1188 -1188
- package/build/cjs/protos/autogen/enums.js +1188 -1188
- package/build/cjs/protos/autogen/fields.js +478 -2
- package/build/cjs/protos/autogen/resourceNames.d.ts +1090 -1090
- package/build/cjs/protos/autogen/resourceNames.js +1857 -1473
- package/build/cjs/protos/autogen/serviceFactory.js +218 -218
- package/build/cjs/service.js +2 -2
- package/build/esm/protos/autogen/enums.d.ts +1188 -1188
- package/build/esm/protos/autogen/enums.js +1188 -1188
- package/build/esm/protos/autogen/fields.js +478 -2
- package/build/esm/protos/autogen/resourceNames.d.ts +1090 -1090
- package/build/esm/protos/autogen/resourceNames.js +1857 -1473
- package/build/esm/protos/autogen/serviceFactory.js +218 -218
- package/build/esm/service.js +2 -2
- package/package.json +6 -4
package/build/cjs/service.js
CHANGED
|
@@ -129,7 +129,7 @@ class Service {
|
|
|
129
129
|
return token;
|
|
130
130
|
}
|
|
131
131
|
loadService(service, options) {
|
|
132
|
-
const serviceCacheKey = `${service}_${this.clientOptions.client_id}_${this.customerOptions.refresh_token}`;
|
|
132
|
+
const serviceCacheKey = `${service}_${this.clientOptions.client_id}_${this.customerOptions.refresh_token}_${JSON.stringify(this.clientOptions.grpc_channel_options ?? null)}`;
|
|
133
133
|
if (!options?.skipCache) {
|
|
134
134
|
const cachedService = exports.serviceCache.get(serviceCacheKey);
|
|
135
135
|
if (cachedService) {
|
|
@@ -142,9 +142,9 @@ class Service {
|
|
|
142
142
|
}
|
|
143
143
|
// Initialising services can take a few ms, so we cache when possible.
|
|
144
144
|
const client = new protoService({
|
|
145
|
+
...this.clientOptions.grpc_channel_options,
|
|
145
146
|
sslCreds: this.getCredentials(),
|
|
146
147
|
universeDomain: "googleapis.com",
|
|
147
|
-
...this.clientOptions.grpc_channel_options,
|
|
148
148
|
});
|
|
149
149
|
if (!options?.skipCache) {
|
|
150
150
|
exports.serviceCache.set(serviceCacheKey, client);
|