@zernio/node 0.2.53 → 0.2.55

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
@@ -714,6 +714,18 @@ type Ad = {
714
714
  * Alternative image URL
715
715
  */
716
716
  imageUrl?: string;
717
+ /**
718
+ * Meta video ID for VIDEO-type ads. Null for non-video ads. Callers that need an embeddable MP4 can call GET /{videoId}?fields=source with the page access token.
719
+ */
720
+ videoId?: (string) | null;
721
+ /**
722
+ * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
723
+ */
724
+ videoUrl?: (string) | null;
725
+ /**
726
+ * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
727
+ */
728
+ objectType?: string;
717
729
  /**
718
730
  * All media URLs for this ad (carousel images, multiple assets). Populated for Meta (carousel child_attachments), Google Ads (responsive display marketing_images), and LinkedIn (multi-image posts).
719
731
  */
@@ -11789,6 +11801,10 @@ type ListAdsData = {
11789
11801
  * Social account ID
11790
11802
  */
11791
11803
  accountId?: string;
11804
+ /**
11805
+ * Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
11806
+ */
11807
+ adAccountId?: string;
11792
11808
  /**
11793
11809
  * Platform campaign ID (filter ads within a campaign)
11794
11810
  */
package/dist/index.d.ts CHANGED
@@ -714,6 +714,18 @@ type Ad = {
714
714
  * Alternative image URL
715
715
  */
716
716
  imageUrl?: string;
717
+ /**
718
+ * Meta video ID for VIDEO-type ads. Null for non-video ads. Callers that need an embeddable MP4 can call GET /{videoId}?fields=source with the page access token.
719
+ */
720
+ videoId?: (string) | null;
721
+ /**
722
+ * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
723
+ */
724
+ videoUrl?: (string) | null;
725
+ /**
726
+ * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
727
+ */
728
+ objectType?: string;
717
729
  /**
718
730
  * All media URLs for this ad (carousel images, multiple assets). Populated for Meta (carousel child_attachments), Google Ads (responsive display marketing_images), and LinkedIn (multi-image posts).
719
731
  */
@@ -11789,6 +11801,10 @@ type ListAdsData = {
11789
11801
  * Social account ID
11790
11802
  */
11791
11803
  accountId?: string;
11804
+ /**
11805
+ * Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
11806
+ */
11807
+ adAccountId?: string;
11792
11808
  /**
11793
11809
  * Platform campaign ID (filter ads within a campaign)
11794
11810
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.53",
3
+ "version": "0.2.55",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -118,6 +118,18 @@ export type Ad = {
118
118
  * Alternative image URL
119
119
  */
120
120
  imageUrl?: string;
121
+ /**
122
+ * Meta video ID for VIDEO-type ads. Null for non-video ads. Callers that need an embeddable MP4 can call GET /{videoId}?fields=source with the page access token.
123
+ */
124
+ videoId?: (string) | null;
125
+ /**
126
+ * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
127
+ */
128
+ videoUrl?: (string) | null;
129
+ /**
130
+ * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
131
+ */
132
+ objectType?: string;
121
133
  /**
122
134
  * All media URLs for this ad (carousel images, multiple assets). Populated for Meta (carousel child_attachments), Google Ads (responsive display marketing_images), and LinkedIn (multi-image posts).
123
135
  */
@@ -12109,6 +12121,10 @@ export type ListAdsData = {
12109
12121
  * Social account ID
12110
12122
  */
12111
12123
  accountId?: string;
12124
+ /**
12125
+ * Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
12126
+ */
12127
+ adAccountId?: string;
12112
12128
  /**
12113
12129
  * Platform campaign ID (filter ads within a campaign)
12114
12130
  */