From 2690325c3d742975b4229151c1e66d27a0eac60b Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Mon, 24 Oct 2022 16:49:54 +0100 Subject: [PATCH] feat(Google Ads Node): update api version to v11 --- .../nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts | 1 + packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts | 5 ++--- packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts b/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts index 44edcd783600d..bf6ab92983aae 100644 --- a/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/GoogleAdsOAuth2Api.credentials.ts @@ -13,6 +13,7 @@ export class GoogleAdsOAuth2Api implements ICredentialType { name: 'developerToken', type: 'string', default: '', + required: true, }, { displayName: 'Scope', diff --git a/packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts b/packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts index d8874f8cc88f3..a77a23f042662 100644 --- a/packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts +++ b/packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts @@ -25,7 +25,7 @@ export const campaignOperations: INodeProperties[] = [ routing: { request: { method: 'POST', - url: '={{"/v9/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', + url: '={{"/v11/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', body: { query: '={{ "' + @@ -73,7 +73,7 @@ export const campaignOperations: INodeProperties[] = [ routing: { request: { method: 'POST', - url: '={{"/v9/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', + url: '={{"/v11/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', returnFullResponse: true, body: { query: @@ -105,7 +105,6 @@ export const campaignOperations: INodeProperties[] = [ headers: { 'login-customer-id': '={{$parameter["managerCustomerId"].toString().replace(/-/g, "")}}', - 'content-type': 'application/x-www-form-urlencoded', }, }, output: { diff --git a/packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts b/packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts index 06211ea56030f..46895843833e5 100644 --- a/packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts +++ b/packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts @@ -24,7 +24,7 @@ export class GoogleAds implements INodeType { testedBy: { request: { method: 'GET', - url: '/v9/customers:listAccessibleCustomers', + url: '/v11/customers:listAccessibleCustomers', }, }, },