╔════════════════════════════════════════════════════════════╗ ║ Gemini API Connection Test ║ ║ Using Vertex AI + OAuth ║ ╚════════════════════════════════════════════════════════════╝ 🔐 Getting OAuth access token... ✓ OAuth token obtained Token: ya29.c.c0AZ4bNpY1Q01... 🔄 Testing connection to Gemini 2.5 Flash via Vertex AI... Response received in 1335.79ms HTTP Status Code: 200 ✅ SUCCESS! API is working correctly. ---------------------------------------------------------------------- Sample Generated Content: ---------------------------------------------------------------------- Artificial intelligence is revolutionizing businesses by streamlining operations, boosting efficiency, and uncovering powerful new insights. Embrace AI to unlock unprecedented growth and drive your company into a future of innovation! ---------------------------------------------------------------------- 📊 Connection Info: Model: gemini-2.5-flash (Vertex AI) Max tokens: 65000 Response time: 1335.79ms Total time: 1334.71ms ✓ Your setup is ready! Run: php generate-social-ads.php