@getlatedev/node 0.2.1759 → 0.2.1761

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.1759",
39
+ version: "0.2.1761",
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.1759",
8
+ version: "0.2.1761",
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.1759",
3
+ "version": "0.2.1761",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -450,6 +450,10 @@ export type Ad = {
450
450
  * Meta: the display link of a link (image) ad (`link_data.caption`). Absent when the creative has none.
451
451
  */
452
452
  caption?: string;
453
+ /**
454
+ * Meta: the `GET_DIRECTIONS` map location sent as `callToActionLink` on POST /v1/ads/create, the same value as that input. Absent on ads created without it; null once PUT /v1/ads/{adId} changed the call to action, which points the button back at `linkUrl`.
455
+ */
456
+ callToActionLink?: (string) | null;
453
457
  /**
454
458
  * Meta: the ad image hash (`image_hash`), reusable as `imageHash` on POST /v1/ads/create within the same ad account. `thumbnailUrl` and `mediaUrls` carry its stable full resolution permalink when Meta resolves it.
455
459
  */
@@ -18051,6 +18055,16 @@ export type MetaBusinessUser = {
18051
18055
  role?: string;
18052
18056
  };
18053
18057
 
18058
+ /**
18059
+ * Meta only. The `GET_DIRECTIONS` button's map location, sent as the creative's `call_to_action.value.link` while `linkUrl` stays `link_data.link`. Requires `callToAction: GET_DIRECTIONS`, and a `GET_DIRECTIONS` image ad requires it.
18060
+ *
18061
+ * - Meta's location format `fbgeo://<latitude>, <longitude>, "<address>"`.
18062
+ * - Meta refuses a website or https map URL on this button ("call_to_action[value][link] should represent a valid URL") and an fbgeo location as the ad link (subcode 2061006), so the ad link and the button link are two fields.
18063
+ * - Every other call to action opens `linkUrl`, as Meta requires the button link to match the ad link.
18064
+ *
18065
+ */
18066
+ export type MetaCallToActionLink = string;
18067
+
18054
18068
  export type MetaCatalogProduct = {
18055
18069
  /**
18056
18070
  * Meta product item ID (use in the product endpoints)
@@ -73930,6 +73944,10 @@ export type CreateAdCreativeData = {
73930
73944
  */
73931
73945
  callToAction?: string;
73932
73946
  linkUrl: string;
73947
+ /**
73948
+ * The map location a `GET_DIRECTIONS` button opens, while `linkUrl` stays the creative's website link. Requires `callToAction: GET_DIRECTIONS` and an image creative (`imageUrl` or `imageHash`), 400 otherwise; a `GET_DIRECTIONS` image creative without it is a 400 too.
73949
+ */
73950
+ callToActionLink?: MetaCallToActionLink;
73933
73951
  /**
73934
73952
  * Publicly reachable image; uploaded to the account's library server-side.
73935
73953
  */
@@ -77462,6 +77480,15 @@ export type CreateStandaloneAdData = {
77462
77480
  * - **Reddit:** required on image and video ads (the post's destination and the ad's click URL), the fallback for carousel cards without their own, and refused with 400 on text ads.
77463
77481
  */
77464
77482
  linkUrl?: string;
77483
+ /**
77484
+ * Meta only. The map location a `GET_DIRECTIONS` button opens, while `linkUrl` stays the ad's website link.
77485
+ *
77486
+ * - Single image ads, with or without `bodies` / `headlines`, also on the adSetId attach shape and with `validateOnly`. Required on a `GET_DIRECTIONS` image ad (400 without it).
77487
+ * - 400 with any other `callToAction`, with `video`, `carouselCards`, `creatives[]`, `dynamicCreative`, `placementAssets`, `translations`, catalog ads, `leadGenFormId`, goal `page_likes` or `existingCreativeId`, and on other networks.
77488
+ * - Stored on the ad and returned as `creative.callToActionLink`.
77489
+ *
77490
+ */
77491
+ callToActionLink?: MetaCallToActionLink;
77465
77492
  /**
77466
77493
  * Lead Gen form ID to attach to the ad's creative. REQUIRED when `goal` is `lead_generation`. Create one via POST /v1/ads/lead-forms.
77467
77494
  *
@@ -78415,7 +78442,12 @@ export type CreateStandaloneAdData = {
78415
78442
  imageUrl: string;
78416
78443
  };
78417
78444
  /**
78418
- * TikTok: the identity the ad runs as, from GET /v1/ads/tiktok-identities. Overrides the connected account's own identity; must be authorized on the advertiser.
78445
+ * The profile the ad runs as.
78446
+ *
78447
+ * - TikTok: the identity from GET /v1/ads/tiktok-identities. Overrides the connected account's own identity; must be authorized on the advertiser.
78448
+ * - Snapchat: the Public Profile ID (a UUID), required on most organizations. Without it the create answers 422 on identityId and uploads nothing.
78449
+ * - To find a Snapchat Public Profile ID: in Snapchat Business Manager, open Public Profiles, select the profile and copy its ID.
78450
+ *
78419
78451
  */
78420
78452
  identityId?: string;
78421
78453
  /**