@zernio/node 0.2.82 → 0.2.84

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
@@ -3110,6 +3110,30 @@ type WebhookPayloadComment = {
3110
3110
  * Parent comment ID if this is a reply
3111
3111
  */
3112
3112
  parentCommentId: (string) | null;
3113
+ /**
3114
+ * Ad context. Present only when the comment was made on paid content.
3115
+ * Instagram: populated from the webhook payload's `value.media.ad_id`/`ad_title`.
3116
+ * Facebook: populated via a Graph API lookup of the parent post's `promotion_status`.
3117
+ * Absent for comments on organic posts that are not currently promoted.
3118
+ *
3119
+ */
3120
+ ad?: {
3121
+ /**
3122
+ * Meta ad ID (Instagram only).
3123
+ */
3124
+ id?: string;
3125
+ /**
3126
+ * Ad creative title (Instagram only).
3127
+ */
3128
+ title?: string;
3129
+ /**
3130
+ * Facebook promotion status returned by Graph API. Common values:
3131
+ * "active" (organic post currently boosted), "ineligible" (dark
3132
+ * post / ad creative — not promotable because it already is an ad).
3133
+ *
3134
+ */
3135
+ promotionStatus?: string;
3136
+ };
3113
3137
  };
3114
3138
  post: {
3115
3139
  /**
@@ -12199,9 +12223,22 @@ type CreateStandaloneAdData = {
12199
12223
  */
12200
12224
  linkUrl?: string;
12201
12225
  /**
12202
- * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
12226
+ * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
12203
12227
  */
12204
12228
  imageUrl?: string;
12229
+ /**
12230
+ * Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
12231
+ */
12232
+ images?: {
12233
+ /**
12234
+ * Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
12235
+ */
12236
+ landscape?: string;
12237
+ /**
12238
+ * Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
12239
+ */
12240
+ square?: string;
12241
+ };
12205
12242
  /**
12206
12243
  * Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
12207
12244
  */
package/dist/index.d.ts CHANGED
@@ -3110,6 +3110,30 @@ type WebhookPayloadComment = {
3110
3110
  * Parent comment ID if this is a reply
3111
3111
  */
3112
3112
  parentCommentId: (string) | null;
3113
+ /**
3114
+ * Ad context. Present only when the comment was made on paid content.
3115
+ * Instagram: populated from the webhook payload's `value.media.ad_id`/`ad_title`.
3116
+ * Facebook: populated via a Graph API lookup of the parent post's `promotion_status`.
3117
+ * Absent for comments on organic posts that are not currently promoted.
3118
+ *
3119
+ */
3120
+ ad?: {
3121
+ /**
3122
+ * Meta ad ID (Instagram only).
3123
+ */
3124
+ id?: string;
3125
+ /**
3126
+ * Ad creative title (Instagram only).
3127
+ */
3128
+ title?: string;
3129
+ /**
3130
+ * Facebook promotion status returned by Graph API. Common values:
3131
+ * "active" (organic post currently boosted), "ineligible" (dark
3132
+ * post / ad creative — not promotable because it already is an ad).
3133
+ *
3134
+ */
3135
+ promotionStatus?: string;
3136
+ };
3113
3137
  };
3114
3138
  post: {
3115
3139
  /**
@@ -12199,9 +12223,22 @@ type CreateStandaloneAdData = {
12199
12223
  */
12200
12224
  linkUrl?: string;
12201
12225
  /**
12202
- * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
12226
+ * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
12203
12227
  */
12204
12228
  imageUrl?: string;
12229
+ /**
12230
+ * Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
12231
+ */
12232
+ images?: {
12233
+ /**
12234
+ * Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
12235
+ */
12236
+ landscape?: string;
12237
+ /**
12238
+ * Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
12239
+ */
12240
+ square?: string;
12241
+ };
12205
12242
  /**
12206
12243
  * Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
12207
12244
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3190,7 +3190,7 @@ export const boostPost = <ThrowOnError extends boolean = false>(options: Options
3190
3190
  *
3191
3191
  * **Per-platform required fields** (the platform is inferred from `accountId`):
3192
3192
  * - **Meta (facebook, instagram)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `imageUrl`, `linkUrl`, `callToAction`.
3193
- * - **Google Ads (Display)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `imageUrl`, `businessName`. `longHeadline` defaults to `headline` if omitted (max 90 chars).
3193
+ * - **Google Ads (Display)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `images.landscape` (1.91:1) + `images.square` (1:1), `businessName`. Google's Responsive Display Ads require BOTH a landscape and a square marketing image; supplying only one is rejected by Google as "Too few.". The legacy top-level `imageUrl` is accepted as an alias for `images.landscape` for back-compat. `longHeadline` defaults to `headline` if omitted (max 90 chars).
3194
3194
  * - **Google Ads (Search)**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `linkUrl`, `businessName`. `imageUrl` is NOT required for Search. Set `campaignType: "search"`.
3195
3195
  * - **TikTok**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `body`, `linkUrl`, `imageUrl` (this field **carries the VIDEO URL** for TikTok; the TikTok ads endpoint is video-only and the field is named `imageUrl` for cross-platform consistency).
3196
3196
  * - **Pinterest**: `accountId`, `adAccountId`, `name`, `goal`, `budgetAmount`, `budgetType`, `headline`, `body`, `imageUrl`, `linkUrl`. Optional `boardId` (auto-creates "Zernio Ads" board if omitted).
@@ -2647,6 +2647,30 @@ export type WebhookPayloadComment = {
2647
2647
  * Parent comment ID if this is a reply
2648
2648
  */
2649
2649
  parentCommentId: (string) | null;
2650
+ /**
2651
+ * Ad context. Present only when the comment was made on paid content.
2652
+ * Instagram: populated from the webhook payload's `value.media.ad_id`/`ad_title`.
2653
+ * Facebook: populated via a Graph API lookup of the parent post's `promotion_status`.
2654
+ * Absent for comments on organic posts that are not currently promoted.
2655
+ *
2656
+ */
2657
+ ad?: {
2658
+ /**
2659
+ * Meta ad ID (Instagram only).
2660
+ */
2661
+ id?: string;
2662
+ /**
2663
+ * Ad creative title (Instagram only).
2664
+ */
2665
+ title?: string;
2666
+ /**
2667
+ * Facebook promotion status returned by Graph API. Common values:
2668
+ * "active" (organic post currently boosted), "ineligible" (dark
2669
+ * post / ad creative — not promotable because it already is an ad).
2670
+ *
2671
+ */
2672
+ promotionStatus?: string;
2673
+ };
2650
2674
  };
2651
2675
  post: {
2652
2676
  /**
@@ -12509,9 +12533,22 @@ export type CreateStandaloneAdData = {
12509
12533
  */
12510
12534
  linkUrl?: string;
12511
12535
  /**
12512
- * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter.
12536
+ * Image creative for Meta/Google/Pinterest on legacy + attach shapes (mutually exclusive with `video`). Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X/Twitter. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected.
12513
12537
  */
12514
12538
  imageUrl?: string;
12539
+ /**
12540
+ * Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart so it must be set here for Display.
12541
+ */
12542
+ images?: {
12543
+ /**
12544
+ * Landscape 1.91:1 marketing image URL (e.g. 1200x628). Also accepted via the top-level `imageUrl` for backward compatibility.
12545
+ */
12546
+ landscape?: string;
12547
+ /**
12548
+ * Square 1:1 marketing image URL (e.g. 1080x1080). Required for Google Display.
12549
+ */
12550
+ square?: string;
12551
+ };
12515
12552
  /**
12516
12553
  * Meta only (facebook, instagram). When set, creates a VIDEO ad on the legacy or attach shape. Mutually exclusive with `imageUrl`. For multi-creative, set `video` per entry inside `creatives[]` instead.
12517
12554
  */