@bhooai/nexus-ads 2.0.15 → 2.0.16
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/package.json +3 -2
- package/src/index.ts +3 -0
- package/vitest.config.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhooai/nexus-ads",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"test": "vitest run"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@bhooai/nexus-core": "^2.0.1"
|
|
15
|
+
"@bhooai/nexus-core": "^2.0.1",
|
|
16
|
+
"@bhooai/nexus-crypto": "^2.0.15"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"@types/node": "^22.5.0",
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './GoogleAdsClient.js';
|
|
|
5
5
|
import { GoogleAdsClient } from './GoogleAdsClient.js';
|
|
6
6
|
import { fetchTransport } from './fetchTransport.js';
|
|
7
7
|
import type { GoogleAdsConfig, HttpTransport } from './types.js';
|
|
8
|
+
import { requireLicense } from '@bhooai/nexus-crypto';
|
|
8
9
|
|
|
9
10
|
/** Default fetch-based transport (Node >= 18). */
|
|
10
11
|
export { fetchTransport };
|
|
@@ -16,5 +17,7 @@ export interface CreateAdsOptions {
|
|
|
16
17
|
|
|
17
18
|
/** Build a Google Ads client. Throws at construction if required creds are missing. */
|
|
18
19
|
export function createGoogleAds(config: GoogleAdsConfig, opts: CreateAdsOptions = {}): GoogleAdsClient {
|
|
20
|
+
// Licensed feature: the Google Ads client needs a master key.
|
|
21
|
+
requireLicense('nexus-ads');
|
|
19
22
|
return new GoogleAdsClient(config, opts.transport ?? fetchTransport, opts.apiVersion);
|
|
20
23
|
}
|