@apteva/integrations 0.15.7 → 0.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,10 @@
61
61
  "input_schema": {
62
62
  "type": "object",
63
63
  "properties": {
64
- "with_ad_accounts": { "type": "boolean", "default": false }
64
+ "with_ad_accounts": {
65
+ "type": "boolean",
66
+ "default": false
67
+ }
65
68
  }
66
69
  }
67
70
  },
@@ -73,11 +76,20 @@
73
76
  "input_schema": {
74
77
  "type": "object",
75
78
  "properties": {
76
- "organization_id": { "type": "string" },
77
- "limit": { "type": "integer", "default": 50 },
78
- "cursor": { "type": "string" }
79
+ "organization_id": {
80
+ "type": "string"
81
+ },
82
+ "limit": {
83
+ "type": "integer",
84
+ "default": 50
85
+ },
86
+ "cursor": {
87
+ "type": "string"
88
+ }
79
89
  },
80
- "required": ["organization_id"]
90
+ "required": [
91
+ "organization_id"
92
+ ]
81
93
  }
82
94
  },
83
95
  {
@@ -88,12 +100,24 @@
88
100
  "input_schema": {
89
101
  "type": "object",
90
102
  "properties": {
91
- "ad_account_id": { "type": "string" },
92
- "limit": { "type": "integer", "default": 50 },
93
- "cursor": { "type": "string" },
94
- "read_deleted_entities": { "type": "boolean", "default": false }
103
+ "ad_account_id": {
104
+ "type": "string"
105
+ },
106
+ "limit": {
107
+ "type": "integer",
108
+ "default": 50
109
+ },
110
+ "cursor": {
111
+ "type": "string"
112
+ },
113
+ "read_deleted_entities": {
114
+ "type": "boolean",
115
+ "default": false
116
+ }
95
117
  },
96
- "required": ["ad_account_id"]
118
+ "required": [
119
+ "ad_account_id"
120
+ ]
97
121
  }
98
122
  },
99
123
  {
@@ -104,10 +128,20 @@
104
128
  "input_schema": {
105
129
  "type": "object",
106
130
  "properties": {
107
- "ad_account_id": { "type": "string" },
108
- "campaigns": { "type": "array", "items": { "type": "object" } }
131
+ "ad_account_id": {
132
+ "type": "string"
133
+ },
134
+ "campaigns": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "object"
138
+ }
139
+ }
109
140
  },
110
- "required": ["ad_account_id", "campaigns"]
141
+ "required": [
142
+ "ad_account_id",
143
+ "campaigns"
144
+ ]
111
145
  }
112
146
  },
113
147
  {
@@ -118,10 +152,20 @@
118
152
  "input_schema": {
119
153
  "type": "object",
120
154
  "properties": {
121
- "ad_account_id": { "type": "string" },
122
- "campaigns": { "type": "array", "items": { "type": "object" } }
155
+ "ad_account_id": {
156
+ "type": "string"
157
+ },
158
+ "campaigns": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "object"
162
+ }
163
+ }
123
164
  },
124
- "required": ["ad_account_id", "campaigns"]
165
+ "required": [
166
+ "ad_account_id",
167
+ "campaigns"
168
+ ]
125
169
  }
126
170
  },
127
171
  {
@@ -132,11 +176,20 @@
132
176
  "input_schema": {
133
177
  "type": "object",
134
178
  "properties": {
135
- "campaign_id": { "type": "string" },
136
- "limit": { "type": "integer", "default": 50 },
137
- "cursor": { "type": "string" }
179
+ "campaign_id": {
180
+ "type": "string"
181
+ },
182
+ "limit": {
183
+ "type": "integer",
184
+ "default": 50
185
+ },
186
+ "cursor": {
187
+ "type": "string"
188
+ }
138
189
  },
139
- "required": ["campaign_id"]
190
+ "required": [
191
+ "campaign_id"
192
+ ]
140
193
  }
141
194
  },
142
195
  {
@@ -147,10 +200,20 @@
147
200
  "input_schema": {
148
201
  "type": "object",
149
202
  "properties": {
150
- "campaign_id": { "type": "string" },
151
- "adsquads": { "type": "array", "items": { "type": "object" } }
203
+ "campaign_id": {
204
+ "type": "string"
205
+ },
206
+ "adsquads": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "object"
210
+ }
211
+ }
152
212
  },
153
- "required": ["campaign_id", "adsquads"]
213
+ "required": [
214
+ "campaign_id",
215
+ "adsquads"
216
+ ]
154
217
  }
155
218
  },
156
219
  {
@@ -161,11 +224,20 @@
161
224
  "input_schema": {
162
225
  "type": "object",
163
226
  "properties": {
164
- "ad_squad_id": { "type": "string" },
165
- "limit": { "type": "integer", "default": 50 },
166
- "cursor": { "type": "string" }
227
+ "ad_squad_id": {
228
+ "type": "string"
229
+ },
230
+ "limit": {
231
+ "type": "integer",
232
+ "default": 50
233
+ },
234
+ "cursor": {
235
+ "type": "string"
236
+ }
167
237
  },
168
- "required": ["ad_squad_id"]
238
+ "required": [
239
+ "ad_squad_id"
240
+ ]
169
241
  }
170
242
  },
171
243
  {
@@ -176,10 +248,20 @@
176
248
  "input_schema": {
177
249
  "type": "object",
178
250
  "properties": {
179
- "ad_squad_id": { "type": "string" },
180
- "ads": { "type": "array", "items": { "type": "object" } }
251
+ "ad_squad_id": {
252
+ "type": "string"
253
+ },
254
+ "ads": {
255
+ "type": "array",
256
+ "items": {
257
+ "type": "object"
258
+ }
259
+ }
181
260
  },
182
- "required": ["ad_squad_id", "ads"]
261
+ "required": [
262
+ "ad_squad_id",
263
+ "ads"
264
+ ]
183
265
  }
184
266
  },
185
267
  {
@@ -190,11 +272,20 @@
190
272
  "input_schema": {
191
273
  "type": "object",
192
274
  "properties": {
193
- "ad_account_id": { "type": "string" },
194
- "limit": { "type": "integer", "default": 50 },
195
- "cursor": { "type": "string" }
275
+ "ad_account_id": {
276
+ "type": "string"
277
+ },
278
+ "limit": {
279
+ "type": "integer",
280
+ "default": 50
281
+ },
282
+ "cursor": {
283
+ "type": "string"
284
+ }
196
285
  },
197
- "required": ["ad_account_id"]
286
+ "required": [
287
+ "ad_account_id"
288
+ ]
198
289
  }
199
290
  },
200
291
  {
@@ -205,15 +296,52 @@
205
296
  "input_schema": {
206
297
  "type": "object",
207
298
  "properties": {
208
- "campaign_id": { "type": "string" },
209
- "granularity": { "type": "string", "enum": ["TOTAL", "DAY", "HOUR"], "default": "DAY" },
210
- "fields": { "type": "string", "description": "Comma-separated metric names" },
211
- "start_time": { "type": "string" },
212
- "end_time": { "type": "string" },
213
- "swipe_up_attribution_window": { "type": "string", "enum": ["1_DAY", "7_DAY", "28_DAY"], "default": "28_DAY" },
214
- "view_attribution_window": { "type": "string", "enum": ["1_HOUR", "3_HOUR", "6_HOUR", "1_DAY", "7_DAY"], "default": "1_DAY" }
299
+ "campaign_id": {
300
+ "type": "string"
301
+ },
302
+ "granularity": {
303
+ "type": "string",
304
+ "enum": [
305
+ "TOTAL",
306
+ "DAY",
307
+ "HOUR"
308
+ ],
309
+ "default": "DAY"
310
+ },
311
+ "fields": {
312
+ "type": "string",
313
+ "description": "Comma-separated metric names"
314
+ },
315
+ "start_time": {
316
+ "type": "string"
317
+ },
318
+ "end_time": {
319
+ "type": "string"
320
+ },
321
+ "swipe_up_attribution_window": {
322
+ "type": "string",
323
+ "enum": [
324
+ "1_DAY",
325
+ "7_DAY",
326
+ "28_DAY"
327
+ ],
328
+ "default": "28_DAY"
329
+ },
330
+ "view_attribution_window": {
331
+ "type": "string",
332
+ "enum": [
333
+ "1_HOUR",
334
+ "3_HOUR",
335
+ "6_HOUR",
336
+ "1_DAY",
337
+ "7_DAY"
338
+ ],
339
+ "default": "1_DAY"
340
+ }
215
341
  },
216
- "required": ["campaign_id"]
342
+ "required": [
343
+ "campaign_id"
344
+ ]
217
345
  }
218
346
  },
219
347
  {
@@ -224,14 +352,253 @@
224
352
  "input_schema": {
225
353
  "type": "object",
226
354
  "properties": {
227
- "ad_account_id": { "type": "string" },
228
- "granularity": { "type": "string", "enum": ["TOTAL", "DAY", "HOUR"], "default": "DAY" },
229
- "fields": { "type": "string" },
230
- "start_time": { "type": "string" },
231
- "end_time": { "type": "string" },
232
- "breakdown": { "type": "string", "description": "e.g. country, region, gender, age, os, placement" }
355
+ "ad_account_id": {
356
+ "type": "string"
357
+ },
358
+ "granularity": {
359
+ "type": "string",
360
+ "enum": [
361
+ "TOTAL",
362
+ "DAY",
363
+ "HOUR"
364
+ ],
365
+ "default": "DAY"
366
+ },
367
+ "fields": {
368
+ "type": "string"
369
+ },
370
+ "start_time": {
371
+ "type": "string"
372
+ },
373
+ "end_time": {
374
+ "type": "string"
375
+ },
376
+ "breakdown": {
377
+ "type": "string",
378
+ "description": "e.g. country, region, gender, age, os, placement"
379
+ }
233
380
  },
234
- "required": ["ad_account_id"]
381
+ "required": [
382
+ "ad_account_id"
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "name": "update_ad_squad",
388
+ "description": "Update one or more ad squads. Each item must include id and changed fields.",
389
+ "method": "PUT",
390
+ "path": "/campaigns/{campaign_id}/adsquads",
391
+ "input_schema": {
392
+ "type": "object",
393
+ "properties": {
394
+ "campaign_id": {
395
+ "type": "string"
396
+ },
397
+ "adsquads": {
398
+ "type": "array",
399
+ "items": {
400
+ "type": "object"
401
+ }
402
+ }
403
+ },
404
+ "required": [
405
+ "campaign_id",
406
+ "adsquads"
407
+ ]
408
+ }
409
+ },
410
+ {
411
+ "name": "delete_ad_squad",
412
+ "description": "Delete/archive an ad squad by id.",
413
+ "method": "DELETE",
414
+ "path": "/adsquads/{ad_squad_id}",
415
+ "input_schema": {
416
+ "type": "object",
417
+ "properties": {
418
+ "ad_squad_id": {
419
+ "type": "string"
420
+ }
421
+ },
422
+ "required": [
423
+ "ad_squad_id"
424
+ ]
425
+ }
426
+ },
427
+ {
428
+ "name": "update_ad",
429
+ "description": "Update one or more ads. Each item must include id and changed fields.",
430
+ "method": "PUT",
431
+ "path": "/adsquads/{ad_squad_id}/ads",
432
+ "input_schema": {
433
+ "type": "object",
434
+ "properties": {
435
+ "ad_squad_id": {
436
+ "type": "string"
437
+ },
438
+ "ads": {
439
+ "type": "array",
440
+ "items": {
441
+ "type": "object"
442
+ }
443
+ }
444
+ },
445
+ "required": [
446
+ "ad_squad_id",
447
+ "ads"
448
+ ]
449
+ }
450
+ },
451
+ {
452
+ "name": "delete_ad",
453
+ "description": "Delete/archive an ad by id.",
454
+ "method": "DELETE",
455
+ "path": "/ads/{ad_id}",
456
+ "input_schema": {
457
+ "type": "object",
458
+ "properties": {
459
+ "ad_id": {
460
+ "type": "string"
461
+ }
462
+ },
463
+ "required": [
464
+ "ad_id"
465
+ ]
466
+ }
467
+ },
468
+ {
469
+ "name": "create_creative",
470
+ "description": "Create one or more creatives under an ad account. Creative payloads vary by type: Snap Ad, Story, Collection, AR Lens, Commercial, or attachment.",
471
+ "method": "POST",
472
+ "path": "/adaccounts/{ad_account_id}/creatives",
473
+ "input_schema": {
474
+ "type": "object",
475
+ "properties": {
476
+ "ad_account_id": {
477
+ "type": "string"
478
+ },
479
+ "creatives": {
480
+ "type": "array",
481
+ "items": {
482
+ "type": "object"
483
+ }
484
+ }
485
+ },
486
+ "required": [
487
+ "ad_account_id",
488
+ "creatives"
489
+ ]
490
+ }
491
+ },
492
+ {
493
+ "name": "update_creative",
494
+ "description": "Update one or more creatives. Each creative must include id.",
495
+ "method": "PUT",
496
+ "path": "/adaccounts/{ad_account_id}/creatives",
497
+ "input_schema": {
498
+ "type": "object",
499
+ "properties": {
500
+ "ad_account_id": {
501
+ "type": "string"
502
+ },
503
+ "creatives": {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "object"
507
+ }
508
+ }
509
+ },
510
+ "required": [
511
+ "ad_account_id",
512
+ "creatives"
513
+ ]
514
+ }
515
+ },
516
+ {
517
+ "name": "delete_creative",
518
+ "description": "Delete/archive a creative by id.",
519
+ "method": "DELETE",
520
+ "path": "/creatives/{creative_id}",
521
+ "input_schema": {
522
+ "type": "object",
523
+ "properties": {
524
+ "creative_id": {
525
+ "type": "string"
526
+ }
527
+ },
528
+ "required": [
529
+ "creative_id"
530
+ ]
531
+ }
532
+ },
533
+ {
534
+ "name": "list_audiences",
535
+ "description": "List Snapchat audience segments under an ad account.",
536
+ "method": "GET",
537
+ "path": "/adaccounts/{ad_account_id}/segments",
538
+ "input_schema": {
539
+ "type": "object",
540
+ "properties": {
541
+ "ad_account_id": {
542
+ "type": "string"
543
+ },
544
+ "limit": {
545
+ "type": "integer"
546
+ },
547
+ "cursor": {
548
+ "type": "string"
549
+ }
550
+ },
551
+ "required": [
552
+ "ad_account_id"
553
+ ]
554
+ }
555
+ },
556
+ {
557
+ "name": "create_audience",
558
+ "description": "Create one or more audience segments/custom audiences under an ad account.",
559
+ "method": "POST",
560
+ "path": "/adaccounts/{ad_account_id}/segments",
561
+ "input_schema": {
562
+ "type": "object",
563
+ "properties": {
564
+ "ad_account_id": {
565
+ "type": "string"
566
+ },
567
+ "segments": {
568
+ "type": "array",
569
+ "items": {
570
+ "type": "object"
571
+ }
572
+ }
573
+ },
574
+ "required": [
575
+ "ad_account_id",
576
+ "segments"
577
+ ]
578
+ }
579
+ },
580
+ {
581
+ "name": "update_audience",
582
+ "description": "Update one or more audience segments/custom audiences under an ad account.",
583
+ "method": "PUT",
584
+ "path": "/adaccounts/{ad_account_id}/segments",
585
+ "input_schema": {
586
+ "type": "object",
587
+ "properties": {
588
+ "ad_account_id": {
589
+ "type": "string"
590
+ },
591
+ "segments": {
592
+ "type": "array",
593
+ "items": {
594
+ "type": "object"
595
+ }
596
+ }
597
+ },
598
+ "required": [
599
+ "ad_account_id",
600
+ "segments"
601
+ ]
235
602
  }
236
603
  }
237
604
  ]