Skip to main content
POST
Promote a Snap that your Snapchat Public Profile posted. Ayrshare adds the Snap to your ad account, waits for Snapchat to get it ready, then creates a creative, a campaign, an ad squad and an ad in your Snapchat ad account.
  • Snapchat ads are turned on per account. Contact us to enable them.
  • Link Snapchat. The link already includes the ads permission (snapchat-marketing-api), so you do not need to relink.
  • If Snapchat no longer accepts your link, for example because access was removed in Snapchat, every Snapchat ads request answers code: 420 with HTTP 401. Relink Snapchat and try again.
  • The budget is set on the ad squad, in your ad account’s currency. Do not send budget.currency or budget.level: "campaign".
  • The smallest budget is 5 in your ad account’s currency.
  • Snapchat usually gets a Snap ready in a few seconds. If it is not ready within 45 seconds, the answer is code: 369 and no ad is created, so nothing spends. Try again in a few minutes with a new idempotencyKey.
  • If Snapchat cannot get a Snap ready at all, the answer is also code: 369, and details says Snapchat could not prepare it. Retrying that Snap will not help: check that it is still on your Public Profile, or boost another Snap.
  • Target countries only. targeting.locations.regions, targeting.locations.cities, targeting.excludedLocations, targeting.keywords and attachTo answer code: 101.
  • Snapchat reviews every new ad. Until it is approved, the ad’s review.status in Boosted Ads is PENDING.
  • If Snapchat fails to switch a new ad on, the boost is still created and the response carries a warning. Usually the ad is paused (adStatus is PAUSED): resume it with a status update. If Snapchat reports the ad as running, adStatus is ACTIVE: pause it with a status update if you did not want it live. In the rare case Snapchat cannot confirm the ad’s state, adStatus is UNKNOWN: do not resume it, and contact us with the ad ID.
  • If you send requests faster than Snapchat allows, the answer is code: 364 with HTTP 429 and Snapchat’s message in details. Wait a minute and retry. If you sent an idempotencyKey, retry with a new one: the same key replays the code: 364 answer.

Ad Goals

  • brand_awareness: show the Snap to as many people as possible.
  • video_views: get views of a video Snap.
  • traffic: send people to your website. Needs callToAction with an https:// link.

Target Audience Segments

To reach, or leave out, people in your Snapchat audience segments, send targeting.audiences and targeting.excludedAudiences. Each is a list of segment ids from Audiences: your customer lists, website visitors and lookalikes. Create them with Create Audience or in Snapchat Ads Manager.
  • The ad reaches people in the countries and ages you target who are also in the segments, and never people in an excluded segment.
  • Each list holds at least one id. An empty list returns code: 101: leave the field out instead.
  • Snapchat targets a segment only once it is ready, which happens when Snapchat has matched enough people. Check status.ready in Audiences before you boost.

Header Parameters

Body Parameters

string
required
Your Snapchat ad account ID, for example 5a0d0000-0000-4000-8000-000000000003.
string
The Ayrshare post ID to boost. Send postId or socialPostId. For a Snapchat Story posted through Ayrshare, send postId on its own: Ayrshare boosts the Snap that post added, even when the story holds several Snaps, and the ad stays linked to the post. A postId sent on its own must be a post Ayrshare published to Snapchat, or the boost fails with code: 369. If you send both, socialPostId decides which Snap is boosted, and postId must be one of your own posts, or the boost fails with code: 369.
string
The ID of the Snap to boost. This is the mediaId in the post’s Snapchat result. You can also send the story id from that result: Ayrshare boosts the Snap in that story. A story that holds more than one Snap returns error 101, so send the post’s postId on its own, or the Snap’s mediaId, instead.
string
required
One of the ad goals.
object
required
object
object
required
object
Required for the traffic goal, and only accepted with it.
string
default:"active"
active or paused.
string
A unique, non-empty key for this boost request. Retry the same payload with the same key to avoid creating a duplicate ad: the first answer is replayed, including an error. Reusing the key with a different payload returns HTTP 409. The key applies to this platform only: the same key on another platform starts a separate boost. A request still in progress also returns 409; an unavailable reservation returns 503 without creating an ad. After a code: 369 “still preparing” or a code: 364 rate limit, retry with a new key.
object