@getlatedev/node 0.2.1143 → 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.
- package/README.md +1 -0
- package/dist/index.d.mts +76 -2
- package/dist/index.d.ts +76 -2
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +49 -1
- package/src/generated/types.gen.ts +75 -1
|
@@ -20773,7 +20773,11 @@ export type ConnectAdsData = {
|
|
|
20773
20773
|
* `instagram`, `linkedin`, `pinterest`) it picks which posting account the ads
|
|
20774
20774
|
* connection uses when the profile holds several of that platform; with one it can
|
|
20775
20775
|
* be omitted, and an id that names no active account of the platform on the profile
|
|
20776
|
-
* is ignored
|
|
20776
|
+
* is ignored, except with `force=true` when it names the posting account the
|
|
20777
|
+
* profile's ads connection hangs off: that account is no longer connected, so the
|
|
20778
|
+
* call returns 409 `reconnect_required` instead of reconnecting another account.
|
|
20779
|
+
* Reconnect it via GET /v1/connect/{platform} first. Ignored for standalone
|
|
20780
|
+
* platforms (`googleads`).
|
|
20777
20781
|
*
|
|
20778
20782
|
*/
|
|
20779
20783
|
accountId?: string;
|
|
@@ -49563,6 +49567,76 @@ export type SearchAdTargetingResponse = ({
|
|
|
49563
49567
|
|
|
49564
49568
|
export type SearchAdTargetingError = (unknown | ErrorResponse);
|
|
49565
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
|
+
|
|
49566
49640
|
export type SearchAdLibraryData = {
|
|
49567
49641
|
query?: {
|
|
49568
49642
|
/**
|