1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

Ad get by account

This commit is contained in:
Rupenieks 2020-05-14 15:14:07 +02:00
parent 94278b2e56
commit 39d7f16840
2 changed files with 53 additions and 18 deletions

View File

@ -33,6 +33,9 @@ export const adOperations = [
type: 'options', type: 'options',
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -76,6 +79,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -94,6 +100,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -112,6 +121,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -130,6 +142,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -149,6 +164,9 @@ export const adFields = [
default: {}, default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'get' 'get'
], ],
@ -251,28 +269,36 @@ export const adFields = [
typeOptions: { typeOptions: {
multipleValues: true multipleValues: true
}, },
default: 'impression',
options: [ options: [
{ {
displayName: 'Status', displayName: 'Status Properties',
name: 'properties', name: 'properties',
values: [ values: [
{ {
name: 'ACTIVE', displayName: 'Status',
value: 'ACTIVE' name: 'status',
}, type: 'options',
{ default: '',
name: 'ARCHIVED', description: 'Effective status.',
value: 'ARCHIVED' options: [
}, {
{ name: 'ACTIVE',
name: 'DELETED', value: 'ACTIVE'
value: 'DELETED' },
}, {
{ name: 'ARCHIVED',
name: 'PAUSED', value: 'ARCHIVED'
value: 'PAUSED' },
}, {
name: 'DELETED',
value: 'DELETED'
},
{
name: 'PAUSED',
value: 'PAUSED'
},
]
}
] ]
} }
] ]
@ -329,6 +355,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'create' 'create'
], ],
@ -344,6 +373,9 @@ export const adFields = [
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
resource: [
'ad'
],
operation: [ operation: [
'create' 'create'
], ],

View File

@ -142,6 +142,9 @@ export const adInsightsFields = [
description: 'Insert JSON data instead of manual parameter selection.', description: 'Insert JSON data instead of manual parameter selection.',
displayOptions: { displayOptions: {
show: { show: {
resource: [
'insightsReport'
],
type: [ type: [
'ad', 'adAccount', 'adCampaign', 'adSet' 'ad', 'adAccount', 'adCampaign', 'adSet'
], ],
@ -483,7 +486,7 @@ export const adInsightsFields = [
type: 'fixedCollection', type: 'fixedCollection',
default: 'properties', default: 'properties',
description: 'Filters on the report data. This parameter is an array of filter objects.', description: 'Filters on the report data. This parameter is an array of filter objects.',
tyoeOptions: { typeOptions: {
multipleValues: true multipleValues: true
}, },
options: [ options: [