@getlatedev/node 0.2.1353 → 0.2.1354
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 +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +13 -5
package/dist/index.d.mts
CHANGED
|
@@ -8327,7 +8327,7 @@ type CtwaMultiResponse = {
|
|
|
8327
8327
|
platformAdSetId: string;
|
|
8328
8328
|
message: string;
|
|
8329
8329
|
/**
|
|
8330
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
8330
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
8331
8331
|
*/
|
|
8332
8332
|
warnings?: Array<(string)>;
|
|
8333
8333
|
};
|
|
@@ -8348,7 +8348,7 @@ type CtwaSingleResponse = {
|
|
|
8348
8348
|
};
|
|
8349
8349
|
message: string;
|
|
8350
8350
|
/**
|
|
8351
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
8351
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
8352
8352
|
*/
|
|
8353
8353
|
warnings?: Array<(string)>;
|
|
8354
8354
|
};
|
|
@@ -8881,7 +8881,7 @@ type ErrorResponse = {
|
|
|
8881
8881
|
*/
|
|
8882
8882
|
details?: {
|
|
8883
8883
|
/**
|
|
8884
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
8884
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
8885
8885
|
*/
|
|
8886
8886
|
stage?: 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
8887
8887
|
/**
|
|
@@ -8932,7 +8932,7 @@ type ErrorResponse = {
|
|
|
8932
8932
|
*/
|
|
8933
8933
|
type type9 = 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found' | 'rate_limit_error' | 'platform_error' | 'api_error';
|
|
8934
8934
|
/**
|
|
8935
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
8935
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
8936
8936
|
*/
|
|
8937
8937
|
type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
8938
8938
|
/**
|
|
@@ -52555,7 +52555,7 @@ type BoostPostResponse = ({
|
|
|
52555
52555
|
message?: string;
|
|
52556
52556
|
instagramVideoFallback?: InstagramVideoFallback;
|
|
52557
52557
|
/**
|
|
52558
|
-
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted.
|
|
52558
|
+
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted. On Meta also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE of the campaign, ad set or ad this boost created: nothing was deleted, `message` says not everything is ACTIVE, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later. A retry without Idempotency-Key inside the 10-minute dedup window that finds the stored ad PAUSED although it asks for ACTIVE gets a `replayed_paused:` entry with the same status calls instead.
|
|
52559
52559
|
*/
|
|
52560
52560
|
warnings?: Array<(string)>;
|
|
52561
52561
|
});
|
|
@@ -53959,12 +53959,20 @@ type CreateStandaloneAdResponse = ({
|
|
|
53959
53959
|
ad?: Ad;
|
|
53960
53960
|
appliedDefaults?: AdAppliedDefaults;
|
|
53961
53961
|
message?: string;
|
|
53962
|
+
/**
|
|
53963
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE: the entry names what was kept PAUSED (the ad, and its ad set or campaign when Meta refused those) and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
53964
|
+
*/
|
|
53965
|
+
warnings?: Array<(string)>;
|
|
53962
53966
|
} | {
|
|
53963
53967
|
ads?: Array<Ad>;
|
|
53964
53968
|
platformCampaignId?: string;
|
|
53965
53969
|
platformAdSetId?: string;
|
|
53966
53970
|
appliedDefaults?: AdAppliedDefaults;
|
|
53967
53971
|
message?: string;
|
|
53972
|
+
/**
|
|
53973
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE for the ads it names (or for their ad set or campaign): the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
53974
|
+
*/
|
|
53975
|
+
warnings?: Array<(string)>;
|
|
53968
53976
|
}));
|
|
53969
53977
|
type CreateStandaloneAdError = (unknown | ErrorResponse);
|
|
53970
53978
|
type ListLeadsData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -8327,7 +8327,7 @@ type CtwaMultiResponse = {
|
|
|
8327
8327
|
platformAdSetId: string;
|
|
8328
8328
|
message: string;
|
|
8329
8329
|
/**
|
|
8330
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
8330
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
8331
8331
|
*/
|
|
8332
8332
|
warnings?: Array<(string)>;
|
|
8333
8333
|
};
|
|
@@ -8348,7 +8348,7 @@ type CtwaSingleResponse = {
|
|
|
8348
8348
|
};
|
|
8349
8349
|
message: string;
|
|
8350
8350
|
/**
|
|
8351
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
8351
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
8352
8352
|
*/
|
|
8353
8353
|
warnings?: Array<(string)>;
|
|
8354
8354
|
};
|
|
@@ -8881,7 +8881,7 @@ type ErrorResponse = {
|
|
|
8881
8881
|
*/
|
|
8882
8882
|
details?: {
|
|
8883
8883
|
/**
|
|
8884
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
8884
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
8885
8885
|
*/
|
|
8886
8886
|
stage?: 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
8887
8887
|
/**
|
|
@@ -8932,7 +8932,7 @@ type ErrorResponse = {
|
|
|
8932
8932
|
*/
|
|
8933
8933
|
type type9 = 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found' | 'rate_limit_error' | 'platform_error' | 'api_error';
|
|
8934
8934
|
/**
|
|
8935
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
8935
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
8936
8936
|
*/
|
|
8937
8937
|
type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
8938
8938
|
/**
|
|
@@ -52555,7 +52555,7 @@ type BoostPostResponse = ({
|
|
|
52555
52555
|
message?: string;
|
|
52556
52556
|
instagramVideoFallback?: InstagramVideoFallback;
|
|
52557
52557
|
/**
|
|
52558
|
-
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted.
|
|
52558
|
+
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted. On Meta also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE of the campaign, ad set or ad this boost created: nothing was deleted, `message` says not everything is ACTIVE, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later. A retry without Idempotency-Key inside the 10-minute dedup window that finds the stored ad PAUSED although it asks for ACTIVE gets a `replayed_paused:` entry with the same status calls instead.
|
|
52559
52559
|
*/
|
|
52560
52560
|
warnings?: Array<(string)>;
|
|
52561
52561
|
});
|
|
@@ -53959,12 +53959,20 @@ type CreateStandaloneAdResponse = ({
|
|
|
53959
53959
|
ad?: Ad;
|
|
53960
53960
|
appliedDefaults?: AdAppliedDefaults;
|
|
53961
53961
|
message?: string;
|
|
53962
|
+
/**
|
|
53963
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE: the entry names what was kept PAUSED (the ad, and its ad set or campaign when Meta refused those) and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
53964
|
+
*/
|
|
53965
|
+
warnings?: Array<(string)>;
|
|
53962
53966
|
} | {
|
|
53963
53967
|
ads?: Array<Ad>;
|
|
53964
53968
|
platformCampaignId?: string;
|
|
53965
53969
|
platformAdSetId?: string;
|
|
53966
53970
|
appliedDefaults?: AdAppliedDefaults;
|
|
53967
53971
|
message?: string;
|
|
53972
|
+
/**
|
|
53973
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE for the ads it names (or for their ad set or campaign): the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
53974
|
+
*/
|
|
53975
|
+
warnings?: Array<(string)>;
|
|
53968
53976
|
}));
|
|
53969
53977
|
type CreateStandaloneAdError = (unknown | ErrorResponse);
|
|
53970
53978
|
type ListLeadsData = {
|
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.1354",
|
|
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.1354",
|
|
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
|
@@ -14250,6 +14250,8 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
|
|
|
14250
14250
|
* - `existingCreativeId`: no creative fields. Goal `page_likes`: `body` only.
|
|
14251
14251
|
* - Goal `lead_generation` always needs `leadGenFormId`, except with `existingCreativeId`.
|
|
14252
14252
|
*
|
|
14253
|
+
* **Meta activation.** Meta builds the campaign, ad set and ads PAUSED and switches the requested levels to ACTIVE as the last step. When Meta refuses that switch, or the connection drops, after Zernio's retries, the request still answers 201 and nothing is deleted: the refused level and every level below it stay PAUSED, while levels above it that already went ACTIVE stay ACTIVE (the ad comes back with `status: paused` and its `configuredStatus` as read back from Meta). A switch Meta applied although its answer was lost counts as ACTIVE, since Zernio reads the status back first. `message` says not everything is ACTIVE, and `warnings` carries one entry starting with `activation_failed:` that quotes Meta's code, subcode and message, names what was kept PAUSED and what was switched ACTIVE, and lists the calls that switch the PAUSED ones on later (PUT /v1/ads/campaigns/{campaignId}/status, PUT /v1/ads/ad-sets/{adSetId}/status and PUT /v1/ads/{adId}/status with status `active`, in that order). On the `creatives[]` shape only the ads Meta refused stay PAUSED when the campaign and ad set went through. A Reach and Frequency ad is created ACTIVE and is never listed as kept PAUSED. With an `Idempotency-Key` a retry replays this 201.
|
|
14254
|
+
*
|
|
14253
14255
|
* LinkedIn creates a Single Image or Single Video Ad backed by a Direct Sponsored Content "dark post" authored by a Company Page (see `organizationId`). Supported goals are engagement, traffic, awareness, and video_views (video ads use the `video` field; video_views requires a video), and traffic ads require `linkUrl`.
|
|
14254
14256
|
*
|
|
14255
14257
|
* Reddit Ads (`accountId` of a `redditads` connection, `adAccountId` like `a2_abc123`) creates a campaign, an ad group carrying the budget, schedule, targeting and pixel, and an ad running a new promoted post authored by the ad account's first profile (422 when it has none). The creative format follows the body: `carouselCards` builds a carousel, `video` a video ad, `imageUrl` an image ad, and none of them a text ad, which cannot link out (`linkUrl` is a 400 there; `body` is required). Only the legacy single-creative shape is available: `creatives[]`, `adSetId`, `existingCampaignId` and `validateOnly` are refused. Reddit throttling surfaces as 429 `rate_limited` with `platform: reddit`; retry after a delay. To promote an existing Reddit post use POST /v1/ads/boost.
|
|
@@ -6421,7 +6421,7 @@ export type CtwaMultiResponse = {
|
|
|
6421
6421
|
platformAdSetId: string;
|
|
6422
6422
|
message: string;
|
|
6423
6423
|
/**
|
|
6424
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
6424
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
6425
6425
|
*/
|
|
6426
6426
|
warnings?: Array<(string)>;
|
|
6427
6427
|
};
|
|
@@ -6444,7 +6444,7 @@ export type CtwaSingleResponse = {
|
|
|
6444
6444
|
};
|
|
6445
6445
|
message: string;
|
|
6446
6446
|
/**
|
|
6447
|
-
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied.
|
|
6447
|
+
* Present when Meta created the ad set differently from the request: a multi-destination ad set (`destinations` including whatsapp) that Meta kept without the requested `whatsappPhoneNumber` in its promoted_object, which an existing ad set cannot change (a WhatsApp-only ad set returns no such warning, because every ad routes conversations by the number on its WhatsApp button), or the ad set joined a CBO campaign (`existingCampaignId`) whose own bid strategy applies, so a different `bidStrategy` or a `roasAverageFloor` that strategy cannot take was not applied. Also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE: nothing was deleted, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
6448
6448
|
*/
|
|
6449
6449
|
warnings?: Array<(string)>;
|
|
6450
6450
|
};
|
|
@@ -7000,7 +7000,7 @@ export type ErrorResponse = {
|
|
|
7000
7000
|
*/
|
|
7001
7001
|
details?: {
|
|
7002
7002
|
/**
|
|
7003
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
7003
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
7004
7004
|
*/
|
|
7005
7005
|
stage?: 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
7006
7006
|
/**
|
|
@@ -7053,7 +7053,7 @@ export type ErrorResponse = {
|
|
|
7053
7053
|
export type type9 = 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found' | 'rate_limit_error' | 'platform_error' | 'api_error';
|
|
7054
7054
|
|
|
7055
7055
|
/**
|
|
7056
|
-
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on), or `other` (a read or check before any write).
|
|
7056
|
+
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
7057
7057
|
*/
|
|
7058
7058
|
export type stage = 'media' | 'campaign' | 'adset' | 'creative' | 'ad' | 'activation' | 'other';
|
|
7059
7059
|
|
|
@@ -53587,7 +53587,7 @@ export type BoostPostResponse = ({
|
|
|
53587
53587
|
message?: string;
|
|
53588
53588
|
instagramVideoFallback?: InstagramVideoFallback;
|
|
53589
53589
|
/**
|
|
53590
|
-
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted.
|
|
53590
|
+
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted. On Meta also present, as an entry starting with `activation_failed:`, when Meta refused the final switch to ACTIVE of the campaign, ad set or ad this boost created: nothing was deleted, `message` says not everything is ACTIVE, and the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later. A retry without Idempotency-Key inside the 10-minute dedup window that finds the stored ad PAUSED although it asks for ACTIVE gets a `replayed_paused:` entry with the same status calls instead.
|
|
53591
53591
|
*/
|
|
53592
53592
|
warnings?: Array<(string)>;
|
|
53593
53593
|
});
|
|
@@ -55015,12 +55015,20 @@ export type CreateStandaloneAdResponse = ({
|
|
|
55015
55015
|
ad?: Ad;
|
|
55016
55016
|
appliedDefaults?: AdAppliedDefaults;
|
|
55017
55017
|
message?: string;
|
|
55018
|
+
/**
|
|
55019
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE: the entry names what was kept PAUSED (the ad, and its ad set or campaign when Meta refused those) and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
55020
|
+
*/
|
|
55021
|
+
warnings?: Array<(string)>;
|
|
55018
55022
|
} | {
|
|
55019
55023
|
ads?: Array<Ad>;
|
|
55020
55024
|
platformCampaignId?: string;
|
|
55021
55025
|
platformAdSetId?: string;
|
|
55022
55026
|
appliedDefaults?: AdAppliedDefaults;
|
|
55023
55027
|
message?: string;
|
|
55028
|
+
/**
|
|
55029
|
+
* Meta only, present only when needed. An `activation_failed:` entry means Meta refused the final switch to ACTIVE for the ads it names (or for their ad set or campaign): the entry names what was kept PAUSED and what was switched ACTIVE, and quotes Meta's error and the status calls that switch the PAUSED ones on later.
|
|
55030
|
+
*/
|
|
55031
|
+
warnings?: Array<(string)>;
|
|
55024
55032
|
}));
|
|
55025
55033
|
|
|
55026
55034
|
export type CreateStandaloneAdError = (unknown | ErrorResponse);
|