Likely the system is reading the dashes in your API key as part of the key itself, which is likely throwing up an invalid key error. Try removing the dashes and keeping the key the same. Also, make sure the key is still valid and has not been updated in app.