@adkit/cli 1.13.4 → 1.13.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +18 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -3211,10 +3211,10 @@ var CAMPAIGN_LIST_FLAGS3 = ["campaign-ids", "limit", "offset"];
3211
3211
  var AD_GROUP_LIST_FLAGS3 = ["campaign-ids", "ad-group-ids", "limit", "offset"];
3212
3212
  var AD_LIST_FLAGS3 = ["campaign-ids", "limit", "offset"];
3213
3213
  var CAMPAIGN_CREATE_FLAGS3 = ["name", "status", "budget-daily", "budget-lifetime", "end-date"];
3214
- var AD_GROUP_CREATE_FLAGS2 = ["campaign", "name", "objective", "status", "budget-daily", "budget-lifetime"];
3214
+ var AD_GROUP_CREATE_FLAGS2 = ["campaign", "name", "objective", "status", "budget-daily", "budget-lifetime", "bid-strategy", "optimization", "bid-amount"];
3215
3215
  var AD_CREATE_FLAGS2 = ["ad-group", "existing-post", "name", "status"];
3216
3216
  var CAMPAIGN_UPDATE_FLAGS3 = ["name", "status", "budget-lifetime", "end-date"];
3217
- var AD_GROUP_UPDATE_FLAGS2 = ["name", "status", "budget-daily", "budget-lifetime", "start-date", "end-date"];
3217
+ var AD_GROUP_UPDATE_FLAGS2 = ["name", "status", "budget-daily", "budget-lifetime", "start-date", "end-date", "bid-strategy", "optimization", "bid-amount"];
3218
3218
  var AD_UPDATE_FLAGS2 = ["name", "status"];
3219
3219
  var TARGETING_SEARCH_FLAGS = ["account", "facet", "query", "limit"];
3220
3220
  var RESULTS_FLAGS2 = ["level", "period", "fields", "breakdowns", "from", "to", "sort", "limit", "offset"];
@@ -3386,6 +3386,10 @@ function buildLinkedInAdGroupPayload(flags) {
3386
3386
  const budget = buildLinkedInBudget(flags);
3387
3387
  if (budget) payload.budget = budget;
3388
3388
  if (typeof flags.objective === "string") payload.objective = flags.objective;
3389
+ if (typeof flags["bid-strategy"] === "string") payload.bidStrategy = flags["bid-strategy"];
3390
+ if (typeof flags.optimization === "string") payload.optimization = flags.optimization;
3391
+ const bidAmount = readNumberFlag3(flags, "bid-amount");
3392
+ if (bidAmount !== void 0) payload.bidAmount = bidAmount;
3389
3393
  if (typeof flags.status === "string") payload.status = flags.status;
3390
3394
  return payload;
3391
3395
  }
@@ -3415,6 +3419,10 @@ function buildLinkedInAdGroupUpdatePayload(flags) {
3415
3419
  if (typeof flags["end-date"] === "string") payload.endDate = flags["end-date"];
3416
3420
  const budget = buildLinkedInBudget(flags);
3417
3421
  if (budget) payload.budget = budget;
3422
+ if (typeof flags["bid-strategy"] === "string") payload.bidStrategy = flags["bid-strategy"];
3423
+ if (typeof flags.optimization === "string") payload.optimization = flags.optimization;
3424
+ const bidAmount = readNumberFlag3(flags, "bid-amount");
3425
+ if (bidAmount !== void 0) payload.bidAmount = bidAmount;
3418
3426
  return payload;
3419
3427
  }
3420
3428
  function buildLinkedInAdUpdatePayload(flags) {
@@ -6020,7 +6028,7 @@ Examples:
6020
6028
 
6021
6029
  list List ad groups
6022
6030
  create Create an ad group draft
6023
- update <id> Update an ad group (rename, pause/resume, budget, dates, targeting)
6031
+ update <id> Update an ad group (rename, status, budget, bidding, dates, targeting)
6024
6032
  <id> View ad group details
6025
6033
 
6026
6034
  Naming note:
@@ -6037,10 +6045,13 @@ ${FLAG.data}
6037
6045
  --ad-group-ids <ids> Comma-separated ad group IDs for filtered reads
6038
6046
  --campaign <id> Parent campaign ID (create only)
6039
6047
  --name <name> Ad group name
6040
- --objective <type> brand_awareness, engagement, website_visits, video_views, website_conversions
6048
+ --objective <type> brand_awareness, engagement, website_visits, video_views, website_conversions, lead_generation
6041
6049
  --status <s> create: active or draft (defaults to draft). update: active, paused, or archived
6042
6050
  --budget-daily <n> Daily budget in account currency
6043
6051
  --budget-lifetime <n> Lifetime budget in account currency
6052
+ --bid-strategy <s> maximum_delivery, manual, target_cost, cost_cap
6053
+ --optimization <s> clicks, impressions, conversions, video_views, leads, qualified_leads, reach
6054
+ --bid-amount <n> Bid/target/cap in account currency; required except for maximum_delivery
6044
6055
  --start-date <date> YYYY-MM-DD (update only)
6045
6056
  --end-date <date> YYYY-MM-DD (update only)
6046
6057
 
@@ -6053,9 +6064,12 @@ Targeting (--data only):
6053
6064
 
6054
6065
  Notes:
6055
6066
  A live ad group can never go back to draft. targeting on update is a full replace (send the whole targeting object via --data).
6067
+ Explicit bidding on create requires a compatible --objective. Bidding changes are atomic: send --bid-strategy and --optimization together. manual, target_cost, and cost_cap also require --bid-amount; maximum_delivery rejects it.
6068
+ LinkedIn further constrains bidding by objective and creative format.
6056
6069
 
6057
6070
  Examples:
6058
6071
  adkit manage linkedin ad-groups create --campaign 628940516 --name "US Broad" --budget-daily 50 --objective website_visits
6072
+ adkit manage linkedin ad-groups create --campaign 628940516 --name "US Manual CPC" --objective website_visits --bid-strategy manual --optimization clicks --bid-amount 8
6059
6073
  adkit manage linkedin ad-groups update 361387516 --account 512345678 --status paused
6060
6074
  adkit manage linkedin ad-groups create --data '{"adGroups":[{"campaignId":"628940516","name":"US Senior Eng","budget":{"daily":50},"targeting":{"geoLocations":{"include":[{"type":"country","code":"103644278"}]},"audience":{"seniorities":{"include":["6"]},"customAudiences":{"include":["123456"]}}}}]}'`.trim(),
6061
6075
  "linkedin ads": `adkit manage linkedin ads \u2014 LinkedIn ads
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adkit/cli",
3
- "version": "1.13.4",
3
+ "version": "1.13.5",
4
4
  "description": "The Ads CLI for AI agents — manage Meta & Google ad campaigns, browse the ad library, and generate creatives from your terminal.",
5
5
  "keywords": [
6
6
  "ads cli",