Authentication Issues
”Authentication required” error
Your session has expired or you haven’t logged in yet.Manual login
Visit adsgateway.io and log in directly.
Authentication window doesn’t open
The login popup may be blocked. Solutions:- Check for blocked popups in your browser
- Try a different browser
- Manually visit adsgateway.io and log in
”Invalid token” error
Your authentication token is invalid or expired. Solutions:- Disable AdsGateway in your MCP client
- Remove the AdsGateway MCP entry from your local config
- Clear browser cookies/session data for:
ads-gateway.onrender.comadsgateway.io
- Re-add AdsGateway with only this config value:
serverUrl: https://ads-gateway.onrender.com/mcp
- Re-enable the server and complete login again
You usually do not need a custom
oauth block in MCP config. AdsGateway uses OAuth discovery from the server metadata.Ad Account Issues
”No ad account selected” error
You need to select an active ad account before querying data. Solution:“Account not found” error
The specified account ID doesn’t exist or you don’t have access. Possible causes:- Typo in the account ID
- Account was removed from your Business Manager
- Permissions were revoked
- List your available accounts to see what you have access to
- Verify the account ID is correct
- Check your Facebook Business Manager permissions
Can’t see all my ad accounts
AdsGateway can only access accounts you have admin permissions for.Data Issues
”No data available” response
The query returned empty results. Possible causes:- No ads ran during the specified period
- Account is new with no historical data
- Filters are too restrictive
- Try a broader date range
- Remove status filters
- Verify the account has active or historical campaigns
Data seems outdated
Meta Ads data has inherent reporting delays.| Data Type | Typical Delay |
|---|---|
| Impressions, clicks | ~15 minutes |
| Spend | ~15 minutes |
| Conversions | Up to 24-48 hours |
| Attribution data | Up to 7 days |
This is a limitation of Meta’s reporting system, not AdsGateway. Always check the date range of your data.
Numbers don’t match Facebook Ads Manager
Minor discrepancies are normal due to:- Timing differences: Data was fetched at different times
- Attribution windows: Different attribution settings
- Timezone differences: Account vs. query timezone
Connection Issues
Server not connecting
The AdsGateway server isn’t responding. Solutions:- Check your internet connection
- Try restarting your AI assistant
- Wait a few minutes and try again
- If the issue persists, contact support at hello@adsgateway.io
”Timeout” errors
Requests are taking too long. Possible causes:- Large data requests
- Network issues
- Server under heavy load
- Try a smaller date range
- Request fewer metrics at once
- Use pagination for large result sets
- Wait and retry
Tools not appearing
Your AI assistant doesn’t show AdsGateway tools. For Cursor:- Open Settings → MCP
- Verify AdsGateway server is added
- Toggle it off and on
- Restart Cursor
- Check your
claude_desktop_config.jsonfile - Verify the JSON syntax is valid
- Restart Claude Desktop
Platform-Specific Issues
Meta: “Permission denied” error
Your Meta connection lacks the required permissions. Solution:- Go to Facebook Settings → Business Integrations
- Find AdsGateway and click “View and edit”
- Ensure all required permissions are granted
- Reconnect Meta in AdsGateway if needed
Meta: “Rate limit exceeded” error
Too many requests in a short time. Solutions:- Wait 5-10 minutes before trying again
- Reduce the frequency of your queries
- Use broader date ranges to reduce API calls
Error Reference
| Error Code | Meaning | Solution |
|---|---|---|
AUTH_REQUIRED | Not logged in | Log in at adsgateway.io |
ACCOUNT_NOT_SELECTED | No active account | Select an account first |
ACCOUNT_NOT_FOUND | Invalid account ID | Check account ID |
PLATFORM_NOT_CONNECTED | Platform not authorized | Connect the platform |
PERMISSION_DENIED | Missing permissions | Check platform permissions |
RATE_LIMITED | Too many requests | Wait and retry |
TIMEOUT | Request took too long | Retry with smaller request |
SERVER_ERROR | Server issue | Wait and retry |
Getting Help
When Contacting Support
Please include:- Your AI assistant (Cursor, Claude, ChatGPT, etc.)
- The exact error message
- What you were trying to do
- Steps you’ve already tried

