title: google email audit api
body: <p>I am writing a program to download users mailbox from admin account. </p>
  
  <p>For this I referred <a href="https://developers.google.com/admin-sdk/email-audit/" rel="nofollow">https://developers.google.com/admin-sdk/email-audit/</a> </p>
  
  <p>In the given code, an AuditService method is used as below:</p>
  
  <pre><code>AuditService service1 = new AuditService("*****", "*****", "*******", **"example.com-auditapp-v1"**);
      GenericEntry mailboxDumpEntry = service1.createMailboxDumpRequest(request);
  
      String requestId = ((MailBoxDumpRequest) mailboxDumpEntry).getRequestId();
      String status = mailboxDumpEntry.getStatus();
      String numberOfFiles = mailboxDumpEntry.getNumberOfFiles();
  </code></pre>
  
  <p>In this code, for AuditService method, I'm not getting from where to generate 4th parameter- the application id.</p>
  
  <p>Also, I'm getting errors for <code>getRequestId()</code>, <code>getStatus()</code> and <code>getNumberOfFiles()</code> as method not found.</p>
  
  <p>Can someone please help to sort out both queries.</p>