@getlatedev/node 0.2.354 → 0.2.356

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.
@@ -92,7 +92,7 @@ export type Ad = {
92
92
  /**
93
93
  * Available goals vary by platform. Meta (Facebook/Instagram) supports all 9 (incl. `lead_conversion` = website pixel lead optimization and `catalog_sales` = Advantage+ catalog ads). TikTok supports the 7 non-`lead_conversion` goals. LinkedIn supports all except app_promotion / lead_conversion. Twitter/X supports engagement, traffic, awareness, video_views, app_promotion. Pinterest and Google Ads support only engagement, traffic, awareness, video_views.
94
94
  */
95
- goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales';
95
+ goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'job_applicants';
96
96
  /**
97
97
  * True for ads synced from platform ad managers
98
98
  */
@@ -288,7 +288,7 @@ export type adType = 'boost' | 'standalone';
288
288
  /**
289
289
  * Available goals vary by platform. Meta (Facebook/Instagram) supports all 9 (incl. `lead_conversion` = website pixel lead optimization and `catalog_sales` = Advantage+ catalog ads). TikTok supports the 7 non-`lead_conversion` goals. LinkedIn supports all except app_promotion / lead_conversion. Twitter/X supports engagement, traffic, awareness, video_views, app_promotion. Pinterest and Google Ads support only engagement, traffic, awareness, video_views.
290
290
  */
291
- export type goal = 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales';
291
+ export type goal = 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'job_applicants';
292
292
 
293
293
  export type type = 'daily' | 'lifetime';
294
294
 
@@ -2468,7 +2468,7 @@ export type contentType2 = 'story';
2468
2468
  export type graduationStrategy = 'MANUAL' | 'SS_PERFORMANCE';
2469
2469
 
2470
2470
  /**
2471
- * LinkedIn campaign bidding and delivery controls for POST /v1/ads/boost and POST /v1/ads/create. Unknown keys are rejected.
2471
+ * LinkedIn-specific options for POST /v1/ads/boost and POST /v1/ads/create: campaign bidding and delivery controls, plus the LinkedIn-only creative formats on /v1/ads/create. Unknown keys are rejected.
2472
2472
  *
2473
2473
  */
2474
2474
  export type LinkedInAdsPlatformData = {
@@ -2508,6 +2508,219 @@ export type LinkedInAdsPlatformData = {
2508
2508
  * Restrict delivery to Connected TV inventory.
2509
2509
  */
2510
2510
  connectedTelevisionOnly?: boolean;
2511
+ /**
2512
+ * POST /v1/ads/create only. Carousel ad with 2-10 image cards.
2513
+ * Mutually exclusive with the other creative sources.
2514
+ *
2515
+ */
2516
+ carousel?: {
2517
+ cards: Array<{
2518
+ imageUrl: string;
2519
+ /**
2520
+ * Card title. Falls back to the ad-level headline.
2521
+ */
2522
+ headline?: string;
2523
+ /**
2524
+ * Per-card click destination. LinkedIn requires one on every
2525
+ * card; the ad-level `linkUrl` backfills cards that omit it.
2526
+ *
2527
+ */
2528
+ landingUrl?: string;
2529
+ }>;
2530
+ };
2531
+ /**
2532
+ * POST /v1/ads/create only. Document ad rendered as an in-feed viewer.
2533
+ * PDF, PPT or DOC up to 100MB. Mutually exclusive with the other
2534
+ * creative sources.
2535
+ *
2536
+ */
2537
+ document?: {
2538
+ url: string;
2539
+ /**
2540
+ * Document title.
2541
+ */
2542
+ title: string;
2543
+ };
2544
+ /**
2545
+ * POST /v1/ads/create only. Dynamic Spotlight Ad personalized with the
2546
+ * viewer's profile photo. Supported goals: traffic, awareness. logoUrl
2547
+ * and organizationName default to the Company Page's; set them
2548
+ * explicitly if LinkedIn rejects the create with a 404. Mutually
2549
+ * exclusive with the other creative sources.
2550
+ *
2551
+ */
2552
+ spotlight?: {
2553
+ headline: string;
2554
+ /**
2555
+ * Mutually exclusive with backgroundImageUrl.
2556
+ */
2557
+ description?: string;
2558
+ /**
2559
+ * Button label text.
2560
+ */
2561
+ callToAction: string;
2562
+ landingUrl: string;
2563
+ logoUrl?: string;
2564
+ organizationName?: string;
2565
+ /**
2566
+ * Defaults to true.
2567
+ */
2568
+ showMemberProfilePhoto?: boolean;
2569
+ /**
2570
+ * Custom background. Replaces the description and the profile photo.
2571
+ */
2572
+ backgroundImageUrl?: string;
2573
+ };
2574
+ /**
2575
+ * POST /v1/ads/create only. Dynamic Follower Ad promoting the Company
2576
+ * Page. Supported goals: engagement, awareness. headline and
2577
+ * description take exactly one of preApproved or custom. Mutually
2578
+ * exclusive with the other creative sources.
2579
+ *
2580
+ */
2581
+ follower?: {
2582
+ headline: {
2583
+ /**
2584
+ * LinkedIn preset id, not reviewed. Example GROW_YOUR_BUSINESS_INSIGHTS.
2585
+ */
2586
+ preApproved?: string;
2587
+ /**
2588
+ * Free text, reviewed by LinkedIn.
2589
+ */
2590
+ custom?: string;
2591
+ };
2592
+ description: {
2593
+ /**
2594
+ * LinkedIn preset id, not reviewed. Example GET_LATEST_JOBS_AND_INDUSTRY_NEWS.
2595
+ */
2596
+ preApproved?: string;
2597
+ /**
2598
+ * Free text, reviewed by LinkedIn.
2599
+ */
2600
+ custom?: string;
2601
+ };
2602
+ callToAction: 'VISIT_ORGANIZATION_COMPANY_PAGE' | 'VISIT_ORGANIZATION_LIFE_PAGE' | 'VISIT_ORGANIZATION_JOBS_PAGE' | 'VISIT_ORGANIZATION_CAREERS_PAGE';
2603
+ logoUrl?: string;
2604
+ organizationName?: string;
2605
+ /**
2606
+ * Defaults to true.
2607
+ */
2608
+ showMemberProfilePhoto?: boolean;
2609
+ };
2610
+ /**
2611
+ * POST /v1/ads/create only. Dynamic Jobs Ad promoting your open roles,
2612
+ * personalized with the viewer's profile photo. Requires goal
2613
+ * job_applicants and a Company Page with active job postings.
2614
+ * headline and buttonLabel take exactly one of
2615
+ * preApproved or custom. logoUrl and organizationName default to the
2616
+ * Company Page's. Mutually exclusive with the other creative sources.
2617
+ *
2618
+ */
2619
+ jobs?: {
2620
+ headline: {
2621
+ /**
2622
+ * LinkedIn preset id, not reviewed. Example MEMBER_READY_FOR_YOUR_DREAM_JOB.
2623
+ */
2624
+ preApproved?: string;
2625
+ /**
2626
+ * Free text, reviewed by LinkedIn.
2627
+ */
2628
+ custom?: string;
2629
+ };
2630
+ buttonLabel: {
2631
+ /**
2632
+ * LinkedIn preset id, not reviewed. One of SEE_MORE_JOBS, VIEW_MORE, CAREERS_AT_COMPANY.
2633
+ */
2634
+ preApproved?: string;
2635
+ /**
2636
+ * Free text, reviewed by LinkedIn.
2637
+ */
2638
+ custom?: string;
2639
+ };
2640
+ logoUrl?: string;
2641
+ organizationName?: string;
2642
+ /**
2643
+ * Defaults to true.
2644
+ */
2645
+ showMemberProfilePhoto?: boolean;
2646
+ };
2647
+ /**
2648
+ * POST /v1/ads/create only. Classic right-rail Text Ad. The copy lives
2649
+ * here; ad-level body and headline are not used. Mutually exclusive
2650
+ * with the other creative sources.
2651
+ *
2652
+ */
2653
+ textAd?: {
2654
+ headline: string;
2655
+ description: string;
2656
+ landingUrl: string;
2657
+ /**
2658
+ * Optional 100x100 image.
2659
+ */
2660
+ imageUrl?: string;
2661
+ };
2662
+ /**
2663
+ * POST /v1/ads/create only. Conversation Ad: a choose-your-path message
2664
+ * tree delivered to the member's LinkedIn inbox. Messages are flat
2665
+ * nodes wired by local ids; each button either opens a url or leads to
2666
+ * nextMessageId. Cycles, unknown ids and a missing firstMessageId
2667
+ * return a 400. LinkedIn does not deliver message ads to EU members.
2668
+ * Mutually exclusive with the other creative sources.
2669
+ *
2670
+ */
2671
+ conversation?: {
2672
+ /**
2673
+ * InMail subject shown in the inbox.
2674
+ */
2675
+ subject: string;
2676
+ /**
2677
+ * Person or organization URN. Defaults to the authoring Company
2678
+ * Page. The sender must be approved for the ad account first
2679
+ * (Campaign Manager > Manage message ad senders) or LinkedIn
2680
+ * rejects the create with SINMAIL_SENDER_NOT_APPROVED.
2681
+ *
2682
+ */
2683
+ sender?: string;
2684
+ /**
2685
+ * Optional intro body (HTML allowed).
2686
+ */
2687
+ body?: string;
2688
+ /**
2689
+ * Terms shown at the bottom of the message.
2690
+ */
2691
+ footer?: string;
2692
+ /**
2693
+ * Conversation headline. Defaults to the first message's first line.
2694
+ */
2695
+ headline?: string;
2696
+ firstMessageId: string;
2697
+ messages: Array<{
2698
+ id: string;
2699
+ text: string;
2700
+ buttons?: Array<{
2701
+ text: string;
2702
+ /**
2703
+ * Continues the conversation at this message. Exactly one of nextMessageId or url.
2704
+ */
2705
+ nextMessageId?: string;
2706
+ /**
2707
+ * Opens this landing page. Exactly one of nextMessageId or url.
2708
+ */
2709
+ url?: string;
2710
+ }>;
2711
+ }>;
2712
+ };
2713
+ /**
2714
+ * POST /v1/ads/create only. Promotes an existing LinkedIn Event; no
2715
+ * headline needed. Mutually exclusive with the other creative sources.
2716
+ *
2717
+ */
2718
+ event?: {
2719
+ /**
2720
+ * LinkedIn Event URN, urn:li:event:N.
2721
+ */
2722
+ urn: string;
2723
+ };
2511
2724
  };
2512
2725
 
2513
2726
  /**
@@ -2522,6 +2735,8 @@ export type costType = 'CPM' | 'CPC' | 'CPV';
2522
2735
  */
2523
2736
  export type creativeSelection = 'OPTIMIZED' | 'ROUND_ROBIN';
2524
2737
 
2738
+ export type callToAction = 'VISIT_ORGANIZATION_COMPANY_PAGE' | 'VISIT_ORGANIZATION_LIFE_PAGE' | 'VISIT_ORGANIZATION_JOBS_PAGE' | 'VISIT_ORGANIZATION_CAREERS_PAGE';
2739
+
2525
2740
  /**
2526
2741
  * Response for DAILY aggregation (time series breakdown)
2527
2742
  */
@@ -23773,9 +23988,25 @@ export type CreateStandaloneAdData = {
23773
23988
  }>;
23774
23989
  };
23775
23990
  /**
23776
- * Required on legacy + multi-creative shapes. Inherited from the ad set on the attach shape. Available goals vary by platform. Meta-specific: `conversions` (OUTCOME_SALES) requires `promotedObject.pixelId` + `promotedObject.customEventType` (use a commerce event, e.g. PURCHASE, START_TRIAL); `lead_conversion` (OUTCOME_LEADS, website pixel leads) requires the same pixel + event but with a leads-class event (e.g. LEAD, SUBMIT_APPLICATION, SCHEDULE, CONTACT) — these are rejected under `conversions` because Meta gates conversion events by objective; `lead_generation` is OUTCOME_LEADS with instant forms (`leadGenFormId`), distinct from `lead_conversion`'s website pixel optimization; `app_promotion` requires `promotedObject.applicationId` + `promotedObject.objectStoreUrl`; `catalog_sales` (Advantage+ catalog ads, e.g. vehicle inventory) requires `promotedObject.productSetId` + `promotedObject.pixelId` + `promotedObject.customEventType` and builds a catalog TEMPLATE creative from the copy fields (headline/body/description/linkUrl/callToAction, which may carry catalog template tags like {{product.name}} or {{vehicle.make}}) — no imageUrl/video is sent, Meta renders the visuals per catalog item; discover catalogs via GET /v1/ads/catalogs and product sets via GET /v1/ads/catalogs/{catalogId}/product-sets; single shape only (no creatives[]/adSetId/dynamicCreative/placementAssets); `lead_generation` accepts an optional `promotedObject.pageId` (auto-filled from the connected Page when omitted). TikTok-specific: `conversions` (website-conversion ad group) requires `promotedObject.pixelId` (your TikTok Pixel ID) and accepts an optional `promotedObject.customEventType` (a TikTok `optimization_event` code like `ON_WEB_ORDER`, `INITIATE_ORDER`, `ON_WEB_REGISTER`, `FORM`); to inherit a pixel + event from an existing ad group, pass `adSetId` instead. LinkedIn-specific: `engagement`, `traffic`, `awareness`, and `video_views` are supported for standalone ads (creates a Direct Sponsored Content single image or single video ad). `traffic` requires `linkUrl`; `video_views` requires the `video` field. For `lead_generation` / `conversions` on LinkedIn — or to promote an existing post — use `POST /v1/ads/boost`.
23991
+ * Required on legacy and multi-creative shapes; the attach shape inherits it from the ad set. Available goals vary by platform.
23992
+ *
23993
+ * **Meta**
23994
+ * - `conversions`: OUTCOME_SALES. Requires `promotedObject.pixelId` and `promotedObject.customEventType` with a commerce event such as PURCHASE or START_TRIAL.
23995
+ * - `lead_conversion`: OUTCOME_LEADS optimizing website pixel leads. Same pixel and event fields, but with a leads-class event such as LEAD, SUBMIT_APPLICATION, SCHEDULE or CONTACT. Meta gates conversion events by objective, so leads-class events are rejected under `conversions`.
23996
+ * - `lead_generation`: OUTCOME_LEADS with instant forms. Requires `leadGenFormId`. `promotedObject.pageId` is optional and auto-filled from the connected Page.
23997
+ * - `app_promotion`: requires `promotedObject.applicationId` and `promotedObject.objectStoreUrl`.
23998
+ * - `catalog_sales`: Advantage+ catalog ads, for example vehicle inventory. Requires `promotedObject.productSetId`, `promotedObject.pixelId` and `promotedObject.customEventType`. Builds a catalog TEMPLATE creative from the copy fields, which may carry template tags like {{product.name}} or {{vehicle.make}}. No imageUrl or video is sent; Meta renders the visuals per catalog item. Discover catalogs via GET /v1/ads/catalogs and product sets via GET /v1/ads/catalogs/{catalogId}/product-sets. Single shape only, no creatives[], adSetId, dynamicCreative or placementAssets.
23999
+ *
24000
+ * **TikTok**
24001
+ * - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code such as ON_WEB_ORDER, INITIATE_ORDER, ON_WEB_REGISTER or FORM. To inherit pixel and event from an existing ad group, pass `adSetId` instead.
24002
+ *
24003
+ * **LinkedIn**
24004
+ * - `engagement`, `traffic`, `awareness` and `video_views` create standalone Direct Sponsored Content ads. `traffic` requires `linkUrl`; `video_views` requires `video`.
24005
+ * - `job_applicants` requires a `platformSpecificData.jobs` creative.
24006
+ * - For `lead_generation` or `conversions` on LinkedIn, or to promote an existing post, use POST /v1/ads/boost.
24007
+ *
23777
24008
  */
23778
- goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales';
24009
+ goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'job_applicants';
23779
24010
  /**
23780
24011
  * Meta only. Explicit ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). Overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). Forwarded verbatim to Meta, which validates compatibility with the campaign objective and rejects incompatible combinations.
23781
24012
  */
@@ -23826,7 +24057,7 @@ export type CreateStandaloneAdData = {
23826
24057
  */
23827
24058
  callToAction?: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE' | 'REGISTER' | 'JOIN' | 'ATTEND' | 'REQUEST_DEMO' | 'VIEW_QUOTE' | 'APPLY' | 'SEE_MORE' | 'BUY_NOW';
23828
24059
  /**
23829
- * Required on legacy + attach shapes (skip for multi-creative). On LinkedIn it's the ad's destination URL; required for `traffic` ads, optional for `engagement` / `awareness`. NOT required when `goal` is `lead_generation` (the ad opens a Lead Gen form instead of a destination).
24060
+ * Required on legacy + attach shapes (skip for multi-creative). On LinkedIn it's the ad's destination URL; required for `traffic` ads, optional for `engagement` / `awareness`. NOT required when `goal` is `lead_generation` (the ad opens a Lead Gen form instead of a destination). On LinkedIn, `imageUrl` + `linkUrl` publishes an ARTICLE-content creative; this is LinkedIn's article ad format, with the image as thumbnail and `longHeadline` as description.
23830
24061
  */
23831
24062
  linkUrl?: string;
23832
24063
  /**