There are probably two options:
1) add code to the page so that if you go to it with www.brokeniphones.com it would automatically redirect to brokeniphones.com or vice-versa and get the google api code for the now-consistent domain.
or
2) get two api keys and add code to the page to identify which one to use and use a different api key depending on the full domain being used.