fix(Google Ads Node): Migrate from sunset v21 API to v25 (backport to release-candidate/2.35.x) (#36259)

This commit is contained in:
n8n-assistant[bot]
2026-08-13 19:26:34 +00:00
committed by GitHub
parent e58a68016b
commit 75780ec66f
3 changed files with 7 additions and 7 deletions
@@ -41,7 +41,7 @@ export const campaignOperations: INodeProperties[] = [
routing: {
request: {
method: 'POST',
url: '={{"/v21/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
url: '={{"/v25/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
body: {
query:
'={{ "' +
@@ -89,7 +89,7 @@ export const campaignOperations: INodeProperties[] = [
routing: {
request: {
method: 'POST',
url: '={{"/v21/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
url: '={{"/v25/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
returnFullResponse: true,
body: {
query:
@@ -25,7 +25,7 @@ export class GoogleAds implements INodeType {
testedBy: {
request: {
method: 'GET',
url: '/v21/customers:listAccessibleCustomers',
url: '/v25/customers:listAccessibleCustomers',
},
},
},
@@ -19,7 +19,7 @@ describe('Google Ads Node', () => {
beforeAll(() => {
googleAdsNock
.post('/v21/customers/4445556666/googleAds:search', {
.post('/v25/customers/4445556666/googleAds:search', {
query:
'select ' +
'campaign.id, ' +
@@ -61,7 +61,7 @@ describe('Google Ads Node', () => {
beforeAll(() => {
googleAdsNock
.post('/v21/customers/4445556666/googleAds:search', {
.post('/v25/customers/4445556666/googleAds:search', {
query:
'select ' +
'campaign.id, ' +
@@ -90,7 +90,7 @@ describe('Google Ads Node', () => {
.reply(200, getManyResult);
googleAdsNock
.post('/v21/customers/4445556666/googleAds:search', {
.post('/v25/customers/4445556666/googleAds:search', {
query:
'select ' +
'campaign.id, ' +
@@ -121,7 +121,7 @@ describe('Google Ads Node', () => {
.reply(200, getManyResult);
googleAdsNock
.post('/v21/customers/4445556666/googleAds:search', {
.post('/v25/customers/4445556666/googleAds:search', {
query:
'select ' +
'campaign.id, ' +