@adkit/cli 1.12.3 → 1.12.4
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 +5 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2656,7 +2656,7 @@ var PLATFORM_OVERRIDE_FLAG = "platform-overrides";
|
|
|
2656
2656
|
var CAMPAIGN_CREATE_FLAGS = ["name", "objective", "status", "budget-daily", "budget-lifetime", PLATFORM_OVERRIDE_FLAG];
|
|
2657
2657
|
var CAMPAIGN_UPDATE_FLAGS = ["name", "status", "budget-daily", "budget-lifetime", PLATFORM_OVERRIDE_FLAG];
|
|
2658
2658
|
var AD_GROUP_LIST_FLAGS2 = ["campaign-ids", "fields", "limit", "offset"];
|
|
2659
|
-
var AD_GROUP_CREATE_FLAGS = ["campaign", "name", "status", "budget-daily", "budget-lifetime", "billing-event", "optimization", "schedule-start-time", "schedule-end-time", "schedule-type", "pacing", "bid-amount", "event-type", "pixel", "placement", PLATFORM_OVERRIDE_FLAG];
|
|
2659
|
+
var AD_GROUP_CREATE_FLAGS = ["campaign", "name", "status", "budget-daily", "budget-lifetime", "billing-event", "bid-strategy", "optimization", "schedule-start-time", "schedule-end-time", "schedule-type", "pacing", "bid-amount", "event-type", "pixel", "placement", PLATFORM_OVERRIDE_FLAG];
|
|
2660
2660
|
var AD_GROUP_UPDATE_FLAGS = ["name", "status", "budget-daily", "budget-lifetime", "billing-event", "optimization", "schedule-start-time", "schedule-end-time", "schedule-type", "pacing", "bid-amount", "event-type", "pixel", PLATFORM_OVERRIDE_FLAG];
|
|
2661
2661
|
var AD_LIST_FLAGS2 = ["ad-group-ids", "campaign-ids", "fields", "limit", "offset"];
|
|
2662
2662
|
var AD_CREATE_FLAGS = ["ad-group", "name", "status", "media-id", "ad-text", "url", "cta", "display-name", "identity-id", "identity-type", "tracking-pixel", PLATFORM_OVERRIDE_FLAG];
|
|
@@ -2809,6 +2809,7 @@ function buildTikTokAdGroupPayload(flags, mode) {
|
|
|
2809
2809
|
if (budget) payload.budget = budget;
|
|
2810
2810
|
if (typeof flags.status === "string") payload.status = flags.status;
|
|
2811
2811
|
if (typeof flags["billing-event"] === "string") payload.billingEvent = flags["billing-event"];
|
|
2812
|
+
if (mode === "create" && typeof flags["bid-strategy"] === "string") payload.bidStrategy = flags["bid-strategy"];
|
|
2812
2813
|
if (typeof flags.optimization === "string") payload.optimization = flags.optimization;
|
|
2813
2814
|
if (typeof flags["schedule-end-time"] === "string") payload.scheduleEndTime = flags["schedule-end-time"];
|
|
2814
2815
|
if (typeof flags["schedule-type"] === "string") payload.scheduleType = flags["schedule-type"];
|
|
@@ -5268,15 +5269,16 @@ ${FLAG.data}
|
|
|
5268
5269
|
--schedule-start-time <value> Required for create, e.g. "2026-05-15 12:00:00"
|
|
5269
5270
|
--schedule-end-time <value> Optional end time
|
|
5270
5271
|
--billing-event <s> cpc, cpm, ocpm
|
|
5272
|
+
--bid-strategy <s> bid_type_no_bid, bid_type_custom, bid_type_max_conversion
|
|
5271
5273
|
--optimization <s> click, convert, lead_generation, video_view, reach
|
|
5272
|
-
--bid-amount <n>
|
|
5274
|
+
--bid-amount <n> Custom bid in account currency; conversion/OCPM maps to cost per conversion
|
|
5273
5275
|
--event-type <s> purchase, add_to_cart, view_content, complete_registration, lead, submit_form
|
|
5274
5276
|
--pixel <id> Pixel ID; falls back to account default pixel when conversion is used
|
|
5275
5277
|
--placement <ids> Override TikTok placement IDs (publish default: PLACEMENT_TIKTOK)
|
|
5276
5278
|
|
|
5277
5279
|
Examples:
|
|
5278
5280
|
adkit manage tiktok ad-groups create --campaign 1770 --name "US Broad" --budget-daily 50 --schedule-start-time "2026-05-15 12:00:00" --billing-event cpc --optimization click
|
|
5279
|
-
adkit manage tiktok ad-groups create --data '{"adGroups":[{"campaignId":"1770","name":"Purchase","budget":{"daily":50},"scheduleStartTime":"2026-05-15 12:00:00","conversion":{"eventType":"purchase"},"targeting":{"geoLocations":{"include":[{"type":"country","country":"US"}]}}}]}'`.trim(),
|
|
5281
|
+
adkit manage tiktok ad-groups create --data '{"adGroups":[{"campaignId":"1770","name":"Purchase","budget":{"daily":50},"scheduleStartTime":"2026-05-15 12:00:00","bidAmount":80,"conversion":{"eventType":"purchase"},"targeting":{"geoLocations":{"include":[{"type":"country","country":"US"}]}}}]}'`.trim(),
|
|
5280
5282
|
"tiktok ads": `adkit manage tiktok ads \u2014 TikTok video ads
|
|
5281
5283
|
|
|
5282
5284
|
list List ads
|
package/package.json
CHANGED