@adkit/cli 1.12.17 → 1.12.18
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 +46 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1833,6 +1833,7 @@ var SEARCH_TERMS_FLAGS = ["campaign", "ad-group", "keyword", "keyword-match-type
|
|
|
1833
1833
|
var PLACEMENT_REPORT_FLAGS = ["campaign", "ad-group", "period", "from", "to", "sort", "limit", "raw"];
|
|
1834
1834
|
var GOOGLE_RESULTS_FLAGS = ["campaign", "ad-group", "period", "from", "to", "sort", "limit", "status", "breakdown", "fields", "raw"];
|
|
1835
1835
|
var GOOGLE_KEYWORD_RESULTS_FLAGS = ["campaign", "ad-group", "period", "from", "to", "sort", "limit", "status", "fields", "raw"];
|
|
1836
|
+
var CHANGE_HISTORY_FLAGS = ["account", "period", "from", "to", "limit"];
|
|
1836
1837
|
var KEYWORD_RESEARCH_FLAGS = ["url", "location", "language", "limit", "min-volume"];
|
|
1837
1838
|
var TARGETING_RESEARCH_FLAGS = ["limit"];
|
|
1838
1839
|
function generateCampaignName2() {
|
|
@@ -2664,6 +2665,15 @@ async function listGooglePlacements(client, _args, flags) {
|
|
|
2664
2665
|
const qs = buildPlacementReportQuery(flags);
|
|
2665
2666
|
return client.get(`/manage/google/results/placements${qs}`);
|
|
2666
2667
|
}
|
|
2668
|
+
async function listGoogleChangeHistory(client, _args, flags) {
|
|
2669
|
+
validateFlags(flags, CHANGE_HISTORY_FLAGS, "manage google change-history list");
|
|
2670
|
+
const period = typeof flags.period === "string" ? flags.period : void 0;
|
|
2671
|
+
const from = typeof flags.from === "string" ? flags.from : void 0;
|
|
2672
|
+
const to = typeof flags.to === "string" ? flags.to : void 0;
|
|
2673
|
+
const qs = buildGoogleListQuery(flags, { period, from, to });
|
|
2674
|
+
const path3 = `/manage/google/change-history${qs}`;
|
|
2675
|
+
return client.get(path3);
|
|
2676
|
+
}
|
|
2667
2677
|
async function listGoogleKeywordResults(client, _args, flags) {
|
|
2668
2678
|
validateFlags(flags, GOOGLE_KEYWORD_RESULTS_FLAGS, "manage google results keywords");
|
|
2669
2679
|
const accountId = typeof flags.account === "string" ? flags.account : void 0;
|
|
@@ -5114,6 +5124,32 @@ Examples:
|
|
|
5114
5124
|
adkit manage google results --period this_month --sort clicks --limit 20
|
|
5115
5125
|
adkit manage google results search-terms --campaign 123 --period 30d
|
|
5116
5126
|
adkit manage google results --campaign 123 --fields all`;
|
|
5127
|
+
var GOOGLE_CHANGE_HISTORY_HELP = `adkit manage google change-history \u2014 recent Google Ads account changes
|
|
5128
|
+
|
|
5129
|
+
Read-only audit log of who changed what and when (campaigns, budgets, ad
|
|
5130
|
+
groups, ads, keywords, etc.). Google only keeps the last 30 days.
|
|
5131
|
+
|
|
5132
|
+
list Recent changes as compact diffs (default action)
|
|
5133
|
+
|
|
5134
|
+
Flags:
|
|
5135
|
+
--account <id> Optional if one Google Ads account is connected
|
|
5136
|
+
--period <period> Date range (7d, 14d, 30d, this_month, maximum, etc. Default: 7d, max 30d back)
|
|
5137
|
+
--from <date> Start date (YYYY-MM-DD, requires --to). Window must be <= 30 days and within the last 30 days.
|
|
5138
|
+
--to <date> End date (YYYY-MM-DD, requires --from)
|
|
5139
|
+
--limit <n> Max changes (default: 50, max: 10000)
|
|
5140
|
+
|
|
5141
|
+
Each record:
|
|
5142
|
+
time, resourceType, resourceName, operation (create | update | remove),
|
|
5143
|
+
changedBy, clientType, changes: [{ field, oldValue, newValue }]
|
|
5144
|
+
create shows only newValue; update shows old + new; remove has no field changes.
|
|
5145
|
+
|
|
5146
|
+
Note:
|
|
5147
|
+
Hard 30-day cap \u2014 a range that starts more than 30 days ago returns an error.
|
|
5148
|
+
|
|
5149
|
+
Examples:
|
|
5150
|
+
adkit manage google change-history list --period 7d
|
|
5151
|
+
adkit manage google change-history list --period 30d --limit 200
|
|
5152
|
+
adkit manage google change-history list --from 2026-06-01 --to 2026-06-15`;
|
|
5117
5153
|
var GOOGLE_RESULTS_PLACEMENTS_HELP = `adkit manage google results placements \u2014 Google placement report
|
|
5118
5154
|
|
|
5119
5155
|
Shows each website, app, or YouTube placement where ads appeared.
|
|
@@ -5299,6 +5335,7 @@ Examples:
|
|
|
5299
5335
|
"google results placements": GOOGLE_RESULTS_PLACEMENTS_HELP,
|
|
5300
5336
|
"google results search-terms": GOOGLE_KEYWORD_SEARCH_TERMS_HELP,
|
|
5301
5337
|
"google results keywords": GOOGLE_RESULTS_KEYWORDS_HELP,
|
|
5338
|
+
"google change-history": GOOGLE_CHANGE_HISTORY_HELP,
|
|
5302
5339
|
"google research": GOOGLE_RESEARCH_HELP,
|
|
5303
5340
|
"google media": GOOGLE_MEDIA_HELP,
|
|
5304
5341
|
"tiktok accounts": `adkit manage tiktok accounts \u2014 TikTok Ads accounts
|
|
@@ -5543,6 +5580,7 @@ Entity groups:
|
|
|
5543
5580
|
keywords Manage keywords and negatives \u2014 config only, not metrics
|
|
5544
5581
|
keywords negative-lists Shared negative keyword lists (create, attach to campaigns)
|
|
5545
5582
|
results Performance metrics (campaigns, ad-groups, ads, keywords, search-terms)
|
|
5583
|
+
change-history Recent Google Ads account changes from the last 30 days
|
|
5546
5584
|
research Keyword Planner plus Display topic/interest IDs
|
|
5547
5585
|
assets Manage reusable assets (sitelinks, callouts, structured snippets, images)
|
|
5548
5586
|
media Upload images for Display creative media
|
|
@@ -5834,6 +5872,7 @@ var HELP_FULL = {
|
|
|
5834
5872
|
"google results placements": GOOGLE_RESULTS_PLACEMENTS_HELP,
|
|
5835
5873
|
"google results search-terms": GOOGLE_KEYWORD_SEARCH_TERMS_HELP_FULL,
|
|
5836
5874
|
"google results keywords": GOOGLE_RESULTS_KEYWORDS_HELP,
|
|
5875
|
+
"google change-history": GOOGLE_CHANGE_HISTORY_HELP,
|
|
5837
5876
|
"google research": GOOGLE_RESEARCH_HELP,
|
|
5838
5877
|
"google media": GOOGLE_MEDIA_HELP,
|
|
5839
5878
|
"meta research": META_RESEARCH_HELP,
|
|
@@ -7152,6 +7191,12 @@ async function main() {
|
|
|
7152
7191
|
else data = await listGoogleResults(client, restArgs, flags);
|
|
7153
7192
|
break;
|
|
7154
7193
|
}
|
|
7194
|
+
case "change-history": {
|
|
7195
|
+
if (action && action !== "list") throw new CliError("UNKNOWN_COMMAND", `Unknown action: google change-history ${action}`, "Available: list");
|
|
7196
|
+
data = await listGoogleChangeHistory(client, restArgs, flags);
|
|
7197
|
+
emptyHint = "No changes found in the selected window. Try a wider --period (max 30d).";
|
|
7198
|
+
break;
|
|
7199
|
+
}
|
|
7155
7200
|
case "research": {
|
|
7156
7201
|
switch (action) {
|
|
7157
7202
|
case "keywords":
|
|
@@ -7172,7 +7217,7 @@ async function main() {
|
|
|
7172
7217
|
break;
|
|
7173
7218
|
}
|
|
7174
7219
|
default:
|
|
7175
|
-
throw new CliError("UNKNOWN_COMMAND", `Unknown entity: google ${entity}`, "Available: accounts, assets, media, campaigns, ad-groups, ads, keywords, results, research");
|
|
7220
|
+
throw new CliError("UNKNOWN_COMMAND", `Unknown entity: google ${entity}`, "Available: accounts, assets, media, campaigns, ad-groups, ads, keywords, results, change-history, research");
|
|
7176
7221
|
}
|
|
7177
7222
|
} else if (platform2 === "tiktok") {
|
|
7178
7223
|
switch (entity) {
|
package/package.json
CHANGED