Hi,
You can not get all of the generated keys from a bulk insert, only the last one, because the id value is made available through the last_insert_id() function, and the client API value to return the last insert id works the same way.
You will either have to do single value (not bulk) inserts, or you will have to lock the table, select the maximum id, insert the values, select the new maximum value, and then unlock the table. This will give you the complete set of values for the block of id values assigned to the bulk insert.
--Justin