According to the financial services provider, the figure was the largest IPO ever raised and surpasses the $21.9 billion set by the Industrial and Commercial Bank of China during 2006.
The figure is split between a $12 billion H share offer and $10.1 billion A share offer.
Goldman Sachs, Morgan Stanley, Deutsche Bank, AgBank and JPMorgan were among the seven bookrunners which worked on the H share.
Dan Dees, a managing director and head of the financing group in Asia at Goldman Sachs, said: "Managing a deal of this magnitude in a very challenging market in such a short period of time took considerable coordination and focus.
"The successful outcome of this landmark transaction is testament to the strength of AgBank's strong management, industry positioning and unique franchise."
AgBank was the last one of the big four Chinese banks to go public.
China Construction Bank was the first to launch an IPO during October 2005 when it raised $9.2 billion.
By Jim Ottewill