Please refer to this article for more information about the process of configuring Google API in Magento 2.
Hope this can help you! Let me know if you need further assistance.
If issue solved, Click Kudos & Accept as Solution.
LitExtension - #1 Shopping Cart Migration Expert
LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.
Visit website: http://litextension.com/