Do you have a url where you had problems? Your google api ID is associated with a domain that it needs to run on, so if you are testing on a local machine you may need to use a api key set up to view from localhost... also you need to view it through a web server, so maybe you are browsing the file path when you preview?
The best way to have us help with an issue like this is to put the file onto a live server and give us the url to view it. That would allow us to debug and give a definitive answer.