# build_gmail_service

> **Function** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/gmail/utils/build_gmail_service)

Build a Gmail service.

## Signature

```python
build_gmail_service(
    credentials: Optional[Credentials] = None,
    service_name: str = 'gmail',
    service_version: str = 'v1',
    use_domain_wide: bool = False,
    delegated_user: Optional[str] = None,
    service_account_file: Optional[str] = None,
    scopes: Optional[List[str]] = None,
) -> Resource
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/community/langchain_google_community/gmail/utils.py#L55)