@getlatedev/node 0.2.1792 → 0.2.1794
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 +51 -8
- package/dist/index.d.ts +51 -8
- 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 +51 -8
package/dist/index.d.mts
CHANGED
|
@@ -12365,6 +12365,14 @@ type ConversionEvent = {
|
|
|
12365
12365
|
*
|
|
12366
12366
|
*/
|
|
12367
12367
|
li_fat_id?: string;
|
|
12368
|
+
/**
|
|
12369
|
+
* TikTok click ID (the `ttclid` URL param TikTok adds to ad clicks). Sent to TikTok pixel destinations as `user.ttclid`, not hashed.
|
|
12370
|
+
*/
|
|
12371
|
+
ttclid?: string;
|
|
12372
|
+
/**
|
|
12373
|
+
* TikTok Pixel browser id (the `_ttp` cookie). Sent to TikTok pixel destinations as `user.ttp`, not hashed. Offline Event Sets match on email and phone only.
|
|
12374
|
+
*/
|
|
12375
|
+
ttp?: string;
|
|
12368
12376
|
/**
|
|
12369
12377
|
* Pinterest click ID (the `epik` URL param or `_epik` cookie). Sent to Pinterest as `click_id`, not hashed.
|
|
12370
12378
|
*/
|
|
@@ -23824,9 +23832,9 @@ type StagedAdChange = {
|
|
|
23824
23832
|
*/
|
|
23825
23833
|
id: string;
|
|
23826
23834
|
/**
|
|
23827
|
-
* Which write was staged.
|
|
23835
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
23828
23836
|
*/
|
|
23829
|
-
type: 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
23837
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
23830
23838
|
/**
|
|
23831
23839
|
* The ad platform of the object, as the write route names it.
|
|
23832
23840
|
*/
|
|
@@ -23852,22 +23860,39 @@ type StagedAdChange = {
|
|
|
23852
23860
|
*/
|
|
23853
23861
|
status: 'staged' | 'confirming' | 'confirmed' | 'failed';
|
|
23854
23862
|
/**
|
|
23855
|
-
* One entry per
|
|
23863
|
+
* One entry per value of the staged request that the write would change.
|
|
23864
|
+
*
|
|
23865
|
+
* - A nested field is flattened: each leaf is one entry under its dotted path (`budget.amount`, `targeting.ageMin`, `creative.headline`).
|
|
23866
|
+
* - A list is one entry.
|
|
23867
|
+
* - A leaf whose value on the ad network already equals the requested value is left out, so the list can be empty.
|
|
23868
|
+
* - `stage` and other flags that only steer the write are never listed.
|
|
23869
|
+
*
|
|
23856
23870
|
*/
|
|
23857
23871
|
diff: Array<{
|
|
23872
|
+
/**
|
|
23873
|
+
* The dotted path of the value in the request body.
|
|
23874
|
+
*/
|
|
23858
23875
|
field: string;
|
|
23859
23876
|
/**
|
|
23860
|
-
* The value on the ad network when the change was staged. Null when `beforeAvailable` is false.
|
|
23877
|
+
* The value on the ad network when the change was staged, in the units and shape of the request body. Null when `beforeAvailable` is false, and also when the object holds no value there.
|
|
23861
23878
|
*/
|
|
23862
23879
|
before: unknown;
|
|
23863
23880
|
/**
|
|
23864
|
-
* The value the change will write.
|
|
23881
|
+
* The value the change will write. Null or an empty string clears the field where the write route allows that.
|
|
23865
23882
|
*/
|
|
23866
23883
|
after: unknown;
|
|
23867
23884
|
/**
|
|
23868
|
-
* False when the live read of the object does not return this field, so `before` is unknown.
|
|
23885
|
+
* False when the live read of the object does not return this field, so `before` is unknown. The field is still staged.
|
|
23869
23886
|
*/
|
|
23870
23887
|
beforeAvailable: boolean;
|
|
23888
|
+
/**
|
|
23889
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `after` that are not in `before`. Order is ignored.
|
|
23890
|
+
*/
|
|
23891
|
+
added?: Array<unknown>;
|
|
23892
|
+
/**
|
|
23893
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `before` that are not in `after`. Order is ignored.
|
|
23894
|
+
*/
|
|
23895
|
+
removed?: Array<unknown>;
|
|
23871
23896
|
}>;
|
|
23872
23897
|
/**
|
|
23873
23898
|
* The user who staged the change.
|
|
@@ -23896,9 +23921,9 @@ type StagedAdChange = {
|
|
|
23896
23921
|
};
|
|
23897
23922
|
};
|
|
23898
23923
|
/**
|
|
23899
|
-
* Which write was staged.
|
|
23924
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
23900
23925
|
*/
|
|
23901
|
-
type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
23926
|
+
type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
23902
23927
|
/**
|
|
23903
23928
|
* - `staged`: waiting to be confirmed or discarded.
|
|
23904
23929
|
* - `confirming`: a confirm is running. A change that stays here has an unknown outcome and is never applied again automatically.
|
|
@@ -68129,6 +68154,10 @@ type GetAdCampaignDetailsResponse = ({
|
|
|
68129
68154
|
type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
68130
68155
|
type UpdateAdCampaignData = {
|
|
68131
68156
|
body: {
|
|
68157
|
+
/**
|
|
68158
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
68159
|
+
*/
|
|
68160
|
+
stage?: boolean;
|
|
68132
68161
|
/**
|
|
68133
68162
|
* Required: platform campaign IDs are not globally unique.
|
|
68134
68163
|
*/
|
|
@@ -68255,6 +68284,8 @@ type UpdateAdCampaignResponse = ({
|
|
|
68255
68284
|
platformSpecificData?: {
|
|
68256
68285
|
[key: string]: unknown;
|
|
68257
68286
|
};
|
|
68287
|
+
} | {
|
|
68288
|
+
change: StagedAdChange;
|
|
68258
68289
|
});
|
|
68259
68290
|
type UpdateAdCampaignError = (unknown | ErrorResponse);
|
|
68260
68291
|
type DeleteAdCampaignData = {
|
|
@@ -69292,6 +69323,10 @@ type GetAdSetDetailsResponse = ({
|
|
|
69292
69323
|
type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
69293
69324
|
type UpdateAdSetData = {
|
|
69294
69325
|
body: {
|
|
69326
|
+
/**
|
|
69327
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
69328
|
+
*/
|
|
69329
|
+
stage?: boolean;
|
|
69295
69330
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
69296
69331
|
/**
|
|
69297
69332
|
* Omit if not updating budget
|
|
@@ -69624,6 +69659,8 @@ type UpdateAdSetResponse = ({
|
|
|
69624
69659
|
* Reddit: the end_time written, a UTC instant, or null when the end date was removed. Present when `endDate` was sent.
|
|
69625
69660
|
*/
|
|
69626
69661
|
endDate?: (string) | null;
|
|
69662
|
+
} | {
|
|
69663
|
+
change: StagedAdChange;
|
|
69627
69664
|
});
|
|
69628
69665
|
type UpdateAdSetError = (unknown | ErrorResponse);
|
|
69629
69666
|
type DeleteAdSetData = {
|
|
@@ -70072,6 +70109,10 @@ type GetAdError = (ErrorResponse | {
|
|
|
70072
70109
|
} | unknown);
|
|
70073
70110
|
type UpdateAdData = {
|
|
70074
70111
|
body: {
|
|
70112
|
+
/**
|
|
70113
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
70114
|
+
*/
|
|
70115
|
+
stage?: boolean;
|
|
70075
70116
|
/**
|
|
70076
70117
|
* Google Search and Display only. Replaces the complete headline list. Search takes 3-15, Display 1-5 and rejects pinnedField; the count is checked once the ad's channel is known. No padding or truncation on update.
|
|
70077
70118
|
*/
|
|
@@ -70362,6 +70403,8 @@ type UpdateAdData = {
|
|
|
70362
70403
|
type UpdateAdResponse = ({
|
|
70363
70404
|
ad?: Ad;
|
|
70364
70405
|
message?: string;
|
|
70406
|
+
} | {
|
|
70407
|
+
change: StagedAdChange;
|
|
70365
70408
|
});
|
|
70366
70409
|
type UpdateAdError = (unknown | ErrorResponse);
|
|
70367
70410
|
type DeleteAdData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -12365,6 +12365,14 @@ type ConversionEvent = {
|
|
|
12365
12365
|
*
|
|
12366
12366
|
*/
|
|
12367
12367
|
li_fat_id?: string;
|
|
12368
|
+
/**
|
|
12369
|
+
* TikTok click ID (the `ttclid` URL param TikTok adds to ad clicks). Sent to TikTok pixel destinations as `user.ttclid`, not hashed.
|
|
12370
|
+
*/
|
|
12371
|
+
ttclid?: string;
|
|
12372
|
+
/**
|
|
12373
|
+
* TikTok Pixel browser id (the `_ttp` cookie). Sent to TikTok pixel destinations as `user.ttp`, not hashed. Offline Event Sets match on email and phone only.
|
|
12374
|
+
*/
|
|
12375
|
+
ttp?: string;
|
|
12368
12376
|
/**
|
|
12369
12377
|
* Pinterest click ID (the `epik` URL param or `_epik` cookie). Sent to Pinterest as `click_id`, not hashed.
|
|
12370
12378
|
*/
|
|
@@ -23824,9 +23832,9 @@ type StagedAdChange = {
|
|
|
23824
23832
|
*/
|
|
23825
23833
|
id: string;
|
|
23826
23834
|
/**
|
|
23827
|
-
* Which write was staged.
|
|
23835
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
23828
23836
|
*/
|
|
23829
|
-
type: 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
23837
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
23830
23838
|
/**
|
|
23831
23839
|
* The ad platform of the object, as the write route names it.
|
|
23832
23840
|
*/
|
|
@@ -23852,22 +23860,39 @@ type StagedAdChange = {
|
|
|
23852
23860
|
*/
|
|
23853
23861
|
status: 'staged' | 'confirming' | 'confirmed' | 'failed';
|
|
23854
23862
|
/**
|
|
23855
|
-
* One entry per
|
|
23863
|
+
* One entry per value of the staged request that the write would change.
|
|
23864
|
+
*
|
|
23865
|
+
* - A nested field is flattened: each leaf is one entry under its dotted path (`budget.amount`, `targeting.ageMin`, `creative.headline`).
|
|
23866
|
+
* - A list is one entry.
|
|
23867
|
+
* - A leaf whose value on the ad network already equals the requested value is left out, so the list can be empty.
|
|
23868
|
+
* - `stage` and other flags that only steer the write are never listed.
|
|
23869
|
+
*
|
|
23856
23870
|
*/
|
|
23857
23871
|
diff: Array<{
|
|
23872
|
+
/**
|
|
23873
|
+
* The dotted path of the value in the request body.
|
|
23874
|
+
*/
|
|
23858
23875
|
field: string;
|
|
23859
23876
|
/**
|
|
23860
|
-
* The value on the ad network when the change was staged. Null when `beforeAvailable` is false.
|
|
23877
|
+
* The value on the ad network when the change was staged, in the units and shape of the request body. Null when `beforeAvailable` is false, and also when the object holds no value there.
|
|
23861
23878
|
*/
|
|
23862
23879
|
before: unknown;
|
|
23863
23880
|
/**
|
|
23864
|
-
* The value the change will write.
|
|
23881
|
+
* The value the change will write. Null or an empty string clears the field where the write route allows that.
|
|
23865
23882
|
*/
|
|
23866
23883
|
after: unknown;
|
|
23867
23884
|
/**
|
|
23868
|
-
* False when the live read of the object does not return this field, so `before` is unknown.
|
|
23885
|
+
* False when the live read of the object does not return this field, so `before` is unknown. The field is still staged.
|
|
23869
23886
|
*/
|
|
23870
23887
|
beforeAvailable: boolean;
|
|
23888
|
+
/**
|
|
23889
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `after` that are not in `before`. Order is ignored.
|
|
23890
|
+
*/
|
|
23891
|
+
added?: Array<unknown>;
|
|
23892
|
+
/**
|
|
23893
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `before` that are not in `after`. Order is ignored.
|
|
23894
|
+
*/
|
|
23895
|
+
removed?: Array<unknown>;
|
|
23871
23896
|
}>;
|
|
23872
23897
|
/**
|
|
23873
23898
|
* The user who staged the change.
|
|
@@ -23896,9 +23921,9 @@ type StagedAdChange = {
|
|
|
23896
23921
|
};
|
|
23897
23922
|
};
|
|
23898
23923
|
/**
|
|
23899
|
-
* Which write was staged.
|
|
23924
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
23900
23925
|
*/
|
|
23901
|
-
type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
23926
|
+
type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
23902
23927
|
/**
|
|
23903
23928
|
* - `staged`: waiting to be confirmed or discarded.
|
|
23904
23929
|
* - `confirming`: a confirm is running. A change that stays here has an unknown outcome and is never applied again automatically.
|
|
@@ -68129,6 +68154,10 @@ type GetAdCampaignDetailsResponse = ({
|
|
|
68129
68154
|
type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
68130
68155
|
type UpdateAdCampaignData = {
|
|
68131
68156
|
body: {
|
|
68157
|
+
/**
|
|
68158
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
68159
|
+
*/
|
|
68160
|
+
stage?: boolean;
|
|
68132
68161
|
/**
|
|
68133
68162
|
* Required: platform campaign IDs are not globally unique.
|
|
68134
68163
|
*/
|
|
@@ -68255,6 +68284,8 @@ type UpdateAdCampaignResponse = ({
|
|
|
68255
68284
|
platformSpecificData?: {
|
|
68256
68285
|
[key: string]: unknown;
|
|
68257
68286
|
};
|
|
68287
|
+
} | {
|
|
68288
|
+
change: StagedAdChange;
|
|
68258
68289
|
});
|
|
68259
68290
|
type UpdateAdCampaignError = (unknown | ErrorResponse);
|
|
68260
68291
|
type DeleteAdCampaignData = {
|
|
@@ -69292,6 +69323,10 @@ type GetAdSetDetailsResponse = ({
|
|
|
69292
69323
|
type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
69293
69324
|
type UpdateAdSetData = {
|
|
69294
69325
|
body: {
|
|
69326
|
+
/**
|
|
69327
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
69328
|
+
*/
|
|
69329
|
+
stage?: boolean;
|
|
69295
69330
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
69296
69331
|
/**
|
|
69297
69332
|
* Omit if not updating budget
|
|
@@ -69624,6 +69659,8 @@ type UpdateAdSetResponse = ({
|
|
|
69624
69659
|
* Reddit: the end_time written, a UTC instant, or null when the end date was removed. Present when `endDate` was sent.
|
|
69625
69660
|
*/
|
|
69626
69661
|
endDate?: (string) | null;
|
|
69662
|
+
} | {
|
|
69663
|
+
change: StagedAdChange;
|
|
69627
69664
|
});
|
|
69628
69665
|
type UpdateAdSetError = (unknown | ErrorResponse);
|
|
69629
69666
|
type DeleteAdSetData = {
|
|
@@ -70072,6 +70109,10 @@ type GetAdError = (ErrorResponse | {
|
|
|
70072
70109
|
} | unknown);
|
|
70073
70110
|
type UpdateAdData = {
|
|
70074
70111
|
body: {
|
|
70112
|
+
/**
|
|
70113
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
70114
|
+
*/
|
|
70115
|
+
stage?: boolean;
|
|
70075
70116
|
/**
|
|
70076
70117
|
* Google Search and Display only. Replaces the complete headline list. Search takes 3-15, Display 1-5 and rejects pinnedField; the count is checked once the ad's channel is known. No padding or truncation on update.
|
|
70077
70118
|
*/
|
|
@@ -70362,6 +70403,8 @@ type UpdateAdData = {
|
|
|
70362
70403
|
type UpdateAdResponse = ({
|
|
70363
70404
|
ad?: Ad;
|
|
70364
70405
|
message?: string;
|
|
70406
|
+
} | {
|
|
70407
|
+
change: StagedAdChange;
|
|
70365
70408
|
});
|
|
70366
70409
|
type UpdateAdError = (unknown | ErrorResponse);
|
|
70367
70410
|
type DeleteAdData = {
|
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.1794",
|
|
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.1794",
|
|
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
|
@@ -15441,6 +15441,8 @@ export const discardAdChange = <ThrowOnError extends boolean = false>(options: O
|
|
|
15441
15441
|
*
|
|
15442
15442
|
* A change is applied at most once. Confirming a change that is already `confirmed` returns its stored result again. A change that failed answers `409` `change_not_staged`: stage a new one.
|
|
15443
15443
|
*
|
|
15444
|
+
* A refusal before anything is written leaves the change `staged`, so the confirm can be sent again: `403` `ads_allowance_exceeded`, or on a one-field change a `429` from Zernio's own limits. Any other failed write ends the change as `failed`.
|
|
15445
|
+
*
|
|
15444
15446
|
*/
|
|
15445
15447
|
export const confirmAdChange = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ConfirmAdChangeData, ThrowOnError>) => {
|
|
15446
15448
|
return (options?.client ?? client).post<ConfirmAdChangeResponse, ConfirmAdChangeError, ThrowOnError>({
|
|
@@ -10153,6 +10153,14 @@ export type ConversionEvent = {
|
|
|
10153
10153
|
*
|
|
10154
10154
|
*/
|
|
10155
10155
|
li_fat_id?: string;
|
|
10156
|
+
/**
|
|
10157
|
+
* TikTok click ID (the `ttclid` URL param TikTok adds to ad clicks). Sent to TikTok pixel destinations as `user.ttclid`, not hashed.
|
|
10158
|
+
*/
|
|
10159
|
+
ttclid?: string;
|
|
10160
|
+
/**
|
|
10161
|
+
* TikTok Pixel browser id (the `_ttp` cookie). Sent to TikTok pixel destinations as `user.ttp`, not hashed. Offline Event Sets match on email and phone only.
|
|
10162
|
+
*/
|
|
10163
|
+
ttp?: string;
|
|
10156
10164
|
/**
|
|
10157
10165
|
* Pinterest click ID (the `epik` URL param or `_epik` cookie). Sent to Pinterest as `click_id`, not hashed.
|
|
10158
10166
|
*/
|
|
@@ -22148,9 +22156,9 @@ export type StagedAdChange = {
|
|
|
22148
22156
|
*/
|
|
22149
22157
|
id: string;
|
|
22150
22158
|
/**
|
|
22151
|
-
* Which write was staged.
|
|
22159
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
22152
22160
|
*/
|
|
22153
|
-
type: 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
22161
|
+
type: 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
22154
22162
|
/**
|
|
22155
22163
|
* The ad platform of the object, as the write route names it.
|
|
22156
22164
|
*/
|
|
@@ -22176,22 +22184,39 @@ export type StagedAdChange = {
|
|
|
22176
22184
|
*/
|
|
22177
22185
|
status: 'staged' | 'confirming' | 'confirmed' | 'failed';
|
|
22178
22186
|
/**
|
|
22179
|
-
* One entry per
|
|
22187
|
+
* One entry per value of the staged request that the write would change.
|
|
22188
|
+
*
|
|
22189
|
+
* - A nested field is flattened: each leaf is one entry under its dotted path (`budget.amount`, `targeting.ageMin`, `creative.headline`).
|
|
22190
|
+
* - A list is one entry.
|
|
22191
|
+
* - A leaf whose value on the ad network already equals the requested value is left out, so the list can be empty.
|
|
22192
|
+
* - `stage` and other flags that only steer the write are never listed.
|
|
22193
|
+
*
|
|
22180
22194
|
*/
|
|
22181
22195
|
diff: Array<{
|
|
22196
|
+
/**
|
|
22197
|
+
* The dotted path of the value in the request body.
|
|
22198
|
+
*/
|
|
22182
22199
|
field: string;
|
|
22183
22200
|
/**
|
|
22184
|
-
* The value on the ad network when the change was staged. Null when `beforeAvailable` is false.
|
|
22201
|
+
* The value on the ad network when the change was staged, in the units and shape of the request body. Null when `beforeAvailable` is false, and also when the object holds no value there.
|
|
22185
22202
|
*/
|
|
22186
22203
|
before: unknown;
|
|
22187
22204
|
/**
|
|
22188
|
-
* The value the change will write.
|
|
22205
|
+
* The value the change will write. Null or an empty string clears the field where the write route allows that.
|
|
22189
22206
|
*/
|
|
22190
22207
|
after: unknown;
|
|
22191
22208
|
/**
|
|
22192
|
-
* False when the live read of the object does not return this field, so `before` is unknown.
|
|
22209
|
+
* False when the live read of the object does not return this field, so `before` is unknown. The field is still staged.
|
|
22193
22210
|
*/
|
|
22194
22211
|
beforeAvailable: boolean;
|
|
22212
|
+
/**
|
|
22213
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `after` that are not in `before`. Order is ignored.
|
|
22214
|
+
*/
|
|
22215
|
+
added?: Array<unknown>;
|
|
22216
|
+
/**
|
|
22217
|
+
* Only on a list of plain values (strings or numbers) with `beforeAvailable` true: the values in `before` that are not in `after`. Order is ignored.
|
|
22218
|
+
*/
|
|
22219
|
+
removed?: Array<unknown>;
|
|
22195
22220
|
}>;
|
|
22196
22221
|
/**
|
|
22197
22222
|
* The user who staged the change.
|
|
@@ -22221,9 +22246,9 @@ export type StagedAdChange = {
|
|
|
22221
22246
|
};
|
|
22222
22247
|
|
|
22223
22248
|
/**
|
|
22224
|
-
* Which write was staged.
|
|
22249
|
+
* Which write was staged: a status route, or the update route of a campaign, an ad set or an ad.
|
|
22225
22250
|
*/
|
|
22226
|
-
export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status';
|
|
22251
|
+
export type type32 = 'campaign_status' | 'ad_set_status' | 'ad_status' | 'campaign_update' | 'ad_set_update' | 'ad_update';
|
|
22227
22252
|
|
|
22228
22253
|
/**
|
|
22229
22254
|
* - `staged`: waiting to be confirmed or discarded.
|
|
@@ -69512,6 +69537,10 @@ export type GetAdCampaignDetailsError = (ErrorResponse | unknown);
|
|
|
69512
69537
|
|
|
69513
69538
|
export type UpdateAdCampaignData = {
|
|
69514
69539
|
body: {
|
|
69540
|
+
/**
|
|
69541
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
69542
|
+
*/
|
|
69543
|
+
stage?: boolean;
|
|
69515
69544
|
/**
|
|
69516
69545
|
* Required: platform campaign IDs are not globally unique.
|
|
69517
69546
|
*/
|
|
@@ -69639,6 +69668,8 @@ export type UpdateAdCampaignResponse = ({
|
|
|
69639
69668
|
platformSpecificData?: {
|
|
69640
69669
|
[key: string]: unknown;
|
|
69641
69670
|
};
|
|
69671
|
+
} | {
|
|
69672
|
+
change: StagedAdChange;
|
|
69642
69673
|
});
|
|
69643
69674
|
|
|
69644
69675
|
export type UpdateAdCampaignError = (unknown | ErrorResponse);
|
|
@@ -70717,6 +70748,10 @@ export type GetAdSetDetailsError = (unknown | ErrorResponse);
|
|
|
70717
70748
|
|
|
70718
70749
|
export type UpdateAdSetData = {
|
|
70719
70750
|
body: {
|
|
70751
|
+
/**
|
|
70752
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
70753
|
+
*/
|
|
70754
|
+
stage?: boolean;
|
|
70720
70755
|
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
|
|
70721
70756
|
/**
|
|
70722
70757
|
* Omit if not updating budget
|
|
@@ -71050,6 +71085,8 @@ export type UpdateAdSetResponse = ({
|
|
|
71050
71085
|
* Reddit: the end_time written, a UTC instant, or null when the end date was removed. Present when `endDate` was sent.
|
|
71051
71086
|
*/
|
|
71052
71087
|
endDate?: (string) | null;
|
|
71088
|
+
} | {
|
|
71089
|
+
change: StagedAdChange;
|
|
71053
71090
|
});
|
|
71054
71091
|
|
|
71055
71092
|
export type UpdateAdSetError = (unknown | ErrorResponse);
|
|
@@ -71521,6 +71558,10 @@ export type GetAdError = (ErrorResponse | {
|
|
|
71521
71558
|
|
|
71522
71559
|
export type UpdateAdData = {
|
|
71523
71560
|
body: {
|
|
71561
|
+
/**
|
|
71562
|
+
* Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
|
|
71563
|
+
*/
|
|
71564
|
+
stage?: boolean;
|
|
71524
71565
|
/**
|
|
71525
71566
|
* Google Search and Display only. Replaces the complete headline list. Search takes 3-15, Display 1-5 and rejects pinnedField; the count is checked once the ad's channel is known. No padding or truncation on update.
|
|
71526
71567
|
*/
|
|
@@ -71812,6 +71853,8 @@ export type UpdateAdData = {
|
|
|
71812
71853
|
export type UpdateAdResponse = ({
|
|
71813
71854
|
ad?: Ad;
|
|
71814
71855
|
message?: string;
|
|
71856
|
+
} | {
|
|
71857
|
+
change: StagedAdChange;
|
|
71815
71858
|
});
|
|
71816
71859
|
|
|
71817
71860
|
export type UpdateAdError = (unknown | ErrorResponse);
|