title: Cannot publish Editor addon on google workspace marketplace -Menu options not shown after App is installed. Please ensure that the add-on correctly
body: <p>I try to publish an Editor Add-on for Google Sheet into the workspace marketplace.
  But I'm struck on the review.<br />
  With this message :</p>
  <blockquote>
  <p>The App doesn’t meet the publishing review criteria on the following:
  Menu - Menu options not shown after App is installed. Please ensure that the add-on correctly uses onInstall() and onOpen() to populate its menu. The menu items populate when the add-on is first installed and when a different file is opened. See Editor add-on authorization.</p>
  </blockquote>
  <p>My app does not have a menu, so I was thinking I must add one, in my index function.<br />
  Failed with same message.<br />
  So I add an onOpen(e) and onInstall(e) functions like the documentations.
  And the review failed too.</p>
  <p>So I don't know what to do.</p>
  <p>My app is writed in AppScript</p>
  <p>Here some code:</p>
  <pre><code>function menuItem1() {
    SpreadsheetApp.getUi() /
       .alert('You can contact me at ...');
  }
  
  function onInstall(e) {
    onOpen(e);
  }
  function onOpen(e) {
    SpreadsheetApp.getUi().createAddonMenu() 
        .addItem('Contact', 'menuItem1')
        .addToUi();
  }
  
  
  function index(isConnected = false) {
    var divider = CardService.newDivider();
   .....
  </code></pre>
  <p>And here my appscript.json</p>
  <pre><code>{
    &quot;timeZone&quot;: &quot;Europe/Paris&quot;,
    &quot;exceptionLogging&quot;: &quot;STACKDRIVER&quot;,
    &quot;runtimeVersion&quot;: &quot;V8&quot;,
    &quot;oauthScopes&quot;: [
      &quot;https://www.googleapis.com/auth/script.locale&quot;,
      &quot;https://www.googleapis.com/auth/spreadsheets&quot;,
      &quot;https://www.googleapis.com/auth/userinfo.email&quot;,
      &quot;https://www.googleapis.com/auth/script.external_request&quot;
    ],
    &quot;urlFetchWhitelist&quot;: [
      &quot;myapi&quot;
    ],
    &quot;addOns&quot;: {
      &quot;common&quot;: {
        &quot;homepageTrigger&quot;: {
          &quot;runFunction&quot;: &quot;index&quot;,
          &quot;enabled&quot;: true
        },
        &quot;logoUrl&quot;: &quot;urltomylogo&quot;,
        &quot;name&quot;: &quot;Name of my app&quot;,
        &quot;useLocaleFromApp&quot;: true
      },
      &quot;sheets&quot;: {}
    }
  }
  </code></pre>
  <p>My app has successfully passed the oAuth verificaton by Google.
  And now I'm stuck on the publishing</p>
  <p>Help is appreciated,<br />
  Thx</p>
  <p><strong>Edit - Solution.</strong>
  Indeed, the addon was on Editor add-on mode, I switched it to Google Workspace Addon and it worked.
  Thx</p>