Based on Google Documentation, the Activity that is returned by Reports API, should contain ipAddress:
ipAddress (string)
IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6.
But I've noticed that sometimes it does not return ipAddress inside Activity payload at all (so there is no even key ipAddress
inside the payload). I thought it could be related to Anonymous users, but it's not, I have events where the actor is a specific user but there is still missing ipAddress.
Any idea why? And how can I be sure to get ipAddress always?