@koda-sl/baker-cli 0.240.0 → 0.241.0
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/cli.js +17 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -19159,6 +19159,13 @@ var campaignCreateSchema3 = z25.object({
|
|
|
19159
19159
|
dailyBudget: moneySchema2.optional(),
|
|
19160
19160
|
lifetimeBudget: moneySchema2.optional(),
|
|
19161
19161
|
spendCap: moneySchema2.optional(),
|
|
19162
|
+
/**
|
|
19163
|
+
* Ad-set budget sharing: lets ad sets lend up to 20% of their budget to each
|
|
19164
|
+
* other. Meta requires an explicit true/false on any campaign that carries no
|
|
19165
|
+
* campaign budget (subcode 4834011); Baker sends false unless asked, because
|
|
19166
|
+
* turning it on moves real spend between ad sets nobody asked to move.
|
|
19167
|
+
*/
|
|
19168
|
+
adSetBudgetSharing: z25.boolean().optional(),
|
|
19162
19169
|
start_time: z25.number().int().positive().optional(),
|
|
19163
19170
|
stop_time: z25.number().int().positive().optional()
|
|
19164
19171
|
}).superRefine((p, ctx) => {
|
|
@@ -19871,6 +19878,7 @@ function campaignPayloadFromFlags2(args) {
|
|
|
19871
19878
|
dailyBudget: parseMoneyFlag2(args["daily-budget"], args.currency, "--daily-budget"),
|
|
19872
19879
|
lifetimeBudget: parseMoneyFlag2(args["lifetime-budget"], args.currency, "--lifetime-budget"),
|
|
19873
19880
|
spendCap: parseMoneyFlag2(args["spend-cap"], args.currency, "--spend-cap"),
|
|
19881
|
+
adSetBudgetSharing: args["adset-budget-sharing"] === void 0 ? void 0 : Boolean(args["adset-budget-sharing"]),
|
|
19874
19882
|
start_time: parseDateFlag2(args.start, "--start"),
|
|
19875
19883
|
stop_time: parseDateFlag2(args.stop, "--stop")
|
|
19876
19884
|
};
|
|
@@ -19904,6 +19912,10 @@ Example: baker ads meta campaigns create --name "Q3 Prospecting" --objective OUT
|
|
|
19904
19912
|
"special-ad-categories": { type: "string", description: "CSV: NONE|HOUSING|EMPLOYMENT|CREDIT|\u2026 (default NONE)" },
|
|
19905
19913
|
"special-ad-category-country": { type: "string", description: "CSV of 2-letter country codes" },
|
|
19906
19914
|
"buying-type": { type: "string", description: "AUCTION|RESERVED (default AUCTION)" },
|
|
19915
|
+
"adset-budget-sharing": {
|
|
19916
|
+
type: "boolean",
|
|
19917
|
+
description: "Let ad sets lend up to 20% of their budget to each other (off unless set; ignored with a campaign budget)"
|
|
19918
|
+
},
|
|
19907
19919
|
...campaignBudgetArgs,
|
|
19908
19920
|
file: { type: "string", description: "JSON file with the full payload; flags override file keys" }
|
|
19909
19921
|
},
|
|
@@ -20055,6 +20067,7 @@ function creativePayloadFromFlags(args) {
|
|
|
20055
20067
|
imageRef: args["image-ref"],
|
|
20056
20068
|
videoId: args["video-id"],
|
|
20057
20069
|
videoRef: args["video-ref"],
|
|
20070
|
+
thumbnailHash: args["thumbnail-hash"],
|
|
20058
20071
|
url_tags: args["url-tags"],
|
|
20059
20072
|
enhancements
|
|
20060
20073
|
};
|
|
@@ -20089,6 +20102,10 @@ Example: baker ads meta creatives create --page 555 --message "Save now" --link
|
|
|
20089
20102
|
"image-ref": { type: "string", description: "meta_temp_* ref of a staged media upload" },
|
|
20090
20103
|
"video-id": { type: "string", description: "Meta video id (already uploaded)" },
|
|
20091
20104
|
"video-ref": { type: "string", description: "meta_temp_* ref of a staged video upload" },
|
|
20105
|
+
"thumbnail-hash": {
|
|
20106
|
+
type: "string",
|
|
20107
|
+
description: "Cover image hash for a video ad (Meta's own cover is used when omitted)"
|
|
20108
|
+
},
|
|
20092
20109
|
"url-tags": { type: "string", description: "URL tracking params (utm_source=fb&\u2026)" },
|
|
20093
20110
|
"standard-enhancements": { type: "string", description: "Advantage+ Creative standard enhancements on|off" },
|
|
20094
20111
|
file: { type: "string", description: "JSON file with the full creative payload (carousel cards / dynamic assets)" }
|