google-ads-api 16.0.0-rest-beta1 → 16.0.0-rest-beta2
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/src/customer.js +0 -2
- package/build/src/service.js +1 -1
- package/package.json +1 -1
package/build/src/customer.js
CHANGED
|
@@ -481,8 +481,6 @@ class Customer extends serviceFactory_1.default {
|
|
|
481
481
|
headers: {
|
|
482
482
|
Authorization: `Bearer ${accessToken}`,
|
|
483
483
|
...this.callHeaders,
|
|
484
|
-
"developer-token": this.clientOptions.developer_token ?? "",
|
|
485
|
-
"login-customer-id": this.credentials.login_customer_id ?? "",
|
|
486
484
|
},
|
|
487
485
|
...extra,
|
|
488
486
|
};
|
package/build/src/service.js
CHANGED
|
@@ -21,7 +21,7 @@ const serviceCache = new ttlcache_1.default({
|
|
|
21
21
|
await service.close();
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
|
-
// A global access token cache used by REST calls. Issued tokens expire after 1 hour.
|
|
24
|
+
// A global access token cache used by REST calls. Issued tokens expire after 1 hour, so we cache them for 50 minutes.
|
|
25
25
|
const accessTokenCache = new ttlcache_1.default({
|
|
26
26
|
max: 100_000,
|
|
27
27
|
ttl: 50 * 60 * 1000, // 50 minutes
|
package/package.json
CHANGED