Go to https://admin.google.com. Log in as the admin. Go to “Security” -> “API reference”. Check the box next to “Enable API access” and click on “Save Changes”: