@getlatedev/node 0.2.1159 → 0.2.1160
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 +27 -2
- package/dist/index.d.ts +27 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +15 -1
- package/src/generated/types.gen.ts +27 -2
package/dist/index.d.mts
CHANGED
|
@@ -42814,11 +42814,11 @@ type GetAdReviewResponse = ({
|
|
|
42814
42814
|
platformAdId?: string;
|
|
42815
42815
|
review?: {
|
|
42816
42816
|
/**
|
|
42817
|
-
* TikTok `is_approved`.
|
|
42817
|
+
* TikTok `is_approved`. Google and Meta: derived from the platform status (see the description).
|
|
42818
42818
|
*/
|
|
42819
42819
|
approved?: (boolean) | null;
|
|
42820
42820
|
/**
|
|
42821
|
-
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected).
|
|
42821
|
+
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected). Google: `review_status`. Meta: the ad's `effective_status`.
|
|
42822
42822
|
*/
|
|
42823
42823
|
reviewStatus?: (string) | null;
|
|
42824
42824
|
forbiddenPlacements?: Array<(string)>;
|
|
@@ -42877,6 +42877,31 @@ type GetAdReviewResponse = ({
|
|
|
42877
42877
|
[key: string]: unknown;
|
|
42878
42878
|
}>;
|
|
42879
42879
|
}>;
|
|
42880
|
+
/**
|
|
42881
|
+
* Meta only. The Ad's `ad_review_feedback`, verbatim. Both maps are empty when Meta returned no feedback (approved or in-review ad).
|
|
42882
|
+
*/
|
|
42883
|
+
reviewFeedback?: {
|
|
42884
|
+
/**
|
|
42885
|
+
* Meta `global`: policy or reason -> Meta's explanation.
|
|
42886
|
+
*/
|
|
42887
|
+
global?: {
|
|
42888
|
+
[key: string]: (string);
|
|
42889
|
+
};
|
|
42890
|
+
/**
|
|
42891
|
+
* Meta `placement_specific`: placement (facebook, instagram, ...) -> reason -> Meta's explanation.
|
|
42892
|
+
*/
|
|
42893
|
+
placementSpecific?: {
|
|
42894
|
+
[key: string]: {
|
|
42895
|
+
[key: string]: (string);
|
|
42896
|
+
};
|
|
42897
|
+
};
|
|
42898
|
+
};
|
|
42899
|
+
/**
|
|
42900
|
+
* Meta only. The Ad's `issues_info` objects (`error_code`, `error_message`, `error_summary`, `error_type`, `level`), verbatim.
|
|
42901
|
+
*/
|
|
42902
|
+
issues?: Array<{
|
|
42903
|
+
[key: string]: unknown;
|
|
42904
|
+
}>;
|
|
42880
42905
|
/**
|
|
42881
42906
|
* When the verdict was read from the platform.
|
|
42882
42907
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -42814,11 +42814,11 @@ type GetAdReviewResponse = ({
|
|
|
42814
42814
|
platformAdId?: string;
|
|
42815
42815
|
review?: {
|
|
42816
42816
|
/**
|
|
42817
|
-
* TikTok `is_approved`.
|
|
42817
|
+
* TikTok `is_approved`. Google and Meta: derived from the platform status (see the description).
|
|
42818
42818
|
*/
|
|
42819
42819
|
approved?: (boolean) | null;
|
|
42820
42820
|
/**
|
|
42821
|
-
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected).
|
|
42821
|
+
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected). Google: `review_status`. Meta: the ad's `effective_status`.
|
|
42822
42822
|
*/
|
|
42823
42823
|
reviewStatus?: (string) | null;
|
|
42824
42824
|
forbiddenPlacements?: Array<(string)>;
|
|
@@ -42877,6 +42877,31 @@ type GetAdReviewResponse = ({
|
|
|
42877
42877
|
[key: string]: unknown;
|
|
42878
42878
|
}>;
|
|
42879
42879
|
}>;
|
|
42880
|
+
/**
|
|
42881
|
+
* Meta only. The Ad's `ad_review_feedback`, verbatim. Both maps are empty when Meta returned no feedback (approved or in-review ad).
|
|
42882
|
+
*/
|
|
42883
|
+
reviewFeedback?: {
|
|
42884
|
+
/**
|
|
42885
|
+
* Meta `global`: policy or reason -> Meta's explanation.
|
|
42886
|
+
*/
|
|
42887
|
+
global?: {
|
|
42888
|
+
[key: string]: (string);
|
|
42889
|
+
};
|
|
42890
|
+
/**
|
|
42891
|
+
* Meta `placement_specific`: placement (facebook, instagram, ...) -> reason -> Meta's explanation.
|
|
42892
|
+
*/
|
|
42893
|
+
placementSpecific?: {
|
|
42894
|
+
[key: string]: {
|
|
42895
|
+
[key: string]: (string);
|
|
42896
|
+
};
|
|
42897
|
+
};
|
|
42898
|
+
};
|
|
42899
|
+
/**
|
|
42900
|
+
* Meta only. The Ad's `issues_info` objects (`error_code`, `error_message`, `error_summary`, `error_type`, `level`), verbatim.
|
|
42901
|
+
*/
|
|
42902
|
+
issues?: Array<{
|
|
42903
|
+
[key: string]: unknown;
|
|
42904
|
+
}>;
|
|
42880
42905
|
/**
|
|
42881
42906
|
* When the verdict was read from the platform.
|
|
42882
42907
|
*/
|
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.
|
|
39
|
+
version: "0.2.1160",
|
|
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.
|
|
8
|
+
version: "0.2.1160",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -10904,7 +10904,21 @@ export const getAdPreviews = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
10904
10904
|
* PROHIBITED topic is also listed in `rejections` (reason = the topic). The `forbidden*`
|
|
10905
10905
|
* arrays are TikTok-only and always empty on Google.
|
|
10906
10906
|
*
|
|
10907
|
-
*
|
|
10907
|
+
* **Meta** (Facebook and Instagram ads): reads the Ad's `ad_review_feedback`, `effective_status`
|
|
10908
|
+
* and `issues_info` live. `reviewStatus` is Meta's `effective_status` verbatim (ACTIVE, PAUSED,
|
|
10909
|
+
* PENDING_REVIEW, DISAPPROVED, PREAPPROVED, WITH_ISSUES, IN_PROCESS, ...); `approved` is true for
|
|
10910
|
+
* ACTIVE and PREAPPROVED, false for DISAPPROVED, null otherwise. `reviewFeedback` carries Meta's
|
|
10911
|
+
* feedback verbatim: `global` (reason -> explanation) and `placementSpecific` (placement ->
|
|
10912
|
+
* reason -> explanation). Each global reason is listed in `rejections`, and so is each
|
|
10913
|
+
* placement-specific reason, with that placement in its `forbiddenPlacements`; the review's
|
|
10914
|
+
* `forbiddenPlacements` lists every placement with feedback. When Meta returns no feedback (usually
|
|
10915
|
+
* an ad in review or approved everywhere), the status comes back with empty `rejections` and empty
|
|
10916
|
+
* `reviewFeedback` maps; an ACTIVE ad rejected on one placement still carries that placement's
|
|
10917
|
+
* feedback. A deleted ad answers 404. `issues` is Meta's
|
|
10918
|
+
* `issues_info` verbatim. `forbiddenAges`, `forbiddenLocations` and `forbiddenOperatingSystems`
|
|
10919
|
+
* are always empty on Meta.
|
|
10920
|
+
*
|
|
10921
|
+
* TikTok uses `/ad/review_info/`. Platforms other than TikTok, Google and Meta return 501. On TikTok, use it alongside the ad's
|
|
10908
10922
|
* `platformStatus`: TikTok reports `AD_STATUS_AUDIT` while the ad is in review and
|
|
10909
10923
|
* `AD_STATUS_AD_PRE_ONLINE` once it passed and is about to deliver (both map to
|
|
10910
10924
|
* `status: pending_review`); `AD_STATUS_AUDIT_DENY` maps to `rejected`.
|
|
@@ -43351,11 +43351,11 @@ export type GetAdReviewResponse = ({
|
|
|
43351
43351
|
platformAdId?: string;
|
|
43352
43352
|
review?: {
|
|
43353
43353
|
/**
|
|
43354
|
-
* TikTok `is_approved`.
|
|
43354
|
+
* TikTok `is_approved`. Google and Meta: derived from the platform status (see the description).
|
|
43355
43355
|
*/
|
|
43356
43356
|
approved?: (boolean) | null;
|
|
43357
43357
|
/**
|
|
43358
|
-
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected).
|
|
43358
|
+
* TikTok `review_status`, verbatim: ALL_AVAILABLE (approved everywhere), PART_AVAILABLE (approved for part of the targeting), UNAVAILABLE (rejected). Google: `review_status`. Meta: the ad's `effective_status`.
|
|
43359
43359
|
*/
|
|
43360
43360
|
reviewStatus?: (string) | null;
|
|
43361
43361
|
forbiddenPlacements?: Array<(string)>;
|
|
@@ -43414,6 +43414,31 @@ export type GetAdReviewResponse = ({
|
|
|
43414
43414
|
[key: string]: unknown;
|
|
43415
43415
|
}>;
|
|
43416
43416
|
}>;
|
|
43417
|
+
/**
|
|
43418
|
+
* Meta only. The Ad's `ad_review_feedback`, verbatim. Both maps are empty when Meta returned no feedback (approved or in-review ad).
|
|
43419
|
+
*/
|
|
43420
|
+
reviewFeedback?: {
|
|
43421
|
+
/**
|
|
43422
|
+
* Meta `global`: policy or reason -> Meta's explanation.
|
|
43423
|
+
*/
|
|
43424
|
+
global?: {
|
|
43425
|
+
[key: string]: (string);
|
|
43426
|
+
};
|
|
43427
|
+
/**
|
|
43428
|
+
* Meta `placement_specific`: placement (facebook, instagram, ...) -> reason -> Meta's explanation.
|
|
43429
|
+
*/
|
|
43430
|
+
placementSpecific?: {
|
|
43431
|
+
[key: string]: {
|
|
43432
|
+
[key: string]: (string);
|
|
43433
|
+
};
|
|
43434
|
+
};
|
|
43435
|
+
};
|
|
43436
|
+
/**
|
|
43437
|
+
* Meta only. The Ad's `issues_info` objects (`error_code`, `error_message`, `error_summary`, `error_type`, `level`), verbatim.
|
|
43438
|
+
*/
|
|
43439
|
+
issues?: Array<{
|
|
43440
|
+
[key: string]: unknown;
|
|
43441
|
+
}>;
|
|
43417
43442
|
/**
|
|
43418
43443
|
* When the verdict was read from the platform.
|
|
43419
43444
|
*/
|