Get Google Ads campaign results
Live Google Ads campaign metrics and attributed WhatsApp conversations for advertiser accounts selected by the organization.
Scope: reports:read.
bearerAuthAuthorizationBearer <token>An organization API key, rky_live_…, created in Settings → API. Send it only from a server.
account_id?stringA Google Ads account selected in Integrations.
^\d{10}$campaign_id?stringOnly this Google Ads campaign.
^\d{1,20}$from*stringFirst day, inclusive.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateto*stringLast day, inclusive. A period can contain up to 366 days.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateSuccess.
application/json- response
data*array<>next_cursor*|Pass as cursor for the next page; null on the last page.
curl -X GET 'https://getricky.ai/api/v1/ads/google/campaigns?from=2019-08-24&to=2019-08-24'{ "data": [ { "account": { "id": "string", "name": "string", "currency_code": "string", "time_zone": "string" }, "status": "ready", "campaigns": [ { "id": "string", "name": "string", "status": "string", "spend": 0, "clicks": 0, "impressions": 0, "conversions": 0, "conversation_code": "string", "conversation_count": -9007199254740991, "recent_conversation_ids": [ "2bb8cacf-3506-46e4-be45-e228133b205b" ] } ] } ], "next_cursor": "string"}List the conversations ads brought GET
Each conversation a Meta ad opened or brought back in the period, newest first, with the ad, the contact, the conversation's state and the replies it got. Read from the customer messages Ricky received, so it works without connecting Meta Ads; the ad's name, campaign and ad set (`ad_referral.resolved`) need the connection. The period is America/Panama days, as in `GET /reports/ads`, whose per-ad conversations these rows add up to. Scope: `conversations:read`.
List agents GET
Active agents, newest first. Archived agents are not listed. Scope: `agents:read`.