@owox/connectors 0.12.0-next-20251110114014 → 0.12.0-next-20251111084252
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/dist/index.cjs +22 -6
- package/dist/index.js +22 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14469,6 +14469,11 @@ const GoogleAds = (function() {
|
|
|
14469
14469
|
value: "oauth2",
|
|
14470
14470
|
requiredType: "object",
|
|
14471
14471
|
items: {
|
|
14472
|
+
LoginCustomerId: {
|
|
14473
|
+
requiredType: "string",
|
|
14474
|
+
label: "Login Customer ID",
|
|
14475
|
+
description: "Optional when authenticating as the same account. Provide the manager account ID (without dashes) when acting on behalf of other accounts."
|
|
14476
|
+
},
|
|
14472
14477
|
RefreshToken: {
|
|
14473
14478
|
isRequired: true,
|
|
14474
14479
|
requiredType: "string",
|
|
@@ -14516,6 +14521,12 @@ const GoogleAds = (function() {
|
|
|
14516
14521
|
label: "Developer Token",
|
|
14517
14522
|
description: "Google Ads API Developer Token",
|
|
14518
14523
|
attributes: [CONFIG_ATTRIBUTES2.SECRET]
|
|
14524
|
+
},
|
|
14525
|
+
LoginCustomerId: {
|
|
14526
|
+
isRequired: true,
|
|
14527
|
+
requiredType: "string",
|
|
14528
|
+
label: "Login Customer ID",
|
|
14529
|
+
description: "ID of manager account (must be provided without dashes, e.g., '1234567890' not '123-456-7890'). Required for accessing client accounts through a manager account."
|
|
14519
14530
|
}
|
|
14520
14531
|
}
|
|
14521
14532
|
}
|
|
@@ -14686,7 +14697,7 @@ const GoogleAds = (function() {
|
|
|
14686
14697
|
* @returns {Array<Object>} - API response data
|
|
14687
14698
|
*/
|
|
14688
14699
|
async makeRequest({ customerId, query, nodeName, fields }) {
|
|
14689
|
-
var _a, _b;
|
|
14700
|
+
var _a, _b, _c, _d;
|
|
14690
14701
|
const accessToken = await this.getAccessToken();
|
|
14691
14702
|
const url = `https://googleads.googleapis.com/v21/customers/${customerId}/googleAds:search`;
|
|
14692
14703
|
console.log(`Google Ads API Request URL: ${url}`);
|
|
@@ -14700,13 +14711,18 @@ const GoogleAds = (function() {
|
|
|
14700
14711
|
if (nextPageToken) {
|
|
14701
14712
|
requestBody.pageToken = nextPageToken;
|
|
14702
14713
|
}
|
|
14714
|
+
const loginCustomerId = (_b = (_a = this.config.AuthType.items) == null ? void 0 : _a.LoginCustomerId) == null ? void 0 : _b.value;
|
|
14715
|
+
const headers = {
|
|
14716
|
+
"Authorization": `Bearer ${accessToken}`,
|
|
14717
|
+
"developer-token": (_d = (_c = this.config.AuthType.items) == null ? void 0 : _c.DeveloperToken) == null ? void 0 : _d.value,
|
|
14718
|
+
"Content-Type": "application/json"
|
|
14719
|
+
};
|
|
14720
|
+
if (loginCustomerId) {
|
|
14721
|
+
headers["login-customer-id"] = loginCustomerId;
|
|
14722
|
+
}
|
|
14703
14723
|
const options = {
|
|
14704
14724
|
method: "POST",
|
|
14705
|
-
headers
|
|
14706
|
-
"Authorization": `Bearer ${accessToken}`,
|
|
14707
|
-
"developer-token": (_b = (_a = this.config.AuthType.items) == null ? void 0 : _a.DeveloperToken) == null ? void 0 : _b.value,
|
|
14708
|
-
"Content-Type": "application/json"
|
|
14709
|
-
},
|
|
14725
|
+
headers,
|
|
14710
14726
|
payload: JSON.stringify(requestBody),
|
|
14711
14727
|
body: JSON.stringify(requestBody),
|
|
14712
14728
|
muteHttpExceptions: true
|
package/dist/index.js
CHANGED
|
@@ -14474,6 +14474,11 @@ API Response: ${JSON.stringify(statusResult, null, 2)}`);
|
|
|
14474
14474
|
value: "oauth2",
|
|
14475
14475
|
requiredType: "object",
|
|
14476
14476
|
items: {
|
|
14477
|
+
LoginCustomerId: {
|
|
14478
|
+
requiredType: "string",
|
|
14479
|
+
label: "Login Customer ID",
|
|
14480
|
+
description: "Optional when authenticating as the same account. Provide the manager account ID (without dashes) when acting on behalf of other accounts."
|
|
14481
|
+
},
|
|
14477
14482
|
RefreshToken: {
|
|
14478
14483
|
isRequired: true,
|
|
14479
14484
|
requiredType: "string",
|
|
@@ -14521,6 +14526,12 @@ API Response: ${JSON.stringify(statusResult, null, 2)}`);
|
|
|
14521
14526
|
label: "Developer Token",
|
|
14522
14527
|
description: "Google Ads API Developer Token",
|
|
14523
14528
|
attributes: [CONFIG_ATTRIBUTES2.SECRET]
|
|
14529
|
+
},
|
|
14530
|
+
LoginCustomerId: {
|
|
14531
|
+
isRequired: true,
|
|
14532
|
+
requiredType: "string",
|
|
14533
|
+
label: "Login Customer ID",
|
|
14534
|
+
description: "ID of manager account (must be provided without dashes, e.g., '1234567890' not '123-456-7890'). Required for accessing client accounts through a manager account."
|
|
14524
14535
|
}
|
|
14525
14536
|
}
|
|
14526
14537
|
}
|
|
@@ -14691,7 +14702,7 @@ API Response: ${JSON.stringify(statusResult, null, 2)}`);
|
|
|
14691
14702
|
* @returns {Array<Object>} - API response data
|
|
14692
14703
|
*/
|
|
14693
14704
|
async makeRequest({ customerId, query, nodeName, fields }) {
|
|
14694
|
-
var _a, _b;
|
|
14705
|
+
var _a, _b, _c, _d;
|
|
14695
14706
|
const accessToken = await this.getAccessToken();
|
|
14696
14707
|
const url = `https://googleads.googleapis.com/v21/customers/${customerId}/googleAds:search`;
|
|
14697
14708
|
console.log(`Google Ads API Request URL: ${url}`);
|
|
@@ -14705,13 +14716,18 @@ API Response: ${JSON.stringify(statusResult, null, 2)}`);
|
|
|
14705
14716
|
if (nextPageToken) {
|
|
14706
14717
|
requestBody.pageToken = nextPageToken;
|
|
14707
14718
|
}
|
|
14719
|
+
const loginCustomerId = (_b = (_a = this.config.AuthType.items) == null ? void 0 : _a.LoginCustomerId) == null ? void 0 : _b.value;
|
|
14720
|
+
const headers = {
|
|
14721
|
+
"Authorization": `Bearer ${accessToken}`,
|
|
14722
|
+
"developer-token": (_d = (_c = this.config.AuthType.items) == null ? void 0 : _c.DeveloperToken) == null ? void 0 : _d.value,
|
|
14723
|
+
"Content-Type": "application/json"
|
|
14724
|
+
};
|
|
14725
|
+
if (loginCustomerId) {
|
|
14726
|
+
headers["login-customer-id"] = loginCustomerId;
|
|
14727
|
+
}
|
|
14708
14728
|
const options = {
|
|
14709
14729
|
method: "POST",
|
|
14710
|
-
headers
|
|
14711
|
-
"Authorization": `Bearer ${accessToken}`,
|
|
14712
|
-
"developer-token": (_b = (_a = this.config.AuthType.items) == null ? void 0 : _a.DeveloperToken) == null ? void 0 : _b.value,
|
|
14713
|
-
"Content-Type": "application/json"
|
|
14714
|
-
},
|
|
14730
|
+
headers,
|
|
14715
14731
|
payload: JSON.stringify(requestBody),
|
|
14716
14732
|
body: JSON.stringify(requestBody),
|
|
14717
14733
|
muteHttpExceptions: true
|