@erdoai/cli 0.109.0 → 0.109.1

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/index.js +16 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // src/ads-container.ts
4
+ function advertiserVerificationAction(container) {
5
+ const verification = container.advertiser_verification;
6
+ if (!verification || verification.action_url) return void 0;
7
+ if (verification.status === "check_in_google_ads") {
8
+ return `Google cannot expose advertiser verification for card-billed account ${container.customer_id} through the API. Open Billing \u2192 Advertiser verification in Google Ads to check its status, and complete verification there only if Google shows it is pending.`;
9
+ }
10
+ if (verification.status === "PENDING_USER_ACTION" || verification.status === "FAILURE") {
11
+ return `Google shows no business name or logo on ${container.customer_id}'s ads until the advertiser is verified. Get a link with: erdo org managed ads-container ${container.org_slug} --provision --start-verification`;
12
+ }
13
+ return void 0;
14
+ }
15
+
3
16
  // src/refresh.ts
4
17
  function describeRefreshTrigger(state) {
5
18
  if (state.disarmed) return "disarmed \u2014 the experiment has settled";
@@ -2724,12 +2737,9 @@ function printAdsContainer(c) {
2724
2737
  console.log(`advertiser verification: ${v.status}`);
2725
2738
  if (v.action_url) console.log(`verification link: ${v.action_url}`);
2726
2739
  if (v.completion_deadline) console.log(`verification deadline: ${v.completion_deadline}`);
2727
- if ((v.status === "PENDING_USER_ACTION" || v.status === "FAILURE") && !v.action_url) {
2728
- process.stderr.write(
2729
- `Google shows no business name or logo on ${c.customer_id}'s ads until the advertiser is verified. Get a link with: erdo org managed ads-container ${c.org_slug} --provision --start-verification
2730
- `
2731
- );
2732
- }
2740
+ const action = advertiserVerificationAction(c);
2741
+ if (action) process.stderr.write(`${action}
2742
+ `);
2733
2743
  }
2734
2744
  }
2735
2745
  managed.command("ads-container <orgSlug>").description(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.109.0",
3
+ "version": "0.109.1",
4
4
  "description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {