Batch Gmail Account Creator

Complete the steps described in the rest of this page to create a simpleGoogle Apps Script that makes requests to the Gmail API.

Gmail

Prerequisites

Download the template file: Sign in to your Google Admin console. Sign in using your administrator. Mass Gmail Account Creator free download - Mass Downloader, The Creator, DeskPDF Creator, and many more programs.

To run this quickstart, you need the following prerequisites:

  • A Google account with Gmail enabled
  • Access to Google Drive
  • Step 1: Create the script

    1. Create a new script by going to script.google.com/create.
    2. Replace the contents of the script editor with the following code:
    Creator

    New editor

    1. Click Save .
    2. Click Untitled project at the top left, type Quickstart, and click Rename.

    Legacy editor

    1. Click File > Save,name your project “Quickstart”, and click OK.

    Step 2: Turn on the Gmail API

    Enable the Gmail API advanced service in your script.

    Step 3: Run the sample

    New editor

    In the Apps Script editor, click Run.

    The first time you run the sample, it will prompt you to authorize access:

    1. Click Review permissions.
    2. Choose an account.
    3. Click Allow.

    The script's execution log appears at the bottom of the window.

    Legacy editor

    In the Apps Script editor, click Run >listLabels.

    Gmail

    The first time you run the sample, it will prompt you to authorize access:

    1. Click the Continue button.
    2. Click the Accept button.

    To view the script's output, click View > Logs.

    Great! Check out the further reading section below to learn more.
    Bummer, let us know what went wrong. Check out our troubleshooting section below for some common errors and solutions. If you have found a bug in the code, report the issue on GitHub or submit a pull request.

    Further reading

    Troubleshooting

    This section describes some common issues that you may encounter whileattempting to run this quickstart and suggests possible solutions.

    ReferenceError: '[API NAME]' is not defined

    Batch Gmail Account Creator Download

    This error occurs when the API hasn't been toggled on in the Apps Script codeeditor. Revisit Step 2.b and ensure the corresponding toggle is set to on.

    Batch Gmail Account Creator Login

    This app isn't verified.

    Mass Gmail Account Creator Free

    The OAuth consent screen that is presented to the user may show the warning'This app isn't verified' if it is requesting scopes that provide access tosensitive user data. These applications must eventually go through theverification process toremove that warning and other limitations. During the development phase you cancontinue past this warning by clickingAdvanced > Go to {Project Name} (unsafe).