Question: how to transfer contacts from iphone via gmail?
Answer: On your iPhone, go to "Settings" > [your name] > "iCloud" and toggle on "Contacts". Visit iCloud.com on your computer and enter your Apple ID and password. Choose "Contacts" among the options and select the contacts you'd like to sync from your iPhone to Gmail.