Marketing tools
Tag, measure and export.
Tools for sponsors to tag links, read a campaign's results, export them and keep a weekly summary. They only read your numbers: nothing here spends money or sends anything.
Tag your link#
Open Sponsor, then Marketing, and pick a campaign. Fill in a source, a medium and a campaign name. When someone clicks your ad, they arrive with utm_source, utm_medium and utm_campaign added, so your own analytics shows where visits came from. A tag you already put in your link is never replaced.
The report#
Each campaign has spend, views, clicks and click rate, a daily chart (7 or 30 days) and a table by placement. Traffic we did not charge is counted but never billed.
Export to a spreadsheet#
Press Export spreadsheet for a CSV with one row for each day and placement: views, clicks, click rate, spend, cost per click, cost per thousand views and your tags. Cells that could run as a formula are neutralised.
Pull it with a script#
Make a report key in the app. It is read only and shown once. Sign each request so no one can reuse it later:
- Take the unix time in seconds. It must be within five minutes of the real time.
- Build the text TIME.GET.PATH, for example 1790000000.GET./v1/marketing/export?format=csv&days=30.
- The signature is the hex HMAC-SHA256 of that text, keyed with the secret.
- Send x-gully-key (the key id), x-gully-timestamp and x-gully-signature.
A key covers your own campaigns only. Remove it in the app and it stops working at once.
Weekly report#
Press Draft last week to write a plain summary of the last full week (Monday to Sunday, UTC). It is a draft you read or copy. Swoop Ads does not send email yet, so nothing leaves the app.
API#
| Route | What it does |
|---|---|
| GET /v1/marketing/utm/preview?url=…&source=… | Shows the tagged link. No sign-in. |
| GET|PUT /v1/marketing/campaigns/:id/utm | Read or save a campaign's tags (sign in). |
| GET /v1/marketing/campaigns/:id/report?days=30 | Totals, a daily series, and by placement. |
| GET /v1/marketing/export?format=csv|json&days=30&campaign=… | Rows for a spreadsheet. Sign in, or send a signed report key. |
| GET|POST /v1/marketing/keys, DELETE …/keys/:id | List, make and remove report keys (up to five). |
| GET /v1/marketing/digests, POST …/digests/draft | Weekly report drafts. |