╔════════════════════════════════════════════════════════════╗ ║ Gemini API Connection Test ║ ║ Using Vertex AI + OAuth ║ ╚════════════════════════════════════════════════════════════╝ 🔐 Getting OAuth access token... ✓ OAuth token obtained Token: ya29.c.c0AZ4bNpbgfGl... 🔄 Testing connection to Gemini 2.5 Flash via Vertex AI... Response received in 2059.36ms HTTP Status Code: 200 ✅ SUCCESS! API is working correctly. ---------------------------------------------------------------------- Sample Generated Content: ---------------------------------------------------------------------- AI is revolutionizing the business landscape, empowering companies to achieve unprecedented efficiency and unlock powerful insights! Embrace the future of innovation and accelerate your growth with intelligent automation and data-driven strategies. ---------------------------------------------------------------------- 📊 Connection Info: Model: gemini-2.5-flash (Vertex AI) Max tokens: 65000 Response time: 2059.36ms Total time: 2058.28ms ✓ Your setup is ready! Run: php generate-social-ads.php