Google provides tons of api, but sometimes their documentations lacks of updates. Other thing is, it…