@getlatedev/node 0.2.458 → 0.2.459

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
@@ -1409,6 +1409,10 @@ type Ad = {
1409
1409
  * Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
1410
1410
  */
1411
1411
  effectiveObjectStoryId?: (string) | null;
1412
+ /**
1413
+ * Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
1414
+ */
1415
+ pageId?: (string) | null;
1412
1416
  /**
1413
1417
  * Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
1414
1418
  */
@@ -24302,6 +24306,10 @@ type ListAdsData = {
24302
24306
  * Page number (1-based)
24303
24307
  */
24304
24308
  page?: number;
24309
+ /**
24310
+ * 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.
24311
+ */
24312
+ pageId?: string;
24305
24313
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24306
24314
  /**
24307
24315
  * Meta ad ID. Returns the ad with this platform-side ad ID.
@@ -24427,6 +24435,10 @@ type ListAdCampaignsData = {
24427
24435
  * Page number (1-based)
24428
24436
  */
24429
24437
  page?: number;
24438
+ /**
24439
+ * 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.
24440
+ */
24441
+ pageId?: string;
24430
24442
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24431
24443
  /**
24432
24444
  * Profile ID
@@ -24929,6 +24941,10 @@ type GetAdTreeData = {
24929
24941
  * Page number (1-based)
24930
24942
  */
24931
24943
  page?: number;
24944
+ /**
24945
+ * 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.
24946
+ */
24947
+ pageId?: string;
24932
24948
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24933
24949
  /**
24934
24950
  * Profile ID
package/dist/index.d.ts CHANGED
@@ -1409,6 +1409,10 @@ type Ad = {
1409
1409
  * Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
1410
1410
  */
1411
1411
  effectiveObjectStoryId?: (string) | null;
1412
+ /**
1413
+ * Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
1414
+ */
1415
+ pageId?: (string) | null;
1412
1416
  /**
1413
1417
  * Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
1414
1418
  */
@@ -24302,6 +24306,10 @@ type ListAdsData = {
24302
24306
  * Page number (1-based)
24303
24307
  */
24304
24308
  page?: number;
24309
+ /**
24310
+ * 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.
24311
+ */
24312
+ pageId?: string;
24305
24313
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24306
24314
  /**
24307
24315
  * Meta ad ID. Returns the ad with this platform-side ad ID.
@@ -24427,6 +24435,10 @@ type ListAdCampaignsData = {
24427
24435
  * Page number (1-based)
24428
24436
  */
24429
24437
  page?: number;
24438
+ /**
24439
+ * 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.
24440
+ */
24441
+ pageId?: string;
24430
24442
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24431
24443
  /**
24432
24444
  * Profile ID
@@ -24929,6 +24941,10 @@ type GetAdTreeData = {
24929
24941
  * Page number (1-based)
24930
24942
  */
24931
24943
  page?: number;
24944
+ /**
24945
+ * 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.
24946
+ */
24947
+ pageId?: string;
24932
24948
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24933
24949
  /**
24934
24950
  * Profile ID
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.458",
39
+ version: "0.2.459",
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.458",
8
+ version: "0.2.459",
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.458",
3
+ "version": "0.2.459",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -235,6 +235,10 @@ export type Ad = {
235
235
  * Meta `effective_object_story_id` — `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it.
236
236
  */
237
237
  effectiveObjectStoryId?: (string) | null;
238
+ /**
239
+ * Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal.
240
+ */
241
+ pageId?: (string) | null;
238
242
  /**
239
243
  * Meta `effective_instagram_media_id` — the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
240
244
  */
@@ -24667,6 +24671,10 @@ export type ListAdsData = {
24667
24671
  * Page number (1-based)
24668
24672
  */
24669
24673
  page?: number;
24674
+ /**
24675
+ * 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.
24676
+ */
24677
+ pageId?: string;
24670
24678
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24671
24679
  /**
24672
24680
  * Meta ad ID. Returns the ad with this platform-side ad ID.
@@ -24798,6 +24806,10 @@ export type ListAdCampaignsData = {
24798
24806
  * Page number (1-based)
24799
24807
  */
24800
24808
  page?: number;
24809
+ /**
24810
+ * 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.
24811
+ */
24812
+ pageId?: string;
24801
24813
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
24802
24814
  /**
24803
24815
  * Profile ID
@@ -25336,6 +25348,10 @@ export type GetAdTreeData = {
25336
25348
  * Page number (1-based)
25337
25349
  */
25338
25350
  page?: number;
25351
+ /**
25352
+ * 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.
25353
+ */
25354
+ pageId?: string;
25339
25355
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai';
25340
25356
  /**
25341
25357
  * Profile ID