Troubleshooting
Google Ads List Accessible Customers (501)
- Cause: The Cloud project's API access level (it replaced the developer token on 2026-09-09), non-MCC account, or endpoint not enabled
- Fix: Use test manager + client accounts, or apply for Explorer/Basic/Standard access on the Google Ads API Overview page in Google Cloud Console for the project that owns the OAuth client
- Backend logic returns demo/guidance entries when 501 occurs
Missing Authorization/Org Headers
- Symptom: 401 on backend routes; account creation fails
- Fix: Use
apiClientin frontend so Firebase Bearer andx-organization-idare added automatically
404/401 on Google Ads API
- Ensure request includes:
Authorization: Bearer <OAUTH2_ACCESS_TOKEN>Content-Type: application/json
developer-tokenis no longer needed; the API ignores it- A Cloud project with only Test access gets
CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION(v25+) orACTION_NOT_PERMITTED(v24 and earlier) on production accounts. Apply for Explorer access.
Redirect URI Mismatch
- Ensure provider consoles have redirect URIs matching deployed hosts and backend routes
- Google Ads backend callback is
/api/google-ads/auth/callback; if proxying viaapp.ostenai.com, ensure path maps correctly