According to the API documentation, only Circular shape Geofences allowed:
https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.B
The Android Geofencing API only provides support for Circular Geofences. If you want to monitor Polygon shaped geofences then you have to implement it your self.
One solution would be something like this:
Get the current location update using Location API.
Now you have polygon shaped geofence. You can use ray-casting Algorithm to check if a point is inside the Closed Polygon or not?