Google Maps JavaScript API ERRO: INVALIDKEYMAPERROR

// Do it
function gm_authFailure() {

  document.getElementById('id-input').disabled=false;
  document.getElementById('id-input').placeholder="";
  document.getElementById('id-input').style.removeProperty("background-image");
  console.log('General Error with Google Api ');
 
}
//Change your js?key=#######################
Faithful Flamingo