feat(Google Ads Node): Update api version to v11 (#4427)

This commit is contained in:
Jonathan Bennetts 2023-01-16 13:12:58 +00:00 committed by GitHub
parent f634f0dc59
commit dfff982662
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -17,6 +17,7 @@ export class GoogleAdsOAuth2Api implements ICredentialType {
name: 'developerToken', name: 'developerToken',
type: 'string', type: 'string',
default: '', default: '',
required: true,
}, },
{ {
displayName: 'Scope', displayName: 'Scope',

View file

@ -45,7 +45,7 @@ export const campaignOperations: INodeProperties[] = [
routing: { routing: {
request: { request: {
method: 'POST', method: 'POST',
url: '={{"/v9/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', url: '={{"/v11/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
body: { body: {
query: query:
'={{ "' + '={{ "' +
@ -93,7 +93,7 @@ export const campaignOperations: INodeProperties[] = [
routing: { routing: {
request: { request: {
method: 'POST', method: 'POST',
url: '={{"/v9/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}', url: '={{"/v11/customers/" + $parameter["clientCustomerId"].toString().replace(/-/g, "") + "/googleAds:search"}}',
returnFullResponse: true, returnFullResponse: true,
body: { body: {
query: query:
@ -125,7 +125,6 @@ export const campaignOperations: INodeProperties[] = [
headers: { headers: {
'login-customer-id': 'login-customer-id':
'={{$parameter["managerCustomerId"].toString().replace(/-/g, "")}}', '={{$parameter["managerCustomerId"].toString().replace(/-/g, "")}}',
'content-type': 'application/x-www-form-urlencoded',
}, },
}, },
output: { output: {

View file

@ -23,7 +23,7 @@ export class GoogleAds implements INodeType {
testedBy: { testedBy: {
request: { request: {
method: 'GET', method: 'GET',
url: '/v9/customers:listAccessibleCustomers', url: '/v11/customers:listAccessibleCustomers',
}, },
}, },
}, },