Method: signupUrls.create cannot be create


This Content is from Stack Overflow. Question asked by chitaranjan pradhan

“Caller is not authorized to manage project.”

<script src=""></script>
   * Sample JavaScript code for androidmanagement.signupUrls.create
   * See instructions for running APIs Explorer code samples locally:

  function authenticate() {
    return gapi.auth2.getAuthInstance()
        .signIn({scope: ""})
        .then(function() { console.log("Sign-in successful"); },
              function(err) { console.error("Error signing in", err); });
  function loadClient() {
    return gapi.client.load("$discovery/rest?version=v1")
        .then(function() { console.log("GAPI client loaded for API"); },
              function(err) { console.error("Error loading GAPI client for API", err); });
  // Make sure the client is loaded and sign-in is complete before calling this method.
  function execute() {
    return gapi.client.androidmanagement.signupUrls.create({
      "callbackUrl": "xxxxx",
      "projectId": "xxxxxxx"
        .then(function(response) {
                // Handle the results here (response.result has the parsed body).
                console.log("Response", response);
              function(err) { console.error("Execute error", err); });
  gapi.load("client:auth2", function() {
    gapi.auth2.init({client_id: "YOUR_CLIENT_ID"});
<button onclick="authenticate().then(loadClient)">authorize and load</button>
<button onclick="execute()">execute</button>

You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the Migration Guide for more information.


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?