Skip to content

Commit

Permalink
feat(Google Ads Node): Update to support v15 (#7962)
Browse files Browse the repository at this point in the history
Updates Google Ads node to use the v15 API for
https://community.n8n.io/t/google-ads-400-bad-request-error/21709/26
  • Loading branch information
Joffcom authored Dec 8, 2023
1 parent 1a87f70 commit 7f01269
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Google/Ads/CampaignDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const campaignOperations: INodeProperties[] = [
routing: {
request: {
method: 'POST',
url: '={{"/v13/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
url: '={{"/v15/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
body: {
query:
'={{ "' +
Expand Down Expand Up @@ -89,7 +89,7 @@ export const campaignOperations: INodeProperties[] = [
routing: {
request: {
method: 'POST',
url: '={{"/v13/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
url: '={{"/v15/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
returnFullResponse: true,
body: {
query:
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Google/Ads/GoogleAds.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class GoogleAds implements INodeType {
testedBy: {
request: {
method: 'GET',
url: '/v13/customers:listAccessibleCustomers',
url: '/v15/customers:listAccessibleCustomers',
},
},
},
Expand Down

0 comments on commit 7f01269

Please sign in to comment.