There are two types of "GPS antennas" available for your system.
One type is a NMEA 2000 device that connects directly to the N2K bus, and makes data available to anyone on the bus who cares to listen. For Garmin this would be a GPS-24xd, or an MSC-10
The other type is really just an external antenna to enhance reception for an internal GPS in your chart plotter, AIS, or VHF. This connects directly to the device using a BNC cable and allows for better reception for the internal GPS. For Garmin, this is a GA 38.
If you want better GPS reception for your AIS, you need to connect a GA-38 directly to the AIS. Class B AIS has to use the internal GPS. It can't use one that's on the NMEA 2000 network. Note that with Class A AIS, it needs BOTH an internal GPS and a connection to the ship's main GPS.