Is the active compound in ammonia acetic acid?

No. Acetic acid is the active compound in vinegar. Ammonia is its own compound, though it is diluted in water for household use.