@getlatedev/node 0.2.1464 → 0.2.1465

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.
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1464",
39
+ version: "0.2.1465",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1464",
8
+ version: "0.2.1465",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1464",
3
+ "version": "0.2.1465",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1675,6 +1675,7 @@ export type AdRule = {
1675
1675
  * Platform campaign IDs the rule is limited to. Null checks the whole ad account.
1676
1676
  */
1677
1677
  campaignIds: Array<(string)> | null;
1678
+ filters: AdRuleFilters;
1678
1679
  conditions: AdRuleConditions;
1679
1680
  actions: AdRuleActions;
1680
1681
  schedule: AdRuleSchedule;
@@ -1917,6 +1918,18 @@ export type AdRuleEvaluation = {
1917
1918
  objects: Array<AdRuleObjectEvaluation>;
1918
1919
  };
1919
1920
 
1921
+ /**
1922
+ * Narrows the objects the rule checks. Every filter must hold. Text compares without case, and a missing field reads as empty.
1923
+ */
1924
+ export type AdRuleFilters = Array<{
1925
+ /**
1926
+ * The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
1927
+ */
1928
+ field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
1929
+ op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
1930
+ value: string;
1931
+ }>;
1932
+
1920
1933
  /**
1921
1934
  * Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
1922
1935
  */
@@ -51202,6 +51215,7 @@ export type CreateAdRuleData = {
51202
51215
  * Only check these platform campaign IDs (or their ad sets). Leave out to check the whole ad account.
51203
51216
  */
51204
51217
  campaignIds?: Array<(string)>;
51218
+ filters?: AdRuleFilters;
51205
51219
  conditions: AdRuleConditions;
51206
51220
  actions: AdRuleActions;
51207
51221
  /**
@@ -51288,6 +51302,7 @@ export type UpdateAdRuleData = {
51288
51302
  name?: string;
51289
51303
  level?: AdRuleLevel;
51290
51304
  campaignIds?: Array<(string)> | null;
51305
+ filters?: AdRuleFilters;
51291
51306
  conditions?: AdRuleConditions;
51292
51307
  actions?: AdRuleActions;
51293
51308
  schedule?: AdRuleSchedule;