@adkit/cli 1.13.15 → 1.13.17

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 +13 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1003,9 +1003,14 @@ async function login({ baseUrl, scope }) {
1003
1003
  const spinner = createSpinner();
1004
1004
  spinner.start("Connecting to AdKit...");
1005
1005
  const session = await createSetupSession(baseUrl, scope);
1006
- await open_default(session.sessionUrl);
1007
- spinner.stop("\u2713 Browser opened \u2014 complete setup there");
1006
+ spinner.stop("Open this URL to complete setup:");
1008
1007
  console.log(` \x1B[2m${session.sessionUrl}\x1B[0m`);
1008
+ try {
1009
+ await open_default(session.sessionUrl);
1010
+ console.log("\u2713 Browser opened automatically");
1011
+ } catch {
1012
+ console.log("Could not open a browser automatically \u2014 use the URL above.");
1013
+ }
1009
1014
  spinner.start("Waiting for setup to complete...");
1010
1015
  const setup = await waitForSetupConfig(baseUrl, session.sessionId);
1011
1016
  spinner.stop();
@@ -5312,7 +5317,8 @@ Flags (list):
5312
5317
 
5313
5318
  Note:
5314
5319
  list returns campaign configuration only (name, status, budget).
5315
- Geo targeting lives in targeting.geoLocations. Use type=country for countries.
5320
+ Geo targeting lives in targeting.geoLocations. For countries, use {"type":"country","country":"US"}.
5321
+ Use --data to set match to "presence" or "presence_or_interest". AdKit uses presence on create; on update, omit match to keep the live value.
5316
5322
  For cities, regions, postal codes, and metros, run google geo-locations search and use the returned bare code.
5317
5323
  Advanced geo examples: adkit manage google campaigns --help full
5318
5324
  Display creation starts here: campaigns create --campaign-type display, then create Display ad groups and responsive_display ads.
@@ -5324,6 +5330,7 @@ Examples:
5324
5330
  adkit manage google campaigns list --account 1234567890
5325
5331
  adkit manage google campaigns create --name "Display Prospecting" --campaign-type display --budget-daily 50 --account 1234567890
5326
5332
  adkit manage google campaigns create --data '{"campaigns":[{"name":"Display US","campaignType":"display","budget":{"daily":50},"targeting":{"geoLocations":{"include":[{"type":"country","country":"US"}]}}}]}' --account 1234567890
5333
+ adkit manage google campaigns update 987654321 --data '{"targeting":{"geoLocations":{"match":"presence_or_interest"}}}' --account 1234567890
5327
5334
  adkit manage google campaigns update 987654321 --status paused --account 1234567890
5328
5335
  adkit manage google campaigns delete 987654321 --account 1234567890
5329
5336
 
@@ -5364,7 +5371,8 @@ Flags (list):
5364
5371
  Notes:
5365
5372
  Use google assets for explicit account/campaign/ad-group attachment, reusable libraries, or richer sitelinks via --data.
5366
5373
  list returns campaign configuration only (name, status, budget).
5367
- Geo targeting lives in targeting.geoLocations. Use type=country for countries and copy named locations from google geo-locations search.
5374
+ Geo targeting lives in targeting.geoLocations. For countries, use {"type":"country","country":"US"}.
5375
+ Use --data to set match to "presence" or "presence_or_interest". AdKit uses presence on create; on update, match alone changes matching without replacing locations and omission keeps the live value.
5368
5376
  platformLocation accepts exact Google geo objects for advanced criteria and existing raw values.
5369
5377
  Google exclusions support named locations. Proximity circles belong in include.
5370
5378
  Display campaign creation uses campaignType:"display" or --campaign-type display. Videos are not supported for Display media in v1.
@@ -5380,6 +5388,7 @@ Examples:
5380
5388
  adkit manage google campaigns create --data '{"campaigns":[{"name":"SF Radius","campaignType":"search","budget":{"daily":5},"targeting":{"geoLocations":{"include":[{"type":"platformLocation","platform":"google","value":{"proximity":{"geo_point":{"latitude_in_micro_degrees":37774900,"longitude_in_micro_degrees":-122419400},"radius":5,"radius_units":"MILES"}}}]}}}]}' --account 1234567890
5381
5389
  adkit manage google campaigns create --data '{"campaigns":[{"name":"PMAX Launch","campaignType":"performance_max","budget":{"daily":50},"bidStrategy":"maximize_conversions","assetGroups":[{"name":"Asset Group 1","finalUrls":["https://example.com"],"assets":[{"role":"headline","text":"Ship faster"},{"role":"headline","text":"Save hours every week"},{"role":"headline","text":"Start free today"},{"role":"long_headline","text":"Automate your ad workflow and launch in minutes"},{"role":"description","text":"Automate your workflow in minutes"},{"role":"description","text":"No credit card required"},{"role":"business_name","text":"Acme"},{"role":"logo","id":"<uploaded-asset-id>"},{"role":"marketing_image","id":"<uploaded-asset-id>"},{"role":"square_marketing_image","id":"<uploaded-asset-id>"}],"signals":[{"type":"search_theme","text":"project management software"}]}]}]}' --account 1234567890
5382
5390
  adkit manage google campaigns update 987654321 --status paused --account 1234567890
5391
+ adkit manage google campaigns update 987654321 --data '{"targeting":{"geoLocations":{"match":"presence_or_interest"}}}' --account 1234567890
5383
5392
  adkit manage google campaigns delete 987654321 --account 1234567890 --publish`;
5384
5393
  var GOOGLE_AD_GROUP_HELP = `adkit manage google ad-groups \u2014 Google Ads ad groups
5385
5394
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adkit/cli",
3
- "version": "1.13.15",
3
+ "version": "1.13.17",
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",