The perfect duration for a PMax campaign can vary depending on your business and goals.
However, a general rule of thumb is to test a campaign for at least 90 days, unless it's seriously underperforming. This timeframe lets the machine learning algorithms optimize your campaign and gives you enough data to evaluate its effectiveness.