@getlatedev/node 0.2.1144 → 0.2.1145

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.
@@ -49567,6 +49567,76 @@ export type SearchAdTargetingResponse = ({
49567
49567
 
49568
49568
  export type SearchAdTargetingError = (unknown | ErrorResponse);
49569
49569
 
49570
+ export type BrowseAdTargetingData = {
49571
+ query: {
49572
+ /**
49573
+ * A connected Meta account (metaads, facebook or instagram). Any other ad platform returns 501 platform_not_supported.
49574
+ */
49575
+ accountId: string;
49576
+ /**
49577
+ * The Meta ad account to browse as, in the form "act_<digits>".
49578
+ */
49579
+ adAccountId: string;
49580
+ /**
49581
+ * Only the descendants (every depth) of this organizational node, e.g. `Demographics > Financial`. A nodeId that is not an organizational node of the catalog returns 400.
49582
+ */
49583
+ parentNodeId?: string;
49584
+ /**
49585
+ * `true` for selectable entities only, `false` for organizational nodes only.
49586
+ */
49587
+ selectable?: boolean;
49588
+ /**
49589
+ * Only the nodes of this Meta type (e.g. interests, behaviors, life_events, income), plus the organizational nodes leading to them. A type that is not in the catalog returns 400.
49590
+ */
49591
+ type?: string;
49592
+ };
49593
+ };
49594
+
49595
+ export type BrowseAdTargetingResponse = ({
49596
+ adAccountId: string;
49597
+ nodes: Array<{
49598
+ /**
49599
+ * Identifies the node within this response. Not a Meta id: never put it in a targeting spec.
49600
+ */
49601
+ nodeId: string;
49602
+ /**
49603
+ * nodeId of the parent organizational node, null for a root.
49604
+ */
49605
+ parentNodeId: (string) | null;
49606
+ /**
49607
+ * Meta targeting id, null on organizational nodes.
49608
+ */
49609
+ id: (string) | null;
49610
+ name: string;
49611
+ /**
49612
+ * Meta's targeting spec key (interests, behaviors, industries, life_events, education_statuses, relationship_statuses, family_statuses, income, ...). Null on most organizational nodes.
49613
+ */
49614
+ type: (string) | null;
49615
+ /**
49616
+ * Labels of the ancestors, root first. Does not include the node itself.
49617
+ */
49618
+ path: Array<(string)>;
49619
+ /**
49620
+ * True when the node can be targeted (it has a Meta id).
49621
+ */
49622
+ selectable: boolean;
49623
+ /**
49624
+ * Meta's description, when it has one.
49625
+ */
49626
+ description?: string;
49627
+ /**
49628
+ * Meta's estimated audience size, lower bound, when reported.
49629
+ */
49630
+ audienceSizeLowerBound?: number;
49631
+ /**
49632
+ * Meta's estimated audience size, upper bound, when reported.
49633
+ */
49634
+ audienceSizeUpperBound?: number;
49635
+ }>;
49636
+ });
49637
+
49638
+ export type BrowseAdTargetingError = (ErrorResponse | unknown);
49639
+
49570
49640
  export type SearchAdLibraryData = {
49571
49641
  query?: {
49572
49642
  /**