Managed connection flow inside TrendsAGI for Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads: connect ad accounts, map campaign entities, and run category-based positive trend updates with safety guardrails. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://api.trendsagi.com114
Routes
16
Guides
3
Languages
One-click Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads connections
Managed connection flow inside TrendsAGI for Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Snapchat Ads, and Pinterest Ads: connect ad accounts, map campaign entities, and run category-based positive trend updates with safety guardrails.
Install
No SDK required. Use TrendsAGI Ads integration endpoints.Required credentials
export TRENDSAGI_API_KEY="<TRENDSAGI_API_KEY>"
# 1) Check provider readiness + connection status
curl -X GET "https://api.trendsagi.com/api/integrations/ads/providers" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 2) Request connection URL for a provider (example: Meta)
curl -X GET "https://api.trendsagi.com/api/integrations/ads/meta_ads/auth" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 3) Open returned URL in browser and finish authorization
# 4) Save account mapping + category-driven trend automation settings
curl -X PUT "https://api.trendsagi.com/api/integrations/ads/meta_ads/selection" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "preview",
"apply_level": "ad_set",
"account_id": "act_123",
"campaign_id": "1200000001",
"ad_group_id": "1200000002",
"trend_category": "Travel",
"auto_apply_positive": true,
"strict_safety": true,
"prefer_interest_trends": true
}'# Save as quickstart.sh
bash quickstart.sh1. Install
Add SDK/dependency for this integration path.
2. Authenticate
Set API key and any provider-specific credentials.
3. Map Endpoints
Use mapped endpoints below to build deterministic flow.
4. Harden
Add rate-limit backoff, idempotency, and safety gates.
Endpoint Mapping
Each integration is mapped to specific API endpoints so teams can compose deterministic workflows.
Production Notes