Advertising API

For brands: impressions and clicks of your banners, and sales they brought.

Search documentation

Jump to a section

How it works

The purchase happens on your site. We show the banner, count impressions and clicks, and send the visitor to you with tags in the link. You can report the sale back — then the report shows revenue next to clicks.

banner → https://your-site/catalog?utm_source=3dprintpricing&…&erid=…&pp_click_id=…
                         │
   your site saves pp_click_id with the order
                         │
   POST /ads-api/v1/conversions  (order id, amount)  →  report: clicks, sales, revenue

What we add to the link:

utm_sourcealways 3dprintpricing
utm_mediumweb_banner or app_banner
utm_campaigncampaign name or id
utm_contentplacement: dashboard, calculator, home…
eridad token required by Russian law
pp_click_idunique click id (UUID); the app sends it since version 11.0

Tags you already put into the link are kept as they are.

No personal data in either direction: we don't share who clicked, and the API rejects extra fields such as a buyer's name or phone.

Advertiser token

We issue the token when the placement starts. It only opens your own campaigns. Send it as a header; tokens in the URL are not supported. A cabinet token (pat_…) does not work here.

Authorization: Bearer ads_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The token stays on this page only and disappears when you leave it.

GET/ads-api/v1/me

Check the token

Who the token belongs to.

{ "id": 1, "name": "BRAND", "timezone": "Europe/Moscow", "currency": "RUB" }

Campaigns and statistics

GET/ads-api/v1/campaigns

Your campaigns

Every banner on the site (web) and in the app (app), including finished ones.

{
  "items": [
    {
      "id": "web-12",
      "channel": "web",
      "title": "Филамент от производителя",
      "status": "active",
      "placements": ["dashboard"],
      "link": "https://example.com/catalog",
      "erid": "2VtzqwXYZab",
      "starts_at": null,
      "ends_at": null
    }
  ]
}

status: active, scheduled, expired, disabled, deleted.

GET/ads-api/v1/stats

Statistics

Impressions, clicks, CTR, sales and revenue for a period. Days are Moscow time.

  • date_from, date_to: YYYY-MM-DD, last 30 days by default, up to 366 days
  • group_by: day, campaign, channel, placement, platform — several separated by commas
  • format: json or csv
GET /ads-api/v1/stats?date_from=2026-12-01&date_to=2026-12-31&group_by=campaign,placement

{
  "date_from": "2026-12-01", "date_to": "2026-12-31",
  "timezone": "Europe/Moscow", "currency": "RUB",
  "group_by": ["campaign", "placement"],
  "rows": [
    { "campaign": "web-12", "placement": "dashboard",
      "impressions": 4000, "clicks": 100, "ctr": 2.5, "conversions": 4, "revenue": 3292.0 }
  ],
  "totals": { "impressions": 4000, "clicks": 100, "conversions": 4, "revenue": 3292.0, "ctr": 2.5 }
}

Numbers above are an example of the format. Demo cabinet views are not counted. A repeated view of the same banner in the app counts again after 30 minutes. Sales without a click id come with an empty campaign.

Sales (conversions)

POST/ads-api/v1/conversions

Report a sale

Sending the same order_id again updates the sale instead of adding a second one.

POST /ads-api/v1/conversions
Content-Type: application/json

{
  "order_id": "A-1042",
  "click_id": "5f0c7a1e-3c1b-4b51-9c1b-0a7d5a2f9e11",
  "amount": 823.00,
  "status": "paid"
}
  • order_id: your order number, required
  • click_id: pp_click_id from the link; promo_code: promo code. At least one of the two is required
  • amount: order amount in rubles
  • status: created, paid (default), cancelled. Revenue counts paid ones, cancelled are excluded
  • occurred_at: order time (ISO 8601), now by default
201 — sale added · 200 — sale updated
GET/ads-api/v1/conversions

Reported sales

Parameters: date_from, date_to, page, per_page (up to 500).

Errors and limits

  • 401: no token, or it was revoked or reissued
  • 403: access is switched off
  • 404: this click_id is not among your clicks
  • 422: wrong parameters or extra fields
  • 429: limit exceeded: 60 requests a minute per token, 120 for reporting sales
Questions about the integration — use 3D Print Pricing's regular support.Contact support
REST API✦WEBHOOKS✦HOME ASSISTANT✦DISCORD✦SLACK✦N8N✦KLIPPER✦
REST API✦WEBHOOKS✦HOME ASSISTANT✦DISCORD✦SLACK✦N8N✦KLIPPER✦

© 2026 · 3DPP API · v12.0 · 16+

Ivan Maksim Andreyevich · Self-employed (NPD) · Taxpayer ID (INN) 524308881820 · print.calculator.3d@gmail.com

Advertising API — impressions, clicks and sales · 3D Print Pricing