Google Maps Javascript Api Error Apinotactivatedmaperror

I am trying to use google maps distance matrix api in my project to get distance between places. I have also enable this api in google developer console. But I am continuously getting error.Rows The Maps JavaScript API writes error and warning messages to the .