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.
@@ -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);