It is advisable to apply for a tourist visa for China 1 month in advance of your intended date of entering China. The Chinese government advises against applying 3 months prior to your date of entry.

The rationale being that applying too early might lead to the visa expiring before departure. On the other hand, applying too late might lead to your not being able to obtain your visa on time.