@adkit/cli 1.13.21 → 1.13.22
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 +16 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -528,10 +528,15 @@ var isWsl = () => {
|
|
|
528
528
|
return true;
|
|
529
529
|
}
|
|
530
530
|
try {
|
|
531
|
-
|
|
531
|
+
if (fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft")) {
|
|
532
|
+
return !isInsideContainer();
|
|
533
|
+
}
|
|
532
534
|
} catch {
|
|
533
|
-
return false;
|
|
534
535
|
}
|
|
536
|
+
if (fs3.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop") || fs3.existsSync("/run/WSL")) {
|
|
537
|
+
return !isInsideContainer();
|
|
538
|
+
}
|
|
539
|
+
return false;
|
|
535
540
|
};
|
|
536
541
|
var is_wsl_default = process2.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
537
542
|
|
|
@@ -6417,11 +6422,12 @@ ${FLAG.data}
|
|
|
6417
6422
|
--offset <n> Row offset for list
|
|
6418
6423
|
--campaign-ids <ids> Comma-separated campaign IDs for filtered reads
|
|
6419
6424
|
--name <name> Campaign name
|
|
6420
|
-
--status <s> create: active or draft (defaults to
|
|
6425
|
+
--status <s> create: active or draft (defaults to active). update: active, paused, or archived
|
|
6421
6426
|
--budget-lifetime <n> Lifetime budget in account currency
|
|
6422
6427
|
--end-date <date> YYYY-MM-DD; required with --budget-lifetime
|
|
6423
6428
|
|
|
6424
6429
|
Notes:
|
|
6430
|
+
Creates are saved as AdKit drafts unless --publish is set. The create status controls the LinkedIn state after publishing.
|
|
6425
6431
|
This tier takes lifetime budgets only; a daily budget here returns a 500. Set daily budgets on ad-groups.
|
|
6426
6432
|
A live campaign can never go back to draft.
|
|
6427
6433
|
|
|
@@ -6452,7 +6458,7 @@ ${FLAG.data}
|
|
|
6452
6458
|
--campaign <id> Parent campaign ID (create only)
|
|
6453
6459
|
--name <name> Ad group name
|
|
6454
6460
|
--objective <type> brand_awareness, engagement, website_visits, video_views, website_conversions, lead_generation
|
|
6455
|
-
--status <s> create: active or draft (defaults to
|
|
6461
|
+
--status <s> create: active or draft (defaults to active). update: active, paused, or archived
|
|
6456
6462
|
--budget-daily <n> Daily budget in account currency
|
|
6457
6463
|
--budget-lifetime <n> Lifetime budget in account currency
|
|
6458
6464
|
--bid-strategy <s> maximum_delivery, manual, target_cost, cost_cap
|
|
@@ -6463,19 +6469,21 @@ ${FLAG.data}
|
|
|
6463
6469
|
|
|
6464
6470
|
Targeting (--data only):
|
|
6465
6471
|
targeting is nested: { geoLocations: { include: [{ type: "country", code }] }, audience: { <facet>: { include?: [ids], exclude?: [ids] } } }.
|
|
6472
|
+
Active (including omitted status) requires at least one geoLocations.include target. Use --data for active creation; named flags without targeting need --status draft.
|
|
6466
6473
|
Values are bare IDs \u2014 use "adkit manage linkedin targeting-search" to find them.
|
|
6467
6474
|
Facets: jobTitles, seniorities, jobFunctions, industries, companySizes, companies, skills, interests, customAudiences, ageRanges, genders.
|
|
6468
6475
|
ageRanges/genders are include-only (LinkedIn rejects them in exclude): ageRanges take tuples like (25,34), genders take FEMALE/MALE.
|
|
6469
6476
|
customAudiences goes inside targeting.audience (never top-level): pass the segment ID/URN. Matched Audiences are created in Campaign Manager, but you list them with "adkit manage linkedin targeting-search --facet customAudiences". Choose a language via platformOverrides.locale.
|
|
6470
6477
|
|
|
6471
6478
|
Notes:
|
|
6479
|
+
Creates are saved as AdKit drafts unless --publish is set. The create status controls the LinkedIn state after publishing.
|
|
6472
6480
|
A live ad group can never go back to draft. targeting on update is a full replace (send the whole targeting object via --data).
|
|
6473
6481
|
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.
|
|
6474
6482
|
LinkedIn further constrains bidding by objective and creative format.
|
|
6475
6483
|
|
|
6476
6484
|
Examples:
|
|
6477
|
-
adkit manage linkedin ad-groups create --campaign 628940516 --name "
|
|
6478
|
-
adkit manage linkedin ad-groups create --
|
|
6485
|
+
adkit manage linkedin ad-groups create --campaign 628940516 --name "Incomplete setup" --budget-daily 50 --objective website_visits --status draft
|
|
6486
|
+
adkit manage linkedin ad-groups create --data '{"adGroups":[{"campaignId":"628940516","name":"US Manual CPC","objective":"website_visits","bidStrategy":"manual","optimization":"clicks","bidAmount":8,"targeting":{"geoLocations":{"include":[{"type":"country","code":"103644278"}]}}}]}'
|
|
6479
6487
|
adkit manage linkedin ad-groups update 361387516 --account 512345678 --status paused
|
|
6480
6488
|
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(),
|
|
6481
6489
|
"linkedin ads": `adkit manage linkedin ads \u2014 LinkedIn ads
|
|
@@ -6495,9 +6503,10 @@ ${FLAG.data}
|
|
|
6495
6503
|
--ad-group <id> Parent ad group ID (create only)
|
|
6496
6504
|
--existing-post <urn> Reference an existing share/ugcPost URN (create only)
|
|
6497
6505
|
--name <name> Ad name
|
|
6498
|
-
--status <s> create: active or draft (defaults to
|
|
6506
|
+
--status <s> create: active or draft (defaults to active). update: active, paused, or archived
|
|
6499
6507
|
|
|
6500
6508
|
Create:
|
|
6509
|
+
Creates are saved as AdKit drafts unless --publish is set. The create status controls the LinkedIn state after publishing.
|
|
6501
6510
|
Inline ad: pass --data with a creative \u2014 keys are primaryTexts, headlines, media, url, cta. creative.media needs at least one { role: "image"|"video", id: "urn:li:image:..." } entry.
|
|
6502
6511
|
Reference ad: pass --existing-post <share/ugcPost URN>; omit creative entirely (its text/url/media are ignored).
|
|
6503
6512
|
creative.cta is the button label \u2014 one of: apply, download, view_quote, learn_more, sign_up, subscribe, register, join, attend, request_demo, see_more, buy_now, shop_now. It needs creative.url and cannot be combined with existing-post.
|
package/package.json
CHANGED