@adkit/cli 1.12.17 → 1.12.19
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 +54 -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", "resource", "campaign", "ad-group"];
|
|
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,18 @@ 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 resource = typeof flags.resource === "string" ? flags.resource : void 0;
|
|
2674
|
+
const campaignId = typeof flags.campaign === "string" ? flags.campaign : void 0;
|
|
2675
|
+
const adGroupId = typeof flags["ad-group"] === "string" ? flags["ad-group"] : void 0;
|
|
2676
|
+
const qs = buildGoogleListQuery(flags, { period, from, to, resource, campaignId, adGroupId });
|
|
2677
|
+
const path3 = `/manage/google/change-history${qs}`;
|
|
2678
|
+
return client.get(path3);
|
|
2679
|
+
}
|
|
2667
2680
|
async function listGoogleKeywordResults(client, _args, flags) {
|
|
2668
2681
|
validateFlags(flags, GOOGLE_KEYWORD_RESULTS_FLAGS, "manage google results keywords");
|
|
2669
2682
|
const accountId = typeof flags.account === "string" ? flags.account : void 0;
|
|
@@ -5114,6 +5127,37 @@ Examples:
|
|
|
5114
5127
|
adkit manage google results --period this_month --sort clicks --limit 20
|
|
5115
5128
|
adkit manage google results search-terms --campaign 123 --period 30d
|
|
5116
5129
|
adkit manage google results --campaign 123 --fields all`;
|
|
5130
|
+
var GOOGLE_CHANGE_HISTORY_HELP = `adkit manage google change-history \u2014 recent Google Ads account changes
|
|
5131
|
+
|
|
5132
|
+
Read-only audit log of who changed what and when (campaigns, budgets, ad
|
|
5133
|
+
groups, ads, keywords, etc.). Google only keeps the last 30 days.
|
|
5134
|
+
|
|
5135
|
+
list Recent changes as compact diffs (default action)
|
|
5136
|
+
|
|
5137
|
+
Flags:
|
|
5138
|
+
--account <id> Optional if one Google Ads account is connected
|
|
5139
|
+
--period <period> Date range (7d, 14d, 30d, this_month, maximum, etc. Default: 7d, max 30d back)
|
|
5140
|
+
--from <date> Start date (YYYY-MM-DD, requires --to). Window must be <= 30 days and within the last 30 days.
|
|
5141
|
+
--to <date> End date (YYYY-MM-DD, requires --from)
|
|
5142
|
+
--limit <n> Max changes (default: 50, max: 10000)
|
|
5143
|
+
--resource <type> campaign | ad-group | ad | keyword
|
|
5144
|
+
--campaign <id> Filter to changes affecting one campaign
|
|
5145
|
+
--ad-group <id> Filter to changes affecting one ad group
|
|
5146
|
+
|
|
5147
|
+
Each record:
|
|
5148
|
+
time, resourceType, resourceName, operation (create | update | remove),
|
|
5149
|
+
changedBy, clientType, changes: [{ field, oldValue, newValue }]
|
|
5150
|
+
create shows only newValue; update shows old + new; remove has no field changes.
|
|
5151
|
+
|
|
5152
|
+
Note:
|
|
5153
|
+
Hard 30-day cap \u2014 a range that starts more than 30 days ago returns an error.
|
|
5154
|
+
|
|
5155
|
+
Examples:
|
|
5156
|
+
adkit manage google change-history list --period 7d
|
|
5157
|
+
adkit manage google change-history list --period 7d --resource campaign
|
|
5158
|
+
adkit manage google change-history list --period 7d --campaign 123456789
|
|
5159
|
+
adkit manage google change-history list --period 30d --limit 200
|
|
5160
|
+
adkit manage google change-history list --from 2026-06-01 --to 2026-06-15`;
|
|
5117
5161
|
var GOOGLE_RESULTS_PLACEMENTS_HELP = `adkit manage google results placements \u2014 Google placement report
|
|
5118
5162
|
|
|
5119
5163
|
Shows each website, app, or YouTube placement where ads appeared.
|
|
@@ -5299,6 +5343,7 @@ Examples:
|
|
|
5299
5343
|
"google results placements": GOOGLE_RESULTS_PLACEMENTS_HELP,
|
|
5300
5344
|
"google results search-terms": GOOGLE_KEYWORD_SEARCH_TERMS_HELP,
|
|
5301
5345
|
"google results keywords": GOOGLE_RESULTS_KEYWORDS_HELP,
|
|
5346
|
+
"google change-history": GOOGLE_CHANGE_HISTORY_HELP,
|
|
5302
5347
|
"google research": GOOGLE_RESEARCH_HELP,
|
|
5303
5348
|
"google media": GOOGLE_MEDIA_HELP,
|
|
5304
5349
|
"tiktok accounts": `adkit manage tiktok accounts \u2014 TikTok Ads accounts
|
|
@@ -5543,6 +5588,7 @@ Entity groups:
|
|
|
5543
5588
|
keywords Manage keywords and negatives \u2014 config only, not metrics
|
|
5544
5589
|
keywords negative-lists Shared negative keyword lists (create, attach to campaigns)
|
|
5545
5590
|
results Performance metrics (campaigns, ad-groups, ads, keywords, search-terms)
|
|
5591
|
+
change-history Recent Google Ads account changes from the last 30 days
|
|
5546
5592
|
research Keyword Planner plus Display topic/interest IDs
|
|
5547
5593
|
assets Manage reusable assets (sitelinks, callouts, structured snippets, images)
|
|
5548
5594
|
media Upload images for Display creative media
|
|
@@ -5834,6 +5880,7 @@ var HELP_FULL = {
|
|
|
5834
5880
|
"google results placements": GOOGLE_RESULTS_PLACEMENTS_HELP,
|
|
5835
5881
|
"google results search-terms": GOOGLE_KEYWORD_SEARCH_TERMS_HELP_FULL,
|
|
5836
5882
|
"google results keywords": GOOGLE_RESULTS_KEYWORDS_HELP,
|
|
5883
|
+
"google change-history": GOOGLE_CHANGE_HISTORY_HELP,
|
|
5837
5884
|
"google research": GOOGLE_RESEARCH_HELP,
|
|
5838
5885
|
"google media": GOOGLE_MEDIA_HELP,
|
|
5839
5886
|
"meta research": META_RESEARCH_HELP,
|
|
@@ -7152,6 +7199,12 @@ async function main() {
|
|
|
7152
7199
|
else data = await listGoogleResults(client, restArgs, flags);
|
|
7153
7200
|
break;
|
|
7154
7201
|
}
|
|
7202
|
+
case "change-history": {
|
|
7203
|
+
if (action && action !== "list") throw new CliError("UNKNOWN_COMMAND", `Unknown action: google change-history ${action}`, "Available: list");
|
|
7204
|
+
data = await listGoogleChangeHistory(client, restArgs, flags);
|
|
7205
|
+
emptyHint = "No changes found in the selected window. Try a wider --period (max 30d).";
|
|
7206
|
+
break;
|
|
7207
|
+
}
|
|
7155
7208
|
case "research": {
|
|
7156
7209
|
switch (action) {
|
|
7157
7210
|
case "keywords":
|
|
@@ -7172,7 +7225,7 @@ async function main() {
|
|
|
7172
7225
|
break;
|
|
7173
7226
|
}
|
|
7174
7227
|
default:
|
|
7175
|
-
throw new CliError("UNKNOWN_COMMAND", `Unknown entity: google ${entity}`, "Available: accounts, assets, media, campaigns, ad-groups, ads, keywords, results, research");
|
|
7228
|
+
throw new CliError("UNKNOWN_COMMAND", `Unknown entity: google ${entity}`, "Available: accounts, assets, media, campaigns, ad-groups, ads, keywords, results, change-history, research");
|
|
7176
7229
|
}
|
|
7177
7230
|
} else if (platform2 === "tiktok") {
|
|
7178
7231
|
switch (entity) {
|
package/package.json
CHANGED