mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(Google Ads Node): Update api version to v11 (#4427)
This commit is contained in:
parent
f634f0dc59
commit
dfff982662
|
@ -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',
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue