@getlatedev/node 0.2.1745 → 0.2.1747

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.d.mts CHANGED
@@ -64796,7 +64796,7 @@ type ListAdsData = {
64796
64796
  * Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
64797
64797
  */
64798
64798
  pageId?: string;
64799
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
64799
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
64800
64800
  /**
64801
64801
  * Meta ad ID. Returns the ad with this platform-side ad ID.
64802
64802
  */
@@ -66800,7 +66800,7 @@ type ListAdCampaignsData = {
66800
66800
  * Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
66801
66801
  */
66802
66802
  pageId?: string;
66803
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
66803
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
66804
66804
  /**
66805
66805
  * Profile ID
66806
66806
  */
@@ -66968,7 +66968,7 @@ type CreateAdCampaignError = (unknown | ErrorResponse);
66968
66968
  type UpdateAdCampaignStatusData = {
66969
66969
  body: {
66970
66970
  status: 'active' | 'paused';
66971
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
66971
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
66972
66972
  };
66973
66973
  headers?: {
66974
66974
  /**
@@ -67202,7 +67202,7 @@ type UpdateAdCampaignData = {
67202
67202
  /**
67203
67203
  * Required: platform campaign IDs are not globally unique.
67204
67204
  */
67205
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67205
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
67206
67206
  /**
67207
67207
  * **Meta only.** Zernio SocialAccount id owning the ad account. Needed only for an EMPTY campaign (zero ads); ignored otherwise.
67208
67208
  */
@@ -67326,7 +67326,7 @@ type UpdateAdCampaignResponse = ({
67326
67326
  type UpdateAdCampaignError = (unknown | ErrorResponse);
67327
67327
  type DeleteAdCampaignData = {
67328
67328
  body: {
67329
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67329
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
67330
67330
  /**
67331
67331
  * Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
67332
67332
  */
@@ -68742,7 +68742,7 @@ type GetAdSetTargetingError = (ErrorResponse | unknown);
68742
68742
  type UpdateAdSetStatusData = {
68743
68743
  body: {
68744
68744
  status: 'active' | 'paused';
68745
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68745
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68746
68746
  };
68747
68747
  headers?: {
68748
68748
  /**
@@ -68874,7 +68874,7 @@ type GetAdTreeData = {
68874
68874
  * Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page: campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
68875
68875
  */
68876
68876
  pageId?: string;
68877
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68877
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68878
68878
  /**
68879
68879
  * Profile ID
68880
68880
  */
@@ -79575,6 +79575,23 @@ type GetEventsAccuracyResponse = ({
79575
79575
  * `match.identified / match.events`. `null` with nothing sent.
79576
79576
  */
79577
79577
  matchRate?: (number) | null;
79578
+ /**
79579
+ * Why the destination refused events in the period, by refusal code, most events first (at most 5). Empty when it refused none.
79580
+ */
79581
+ failureReasons?: Array<{
79582
+ /**
79583
+ * The refusal code: the platform's own, or Zernio's (such as `INVALID_EVENT` or `INVALID_EVENT_TIME`).
79584
+ */
79585
+ code?: string;
79586
+ /**
79587
+ * One refusal message of this code, as the platform worded it.
79588
+ */
79589
+ example?: string;
79590
+ /**
79591
+ * Events refused with this code.
79592
+ */
79593
+ events?: number;
79594
+ }>;
79578
79595
  }>;
79579
79596
  });
79580
79597
  type GetEventsAccuracyError = (ErrorResponse | unknown);
package/dist/index.d.ts CHANGED
@@ -64796,7 +64796,7 @@ type ListAdsData = {
64796
64796
  * Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
64797
64797
  */
64798
64798
  pageId?: string;
64799
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
64799
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
64800
64800
  /**
64801
64801
  * Meta ad ID. Returns the ad with this platform-side ad ID.
64802
64802
  */
@@ -66800,7 +66800,7 @@ type ListAdCampaignsData = {
66800
66800
  * Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
66801
66801
  */
66802
66802
  pageId?: string;
66803
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
66803
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
66804
66804
  /**
66805
66805
  * Profile ID
66806
66806
  */
@@ -66968,7 +66968,7 @@ type CreateAdCampaignError = (unknown | ErrorResponse);
66968
66968
  type UpdateAdCampaignStatusData = {
66969
66969
  body: {
66970
66970
  status: 'active' | 'paused';
66971
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
66971
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
66972
66972
  };
66973
66973
  headers?: {
66974
66974
  /**
@@ -67202,7 +67202,7 @@ type UpdateAdCampaignData = {
67202
67202
  /**
67203
67203
  * Required: platform campaign IDs are not globally unique.
67204
67204
  */
67205
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67205
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
67206
67206
  /**
67207
67207
  * **Meta only.** Zernio SocialAccount id owning the ad account. Needed only for an EMPTY campaign (zero ads); ignored otherwise.
67208
67208
  */
@@ -67326,7 +67326,7 @@ type UpdateAdCampaignResponse = ({
67326
67326
  type UpdateAdCampaignError = (unknown | ErrorResponse);
67327
67327
  type DeleteAdCampaignData = {
67328
67328
  body: {
67329
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
67329
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
67330
67330
  /**
67331
67331
  * Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
67332
67332
  */
@@ -68742,7 +68742,7 @@ type GetAdSetTargetingError = (ErrorResponse | unknown);
68742
68742
  type UpdateAdSetStatusData = {
68743
68743
  body: {
68744
68744
  status: 'active' | 'paused';
68745
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68745
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68746
68746
  };
68747
68747
  headers?: {
68748
68748
  /**
@@ -68874,7 +68874,7 @@ type GetAdTreeData = {
68874
68874
  * Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page: campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
68875
68875
  */
68876
68876
  pageId?: string;
68877
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68877
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68878
68878
  /**
68879
68879
  * Profile ID
68880
68880
  */
@@ -79575,6 +79575,23 @@ type GetEventsAccuracyResponse = ({
79575
79575
  * `match.identified / match.events`. `null` with nothing sent.
79576
79576
  */
79577
79577
  matchRate?: (number) | null;
79578
+ /**
79579
+ * Why the destination refused events in the period, by refusal code, most events first (at most 5). Empty when it refused none.
79580
+ */
79581
+ failureReasons?: Array<{
79582
+ /**
79583
+ * The refusal code: the platform's own, or Zernio's (such as `INVALID_EVENT` or `INVALID_EVENT_TIME`).
79584
+ */
79585
+ code?: string;
79586
+ /**
79587
+ * One refusal message of this code, as the platform worded it.
79588
+ */
79589
+ example?: string;
79590
+ /**
79591
+ * Events refused with this code.
79592
+ */
79593
+ events?: number;
79594
+ }>;
79578
79595
  }>;
79579
79596
  });
79580
79597
  type GetEventsAccuracyError = (ErrorResponse | unknown);
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.1745",
39
+ version: "0.2.1747",
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.1745",
8
+ version: "0.2.1747",
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.1745",
3
+ "version": "0.2.1747",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15609,6 +15609,8 @@ export const listAdCampaigns = <ThrowOnError extends boolean = false>(options?:
15609
15609
  * - OpenAI: `goal` sets the campaign objective, and `conversions` needs an active standard conversion event on the account.
15610
15610
  * - Reddit: see below.
15611
15611
  * - LinkedIn: creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there. It comes back `status: DRAFT`.
15612
+ * - The Trade Desk: `goal` is `awareness` (Display) or `video_views` (Video), 422 otherwise. The campaign maximizes reach and takes an optional lifetime budget (paced evenly) and dates.
15613
+ * - The Trade Desk creates it with no ad groups, so it always comes back `PAUSED` and spends nothing until an ad group is enabled in The Trade Desk.
15612
15614
  *
15613
15615
  * ### Reddit
15614
15616
  *
@@ -15636,6 +15638,8 @@ export const createAdCampaign = <ThrowOnError extends boolean = false>(options:
15636
15638
  *
15637
15639
  * It writes the campaign's own on/off switch and nothing else, on every platform: Meta, TikTok, Google, LinkedIn campaign group, Pinterest, X, ChatGPT (OpenAI).
15638
15640
  *
15641
+ * The Trade Desk is the exception: its campaigns have no switch of their own and deliver through their ad groups. Pausing a Trade Desk campaign switches off every enabled ad group in it, and `status: active` answers 422: turn the ad groups you want back on with PUT /v1/ads/ad-sets/{adSetId}/status.
15642
+ *
15639
15643
  * Its ad sets and ads keep their own switches:
15640
15644
  *
15641
15645
  * - Pausing stops their delivery through the campaign.
@@ -15805,8 +15809,8 @@ export const getAdCampaignDetails = <ThrowOnError extends boolean = false>(optio
15805
15809
  * | `networkSettings` | 400 | Search only | 400 |
15806
15810
  * | `trackingUrlTemplate`, `finalUrlSuffix` | 400 | Yes | 400 |
15807
15811
  * | `sharedBudgetId` | 400 | Yes | 400 |
15808
- * | `budget` (CBO; ABO returns 409) | Yes | Daily only | OpenAI and Reddit: daily or lifetime; Amazon: daily, or the lifetime type a Sponsored Brands campaign was created with; others 501 |
15809
- * | `name` | Yes | 501 | Reddit and Amazon: Yes; others 501 |
15812
+ * | `budget` (CBO; ABO returns 409) | Yes | Daily only | OpenAI and Reddit: daily or lifetime; Amazon: daily, or the lifetime type a Sponsored Brands campaign was created with; The Trade Desk: lifetime, on the running flight (or the next one before the campaign starts); others 501 |
15813
+ * | `name` | Yes | 501 | Reddit, Amazon and The Trade Desk: Yes; others 501 |
15810
15814
  * | `platformSpecificData.spendCap` | Yes | 400 | 400 |
15811
15815
  * | `accountId` (empty campaigns) | Yes | - | - |
15812
15816
  *
@@ -15879,6 +15883,7 @@ export const updateAdCampaign = <ThrowOnError extends boolean = false>(options:
15879
15883
  * - OpenAI, Reddit and Pinterest have no campaign delete and archive it instead (see below).
15880
15884
  *
15881
15885
  * - Amazon archives the campaign: archiving is Amazon's delete, it is permanent, and the campaign stays in reports.
15886
+ * - The Trade Desk archives the campaign, which cannot be undone.
15882
15887
  *
15883
15888
  * Locally, all Ad documents for this campaign are marked `status: cancelled`.
15884
15889
  *
@@ -16009,7 +16014,7 @@ export const editCampaignNegativeKeywords = <ThrowOnError extends boolean = fals
16009
16014
  *
16010
16015
  * Each campaign is updated concurrently, and the response contains a per-campaign result so a single bad row does not fail the whole batch.
16011
16016
  *
16012
- * Each campaign is read, written and re-read exactly as PUT /v1/ads/campaigns/{campaignId}/status describes: only the campaign's own switch is written, never its ad sets' or ads'.
16017
+ * Each campaign is read, written and re-read exactly as PUT /v1/ads/campaigns/{campaignId}/status describes: only the campaign's own switch is written, never its ad sets' or ads' (The Trade Desk excepted: pausing switches off its ad groups and resuming answers 422).
16013
16018
  *
16014
16019
  * `updated` / `skipped` count campaigns.
16015
16020
  *
@@ -16466,7 +16471,7 @@ export const updateAdSet = <ThrowOnError extends boolean = false>(options: Optio
16466
16471
  * `status: cancelled`.
16467
16472
  *
16468
16473
  * Delete is soft on platforms that have no hard delete: LinkedIn moves the
16469
- * campaign to `PENDING_DELETION`, Pinterest, Reddit and Amazon archive the ad group (permanent on Amazon), and X
16474
+ * campaign to `PENDING_DELETION`, Pinterest, Reddit, Amazon and The Trade Desk archive the ad group (permanent on Amazon and The Trade Desk), and X
16470
16475
  * soft-flags the line item. Google removes the ad group. All remain readable
16471
16476
  * for reporting.
16472
16477
  *
@@ -16814,6 +16819,7 @@ export const updateAd = <ThrowOnError extends boolean = false>(options: OptionsL
16814
16819
  * - Reddit Ads has no delete either: the ad is archived (`configured_status` ARCHIVED).
16815
16820
  *
16816
16821
  * - Amazon Ads archives the ad (state ARCHIVED). Archiving is permanent.
16822
+ * - The Trade Desk has no ad entity: the ad is the creative an ad group serves, so deleting it takes that creative off the ad group. The creative itself is kept.
16817
16823
  *
16818
16824
  * To delete a whole campaign on purpose use `DELETE /v1/ads/campaigns/{campaignId}`.
16819
16825
  *
@@ -65908,7 +65908,7 @@ export type ListAdsData = {
65908
65908
  * Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
65909
65909
  */
65910
65910
  pageId?: string;
65911
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
65911
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
65912
65912
  /**
65913
65913
  * Meta ad ID. Returns the ad with this platform-side ad ID.
65914
65914
  */
@@ -68124,7 +68124,7 @@ export type ListAdCampaignsData = {
68124
68124
  * Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
68125
68125
  */
68126
68126
  pageId?: string;
68127
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68127
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68128
68128
  /**
68129
68129
  * Profile ID
68130
68130
  */
@@ -68298,7 +68298,7 @@ export type CreateAdCampaignError = (unknown | ErrorResponse);
68298
68298
  export type UpdateAdCampaignStatusData = {
68299
68299
  body: {
68300
68300
  status: 'active' | 'paused';
68301
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68301
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68302
68302
  };
68303
68303
  headers?: {
68304
68304
  /**
@@ -68547,7 +68547,7 @@ export type UpdateAdCampaignData = {
68547
68547
  /**
68548
68548
  * Required: platform campaign IDs are not globally unique.
68549
68549
  */
68550
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68550
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68551
68551
  /**
68552
68552
  * **Meta only.** Zernio SocialAccount id owning the ad account. Needed only for an EMPTY campaign (zero ads); ignored otherwise.
68553
68553
  */
@@ -68674,7 +68674,7 @@ export type UpdateAdCampaignError = (unknown | ErrorResponse);
68674
68674
 
68675
68675
  export type DeleteAdCampaignData = {
68676
68676
  body: {
68677
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68677
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68678
68678
  /**
68679
68679
  * Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
68680
68680
  */
@@ -70138,7 +70138,7 @@ export type GetAdSetTargetingError = (ErrorResponse | unknown);
70138
70138
  export type UpdateAdSetStatusData = {
70139
70139
  body: {
70140
70140
  status: 'active' | 'paused';
70141
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
70141
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
70142
70142
  };
70143
70143
  headers?: {
70144
70144
  /**
@@ -70273,7 +70273,7 @@ export type GetAdTreeData = {
70273
70273
  * Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page: campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
70274
70274
  */
70275
70275
  pageId?: string;
70276
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
70276
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
70277
70277
  /**
70278
70278
  * Profile ID
70279
70279
  */
@@ -81551,6 +81551,23 @@ export type GetEventsAccuracyResponse = ({
81551
81551
  * `match.identified / match.events`. `null` with nothing sent.
81552
81552
  */
81553
81553
  matchRate?: (number) | null;
81554
+ /**
81555
+ * Why the destination refused events in the period, by refusal code, most events first (at most 5). Empty when it refused none.
81556
+ */
81557
+ failureReasons?: Array<{
81558
+ /**
81559
+ * The refusal code: the platform's own, or Zernio's (such as `INVALID_EVENT` or `INVALID_EVENT_TIME`).
81560
+ */
81561
+ code?: string;
81562
+ /**
81563
+ * One refusal message of this code, as the platform worded it.
81564
+ */
81565
+ example?: string;
81566
+ /**
81567
+ * Events refused with this code.
81568
+ */
81569
+ events?: number;
81570
+ }>;
81554
81571
  }>;
81555
81572
  });
81556
81573