Skip to main content
POST
Ads endpoints power the dashboard campaign builder. They use the signed-in app session, not X-NearIQ-Key. Ad campaign creation requires a plan with ad campaign access. Drafts are saved for review; users remain in control before publishing.
NearIQ drafts campaign structure, copy, budgets, and targeting from stored business and competitor context. Users should review and edit all ad content before publishing.

POST /api/ads/generate-draft

Generates an ad campaign draft for a selected platform and mode.
string
google, facebook, or linkedin. Defaults to google.
string
simple or advanced. Defaults to simple.
object
Optional voice and music preference for video creative.

GET /api/ads/google/campaigns

Lists saved Google campaign drafts for the active business.

POST /api/ads/google/campaigns

Saves a Google campaign draft.

GET /api/ads/meta/campaigns

Lists saved Facebook and Instagram campaign drafts for the active business.

POST /api/ads/meta/campaigns

Saves a Facebook or Instagram campaign draft.

GET /api/ads/linkedin/campaigns

Lists saved LinkedIn campaign drafts for the active business.

POST /api/ads/linkedin/campaigns

Saves a LinkedIn campaign draft. Paid launch remains review-controlled; NearIQ does not auto-spend from this endpoint.

GET /api/ads/google/performance

Returns stored Google ads freshness and performance summaries for the active business.

GET /api/ads/meta/performance

Returns stored Facebook and Instagram ads freshness and performance summaries for the active business.

GET /api/ads/linkedin/performance

Returns stored LinkedIn ads freshness and performance summaries for the active business.

Errors