Snapchat Ads through PubNio

PubNio runs 10 of the 12 ad operation kinds on Snapchat Ads. A campaign plan creates every level paused, and daily spend is read from stored rows.

Live ad providerView as Markdown

What PubNio supports on Snapchat

Every Snapchat operation kind except campaign.archive and boost.create. PubNio's campaign, ad group, and ad are Snapchat's campaign, ad squad, and ad; a create leaves status: PAUSED on the campaign, ad squad, and ad.

Snapchat's adapter has no local draft check, so Snapchat's own rules run only at create and validation can pass a plan Snapchat then refuses.

  • The campaign carries a daily budget only when the plan gives a daily one.
  • An ad squad is created with type SNAP_ADS, billing event IMPRESSION, optimization goal IMPRESSIONS, and a bid_micro of 1,000,000 unless the plan's providerSettings set type, billingEvent, optimizationGoal, or bidMicro. A plan without an ad squad budget is refused.
  • PubNio uploads no Snapchat creative. The plan names one that already exists in Snapchat as providerSettings.creativeId, and an ad is created with that creative_id.

Spend controls

  • Activating a campaign, ad group, or ad, or raising a budget, needs a monthly cap on the account's spend policy, or it fails with ad-spend-forbidden and monthly_cap_required (its nextAction names ads.updateSpendPolicy), and it fails with ad-kill-switch-active while the kill switch is on; lowering a budget needs neither.
  • ads.enableKillSwitch queues a retryable provider pause for each campaign and turns away activations, resumes, and budget increases until it is cleared.

Change the ad squad budget

  • PubNio sets the ad squad's daily_budget_micro, then reads the ad squad back.
  • A budget change needs a signed-in session in the web app; an API key or an MCP session, OAuth included, gets 403 human_actor_required.
  • A budget increase must fit the per-campaign maximum, the daily cap, and the monthly cap, counted as 30.4 days of daily budgets with queued increases at their new amount; a decrease skips those checks.
budget.http
POST /api/v1/ads/accounts/7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b/ad-groups/b81d4e2a-6c3f-4a90-9e5b-7f2c0d1a8e46/budget?workspaceId=3d9a1f20-7c4b-4e8a-9f61-2b5c8d7e0a14
Authorization: Bearer <token>
Idempotency-Key: budget-snapchat-ads-1
Content-Type: application/json

{
  "budget": {
    "amountMinor": 5000,
    "currency": "USD",
    "kind": "daily"
  },
  "expectedRevision": 3
}

PubNio answers 202 with a budget.update operation. A stale expectedRevision gets ad-revision-conflict; a cap it would break gets 422 ad-budget-exceeded with the limit and the committed total.

Connect and scopes

Connect with Snap OAuth; PubNio refreshes the token itself.

Scopes PubNio asks for: snapchat-marketing-api. PubNio calls Marketing API v1.

Limits

  • No archive at any level.
  • The budget kind is ignored on ad squads: a lifetime budget is sent as daily_budget_micro.