@getlatedev/node 0.2.1072 → 0.2.1074

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
@@ -44637,7 +44637,7 @@ type CreateStandaloneAdData = {
44637
44637
  */
44638
44638
  currency?: string;
44639
44639
  /**
44640
- * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok and X. Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
44640
+ * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok. On X, the website card title (needs imageUrl and linkUrl, max 70). Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
44641
44641
  */
44642
44642
  headline?: string;
44643
44643
  /**
@@ -44694,7 +44694,7 @@ type CreateStandaloneAdData = {
44694
44694
  */
44695
44695
  leadGenFormId?: string;
44696
44696
  /**
44697
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
44697
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). On X, imageUrl + headline + linkUrl together build a website card (image, title and destination under the post; the URL is not added to the post text); sending only some of them is a 400. description, video and callToAction are rejected with 400 on X (promote a post that carries a video with POST /v1/ads/boost). For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
44698
44698
  */
44699
44699
  imageUrl?: string;
44700
44700
  /**
@@ -44845,6 +44845,17 @@ type CreateStandaloneAdData = {
44845
44845
  *
44846
44846
  */
44847
44847
  existingCampaignId?: string;
44848
+ /**
44849
+ * Meta attach shape only (`adSetId`). The phone number (E.164, e.g. `+4712345678`)
44850
+ * for an ad added to a "website and phone call" ad set (destination_type
44851
+ * `WEBSITE_AND_PHONE_CALL`), sent as the creative's call configuration. Optional:
44852
+ * when omitted, the number on the ad set's existing ads is reused, and if none of
44853
+ * them carries one the request is a 400. Rejected with 400 on any other ad set,
44854
+ * with `existingCreativeId`, without `adSetId`, or on other platforms (a new call
44855
+ * campaign is `POST /v1/ads/call`).
44856
+ *
44857
+ */
44858
+ phoneNumber?: string;
44848
44859
  /**
44849
44860
  * Meta only. Reuse an EXISTING ad creative by id instead of
44850
44861
  * building a new one from the copy/media fields (which are then
package/dist/index.d.ts CHANGED
@@ -44637,7 +44637,7 @@ type CreateStandaloneAdData = {
44637
44637
  */
44638
44638
  currency?: string;
44639
44639
  /**
44640
- * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok and X. Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
44640
+ * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok. On X, the website card title (needs imageUrl and linkUrl, max 70). Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
44641
44641
  */
44642
44642
  headline?: string;
44643
44643
  /**
@@ -44694,7 +44694,7 @@ type CreateStandaloneAdData = {
44694
44694
  */
44695
44695
  leadGenFormId?: string;
44696
44696
  /**
44697
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
44697
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). On X, imageUrl + headline + linkUrl together build a website card (image, title and destination under the post; the URL is not added to the post text); sending only some of them is a 400. description, video and callToAction are rejected with 400 on X (promote a post that carries a video with POST /v1/ads/boost). For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
44698
44698
  */
44699
44699
  imageUrl?: string;
44700
44700
  /**
@@ -44845,6 +44845,17 @@ type CreateStandaloneAdData = {
44845
44845
  *
44846
44846
  */
44847
44847
  existingCampaignId?: string;
44848
+ /**
44849
+ * Meta attach shape only (`adSetId`). The phone number (E.164, e.g. `+4712345678`)
44850
+ * for an ad added to a "website and phone call" ad set (destination_type
44851
+ * `WEBSITE_AND_PHONE_CALL`), sent as the creative's call configuration. Optional:
44852
+ * when omitted, the number on the ad set's existing ads is reused, and if none of
44853
+ * them carries one the request is a 400. Rejected with 400 on any other ad set,
44854
+ * with `existingCreativeId`, without `adSetId`, or on other platforms (a new call
44855
+ * campaign is `POST /v1/ads/call`).
44856
+ *
44857
+ */
44858
+ phoneNumber?: string;
44848
44859
  /**
44849
44860
  * Meta only. Reuse an EXISTING ad creative by id instead of
44850
44861
  * building a new one from the copy/media fields (which are then
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.1072",
39
+ version: "0.2.1074",
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.1072",
8
+ version: "0.2.1074",
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.1072",
3
+ "version": "0.2.1074",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45372,7 +45372,7 @@ export type CreateStandaloneAdData = {
45372
45372
  */
45373
45373
  currency?: string;
45374
45374
  /**
45375
- * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok and X. Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
45375
+ * Required for Meta, Google, Pinterest, LinkedIn, and OpenAI Ads on legacy + attach shapes (skip for multi-creative; use `creatives[].headline`). Ignored for TikTok. On X, the website card title (needs imageUrl and linkUrl, max 70). Max: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3). On LinkedIn this is the ad's headline (the bold text on the creative); for traffic ads it's the link card title. On OpenAI Ads this is the chat card's title.
45376
45376
  */
45377
45377
  headline?: string;
45378
45378
  /**
@@ -45429,7 +45429,7 @@ export type CreateStandaloneAdData = {
45429
45429
  */
45430
45430
  leadGenFormId?: string;
45431
45431
  /**
45432
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45432
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. 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). On X, imageUrl + headline + linkUrl together build a website card (image, title and destination under the post; the URL is not added to the post text); sending only some of them is a 400. description, video and callToAction are rejected with 400 on X (promote a post that carries a video with POST /v1/ads/boost). For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45433
45433
  */
45434
45434
  imageUrl?: string;
45435
45435
  /**
@@ -45580,6 +45580,17 @@ export type CreateStandaloneAdData = {
45580
45580
  *
45581
45581
  */
45582
45582
  existingCampaignId?: string;
45583
+ /**
45584
+ * Meta attach shape only (`adSetId`). The phone number (E.164, e.g. `+4712345678`)
45585
+ * for an ad added to a "website and phone call" ad set (destination_type
45586
+ * `WEBSITE_AND_PHONE_CALL`), sent as the creative's call configuration. Optional:
45587
+ * when omitted, the number on the ad set's existing ads is reused, and if none of
45588
+ * them carries one the request is a 400. Rejected with 400 on any other ad set,
45589
+ * with `existingCreativeId`, without `adSetId`, or on other platforms (a new call
45590
+ * campaign is `POST /v1/ads/call`).
45591
+ *
45592
+ */
45593
+ phoneNumber?: string;
45583
45594
  /**
45584
45595
  * Meta only. Reuse an EXISTING ad creative by id instead of
45585
45596
  * building a new one from the copy/media fields (which are then