@adkit/cli 1.12.14 → 1.12.16
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 +14 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1818,7 +1818,7 @@ var CAMPAIGN_LIST_FLAGS = ["status", "limit", "offset"];
|
|
|
1818
1818
|
var CAMPAIGN_FLAGS2 = ["name", "status", "budget-daily", "campaign-type", "bid-strategy", "search-partners", "display-network", "tracking-url-suffix", "countries"];
|
|
1819
1819
|
var AD_GROUP_LIST_FLAGS = ["campaign", "status", "limit", "offset"];
|
|
1820
1820
|
var AD_GROUP_FLAGS = ["campaign", "name", "status", "cpc-bid"];
|
|
1821
|
-
var AD_LIST_FLAGS = ["ad-group", "status", "limit", "offset"];
|
|
1821
|
+
var AD_LIST_FLAGS = ["ad-group", "status", "policy-status", "limit", "offset"];
|
|
1822
1822
|
var AD_FLAGS2 = ["headline", "headline-1", "headline-2", "headline-3", "description", "description-1", "description-2", "callout", "sitelink", "final-url", "path", "ad-group", "status"];
|
|
1823
1823
|
var KEYWORD_LIST_FLAGS = ["ad-group", "campaign", "status", "limit", "offset"];
|
|
1824
1824
|
var KEYWORD_FLAGS = ["ad-group", "text", "match-type", "cpc-bid", "status"];
|
|
@@ -1860,10 +1860,11 @@ function resolveGoogleAdGroupId(body, flags) {
|
|
|
1860
1860
|
function buildGoogleListQuery(flags, extra = {}) {
|
|
1861
1861
|
const accountId = typeof flags.account === "string" ? flags.account : void 0;
|
|
1862
1862
|
const status2 = typeof flags.status === "string" ? flags.status : void 0;
|
|
1863
|
+
const policyStatus = typeof flags["policy-status"] === "string" ? flags["policy-status"] : void 0;
|
|
1863
1864
|
const limit = typeof flags.limit === "string" ? flags.limit : void 0;
|
|
1864
1865
|
const offset = typeof flags.offset === "string" ? flags.offset : void 0;
|
|
1865
1866
|
const raw = flags.raw === true ? "true" : void 0;
|
|
1866
|
-
return queryString({ accountId, status: status2, limit, offset, raw, ...extra });
|
|
1867
|
+
return queryString({ accountId, status: status2, policyStatus, limit, offset, raw, ...extra });
|
|
1867
1868
|
}
|
|
1868
1869
|
function buildGoogleMutationQuery(flags, body, extra = {}) {
|
|
1869
1870
|
const accountId = resolveGoogleAccountId(body, flags);
|
|
@@ -3668,6 +3669,7 @@ function toGoogleAdDisplayRow(ad) {
|
|
|
3668
3669
|
ID: ad.platformId ?? "-",
|
|
3669
3670
|
"AD GROUP": ad.adGroupId ?? "-",
|
|
3670
3671
|
STATUS: ad.status ?? "-",
|
|
3672
|
+
POLICY: ad.policyStatus ?? "-",
|
|
3671
3673
|
HEADLINES: formatGoogleAssetsForCli(ad.headlines, "headline"),
|
|
3672
3674
|
DESCRIPTIONS: formatGoogleAssetsForCli(ad.descriptions, "description"),
|
|
3673
3675
|
URLS: Array.isArray(ad.finalUrls) && ad.finalUrls.length > 0 ? ad.finalUrls.join(" | ") : "-"
|
|
@@ -3684,7 +3686,7 @@ function normalizeGoogleCliPath(path3) {
|
|
|
3684
3686
|
return void 0;
|
|
3685
3687
|
}
|
|
3686
3688
|
function toGoogleAdDetailLines(ad) {
|
|
3687
|
-
const metadataLines = [` Ad ID: ${String(ad.platformId ?? "-")}`, ` Ad Group: ${String(ad.adGroupId ?? "-")}`, ` Status: ${ad.status ?? "-"}`];
|
|
3689
|
+
const metadataLines = [` Ad ID: ${String(ad.platformId ?? "-")}`, ` Ad Group: ${String(ad.adGroupId ?? "-")}`, ` Status: ${ad.status ?? "-"}`, ` Policy: ${ad.policyStatus ?? "-"}`];
|
|
3688
3690
|
const lines = ["", ...metadataLines];
|
|
3689
3691
|
const headlines = formatGoogleAssetsForCli(ad.headlines, "headline");
|
|
3690
3692
|
const descriptions = formatGoogleAssetsForCli(ad.descriptions, "description");
|
|
@@ -4804,6 +4806,7 @@ Flags (create/update):
|
|
|
4804
4806
|
Flags (list):
|
|
4805
4807
|
--ad-group <id> Filter by Google ad group ID (platformId)
|
|
4806
4808
|
--status <s> Filter by ad status (default: enabled,paused; use all for every status)
|
|
4809
|
+
--policy-status <s> Filter by policy status: approved, limited, disapproved, problem, pending_review, under_appeal
|
|
4807
4810
|
--limit <n> Max results
|
|
4808
4811
|
--offset <n> Pagination offset
|
|
4809
4812
|
|
|
@@ -4815,6 +4818,7 @@ Notes:
|
|
|
4815
4818
|
Upload images first with google media upload, then use returned Google asset id/resourceName in media[].id.
|
|
4816
4819
|
Display videos are not supported in v1.
|
|
4817
4820
|
Display support is in beta \u2014 some features may not be available yet. Report issues with: adkit feedback "description" --type bug
|
|
4821
|
+
list/get return policyStatus when Google returns policy review data. policyIssues appears only for blocked/limited/review ads or when filtering by --policy-status.
|
|
4818
4822
|
Ad-level callout/sitelink input is an AdKit convenience layer. On publish, AdKit creates or reuses reusable Google assets, then attaches them at ad-group scope.
|
|
4819
4823
|
That means sibling ads in the same ad group may also use those assets. Use google assets if you need explicit scope control or richer sitelink payloads.
|
|
4820
4824
|
|
|
@@ -4856,6 +4860,7 @@ ${FLAG.data}
|
|
|
4856
4860
|
Flags (list):
|
|
4857
4861
|
--ad-group <id> Filter by Google ad group ID (platformId)
|
|
4858
4862
|
--status <s> Filter by ad status (default: enabled,paused; use all for every status)
|
|
4863
|
+
--policy-status <s> Filter by policy status: approved, limited, disapproved, problem, pending_review, under_appeal
|
|
4859
4864
|
--limit <n> Max results
|
|
4860
4865
|
--offset <n> Pagination offset
|
|
4861
4866
|
|
|
@@ -4868,6 +4873,7 @@ Notes:
|
|
|
4868
4873
|
Media refs are existing Google image asset IDs/resourceNames returned by google media upload.
|
|
4869
4874
|
Display videos are not supported in v1.
|
|
4870
4875
|
Display support is in beta \u2014 some features may not be available yet. Report issues with: adkit feedback "description" --type bug
|
|
4876
|
+
list/get return policyStatus when Google returns policy review data. policyIssues appears only for blocked/limited/review ads or when filtering by --policy-status.
|
|
4871
4877
|
Ad-level callout/sitelink input is stored on the ad draft, but Google serves these assets at ad-group scope. AdKit resolves, de-duplicates, and attaches them there on publish.
|
|
4872
4878
|
Use google assets for explicit scope control, reusable libraries, account/campaign-level associations, or richer sitelink payloads via --data.
|
|
4873
4879
|
Path format: pass one string like "crm" or "crm/demo". AdKit normalizes extra slashes, and each segment must stay within Google's 15-character limit.
|
|
@@ -5043,7 +5049,7 @@ Flags:
|
|
|
5043
5049
|
--sort <field> Sort by: cost, clicks, impressions, conversions (default: cost)
|
|
5044
5050
|
--limit <n> Max results
|
|
5045
5051
|
--status <s> Filter: enabled, paused, all
|
|
5046
|
-
--breakdown <b> Split rows by: day, device, network.
|
|
5052
|
+
--breakdown <b> Split rows by: day, device, network, hour, geo. Hour/geo support account, campaigns, ad-groups.
|
|
5047
5053
|
--fields <list> Response fields, e.g. cost,clicks,searchImpressionShare. Omit for default advertiser metrics; use all for every supported field.
|
|
5048
5054
|
--raw Return raw Google API response
|
|
5049
5055
|
--account <id> Optional if one Google Ads account is connected
|
|
@@ -5056,7 +5062,8 @@ Visibility fields:
|
|
|
5056
5062
|
Search: searchImpressionShare, searchRankLostImpressionShare, searchBudgetLostImpressionShare,
|
|
5057
5063
|
searchTopImpressionShare, searchAbsoluteTopImpressionShare, searchClickShare (default where supported)
|
|
5058
5064
|
Content: contentImpressionShare, contentRankLostImpressionShare, contentBudgetLostImpressionShare (use --fields all)
|
|
5059
|
-
Note: search fields available at all levels except ads
|
|
5065
|
+
Note: search fields available at all levels except ads, but searchBudgetLostImpressionShare is not available for keywords.
|
|
5066
|
+
Content fields not available at keywords or ads.
|
|
5060
5067
|
|
|
5061
5068
|
Examples:
|
|
5062
5069
|
adkit manage google results
|
|
@@ -5067,6 +5074,8 @@ Examples:
|
|
|
5067
5074
|
adkit manage google results --campaign 123 --period 7d
|
|
5068
5075
|
adkit manage google results --campaign 123 --period 7d --breakdown day
|
|
5069
5076
|
adkit manage google results --campaign 123 --period 7d --breakdown device
|
|
5077
|
+
adkit manage google results campaigns --period 7d --breakdown hour
|
|
5078
|
+
adkit manage google results campaigns --period 30d --breakdown geo
|
|
5070
5079
|
adkit manage google results placements --campaign 123 --period 30d
|
|
5071
5080
|
adkit manage google results --period this_month --sort clicks --limit 20
|
|
5072
5081
|
adkit manage google results search-terms --campaign 123 --period 30d
|
package/package.json
CHANGED