360 Secure SkillHub
360 安全技能中心

crossly-ads

该 Skill 通过 Crossly API 创建、编辑、暂停或结束 Sponsored Listings 活动,设置预算、出价、关键词与 Boost,管理 eBay 等市场广告,并查询广告报表、资金余额、充值链接和账单。

分类:营销
crossly
热度 13.13
最近更新 2026-11-30 11:07:05

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add crossly/crossly-ads
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
crossly-ads
description
Run Crossly ads through the API. Sponsored Listings campaigns (pay per click on the Crossly marketplace) with POST /v1/sponsored-ads/campaigns, PATCH /v1/sponsored-ads/campaigns/{id}, POST /v1/sponsored-ads/campaigns/{id}/status (active, paused, ended) and duplicate; budgets and bids in integer cents; reports from GET /v1/sponsored-ads/report; ad funds, top-up links, auto top-up and statements on the cash ad balance and/or CBX; Boost (pay on sale, upliftBps) with PUT /v1/sponsored-ads/boosts and POST /v1/sponsored-ads/boosts/remove; and marketplace ads such as eBay Promoted Listings through GET /v1/listing-ads/platforms and POST /v1/listing-ads/{platform}/campaigns. Use when launching, pausing or ending campaigns, setting bids or budgets, boosting listings, pulling ROAS or spend reports, or funding ads for a Crossly seller.

Run Sponsored Listings and Boost on Crossly

Crossly sells two promotions on its own marketplace, and relays a third to other marketplaces:

Product You pay Endpoints
Sponsored Listings Per click, second-price auction (bid x quality), from the seller's ad funds /v1/sponsored-ads/campaigns, /report, /listings, /billing, /funds, /settings
Boost A share of the sale (1-20%), only when the listing sells on Crossly /v1/sponsored-ads/boosts
Marketplace ads Whatever the marketplace charges (eBay General % of sale, eBay Priority daily budget, ...) /v1/listing-ads/platforms, /v1/listing-ads/{platform}/campaigns

Scopes: ads:read for every GET, ads:write for every write (campaigns, status, duplicate, boosts, top-up link, auto top-up, settings, listing-ads writes). Auth: see the crossly-api-setup skill; pagination, errors and idempotency: crossly-api-conventions.

import { createClient } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });
// crossly.sponsoredAds (Sponsored Listings + Boost + ad billing), crossly.listingAds (marketplace ads)

Setup

  1. Create a free Crossly account: https://crossly.net/register
  2. Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a crossly_pat_test_ token against the sandbox while building.
  3. Export it as CROSSLY_PAT and send it as Authorization: Bearer $CROSSLY_PAT to https://crossly.net/api/v1/*. Full docs: https://crossly.net/docs

Units

All money is integer cents: dailyBudgetCents, totalBudgetCents, defaultBidCents, bidCents, amountCents, thresholdCents, accountDailyCapCents, and report fields (spendCents, avgCpcCents, revenueCents). Rates are basis points on Crossly (upliftBps, boostBps: 100 = 1%) and a percent number on marketplace ads (ratePct: 0.1-100). Report dates are from / to as YYYY-MM-DD (inclusive; default the last 30 days ending today UTC). Report ctr is a 0..1 ratio; roas is null with no spend.

Sponsored Listings campaigns

Create

POST /v1/sponsored-ads/campaigns (ads:write, Idempotency-Key supported, returns 201). Fields (one shared zod schema for the API, SDK and MCP):

Field Rule
name 1-100 chars, required
dailyBudgetCents 100 (= $1) to 10,000,000, required
totalBudgetCents optional, 100 to 1,000,000,000, must be >= the daily budget; null = no total
defaultBidCents 5-10000, required. Under bidStrategy: "auto" it is the max bid
bidStrategy manual or auto; default = the account's defaultBidStrategy
goal sales (default) or visits
placements 1+ of search, browse, product_page, home_rail, storefront, worlds_surface; default search, browse, product_page, home_rail
targetCategories up to 50 category mains; empty = all
targetRegions up to 60 ISO 3166-1 alpha-2 codes; empty = everywhere
targetDevices mobile, desktop, app; empty = all
startsAt / endsAt ISO 8601 with offset, optional; end must be after start
listings up to 500 `{ platformListingId, bidCents?, status?: active
keywords up to 200 `{ keyword (1-80), matchType?: broad
worldTargets up to 50 `{ kind: showroom
targetType listings (default) or wholesale_catalog with targetCatalogId
status active (launch now, default) or draft

A listings campaign needs at least one listing or world target. platformListingId is the seller's Crossly platform-listing id (the listing's row on platform crossly), not the master listing id; any id the seller doesn't own fails with not_found. A catalog boost (targetType: "wholesale_catalog") promotes one wholesale catalog in the trade directory and takes no listings, keywords or world targets (see crossly-wholesale).

const { data: campaign } = await crossly.sponsoredAds.createCampaign({
  name: 'Winter jackets',
  dailyBudgetCents: 500,          // $5/day
  totalBudgetCents: 5000,         // stop after $50
  defaultBidCents: 25,            // 25¢ max per click
  bidStrategy: 'auto',
  placements: ['search', 'browse'],
  listings: [{ platformListingId: '6f1c...' }],
  keywords: [{ keyword: 'puffer', matchType: 'phrase' }, { keyword: 'kids', negative: true }],
}, { idempotencyKey: crypto.randomUUID() });
curl -X POST https://crossly.net/api/v1/sponsored-ads/campaigns \
  -H "Authorization: Bearer $CROSSLY_PAT" -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
  -d '{"name":"Winter jackets","dailyBudgetCents":500,"defaultBidCents":25,"listings":[{"platformListingId":"6f1c..."}],"status":"draft"}'

Suggested bids: GET /v1/sponsored-ads/campaigns/{id} returns each listing's bid, suggested bid and stats; GET /v1/sponsored-ads/listings returns per-listing performance plus meta.suggestions (live listings with views but few sales, not yet sponsored, each with a suggested bid).

Edit, pause, resume, end, duplicate

Action Call
Edit PATCH /v1/sponsored-ads/campaigns/{id}: any create field except targetType / status. listings, keywords and worldTargets, when given, replace the whole set
Launch / resume POST /v1/sponsored-ads/campaigns/{id}/status { "status": "active" }
Pause same, { "status": "paused" }
End (final) same, { "status": "ended" }
Duplicate POST /v1/sponsored-ads/campaigns/{id}/duplicate (Idempotency-Key supported): copy as a new draft
await crossly.sponsoredAds.pauseCampaign(campaign.id);
await crossly.sponsoredAds.updateCampaign(campaign.id, { dailyBudgetCents: 1000 });
await crossly.sponsoredAds.resumeCampaign(campaign.id);
await crossly.sponsoredAds.setCampaignStatus(campaign.id, 'ended');
const { data: copy } = await crossly.sponsoredAds.duplicateCampaign(campaign.id, { idempotencyKey: crypto.randomUUID() });

Campaign status: draft, active, paused, ended, out_of_budget, with statusReason and pacing (spent today, daily cap reached) for the detail. A campaign whose ad funds can't cover a click waits as out_of_budget and starts by itself after a top-up. The daily budget resets at 00:00 UTC.

Conflicts (409 conflict): editing an ended campaign ("duplicate it instead"), resuming an ended one, resuming after the total budget is spent (raise totalBudgetCents; raising it on PATCH resumes the campaign), resuming after endsAt passed (move it), duplicating a campaign with nothing left to copy. Bad input is 400 validation_error; an unknown campaign, listing or catalog is 404 not_found.

Account-wide switches

GET / PATCH /v1/sponsored-ads/settings: adsPaused (pause or resume every ad without touching campaign states), accountDailyCapCents (100-10,000,000, null = no cap; spentTodayCents is read-only), defaultBidStrategy (auto | manual, for new campaigns), autoTopup { enabled, thresholdCents?, amountCents? }, railPreference (cash_first | cbx_first, only while both rails are live, else 409 with details.reason: "rail_order_fixed"). SDK: getSettings(), updateSettings(...), pauseAll(), resumeAll().

Reports

Call What
GET /v1/sponsored-ads/report?from&to totals, zero-filled daily, per-campaign rows (targetType) and catalogs (one row per boosted wholesale catalog)
GET /v1/sponsored-ads/campaigns?from&to every campaign with status, pacing, budgets and range stats
GET /v1/sponsored-ads/campaigns/{id}?from&to one campaign with per-listing and per-keyword stats
GET /v1/sponsored-ads/listings?from&to per-listing performance across campaigns + suggestions

Each KPI row: spendCents, impressions, clicks, ctr, avgCpcCents, orders, revenueCents, roas.

const { data: r } = await crossly.sponsoredAds.report({ from: '2026-11-01', to: '2026-11-28' });
console.log(r.totals.spendCents / 100, r.totals.roas);
const catalogs = await crossly.sponsoredAds.catalogBoostReport({ from: '2026-11-01' }); // wholesale catalog rows only

Attribution: a listing order counts when the same buyer buys the advertised listing on Crossly within 7 days of a click (last click wins); a catalog order is a trade order with that seller within 7 days of a catalog click. Invalid clicks (bots, the seller's own clicks, repeats within 24 hours, clicks past budget or funds) are recorded but not charged.

Paying for ads

Clicks are charged from the seller's ad funds over the billing rails in effect: the prepaid cash ad balance, CBX, or both (ops config; rails in the funds response says which, in spend order). Ad credit from Crossly is spent first. A click is charged only while funds cover it, so spend never outruns the balance.

Call What
GET /v1/sponsored-ads/funds?refresh=true rails, cash, cbx, availableCents, unbilledCents, campaignsWaitingForFunds, boostFeesCents (refresh re-reads CBX)
GET /v1/sponsored-ads/billing headroom, unbilled spend, settlement charges, daily spend, Boost fees, CBX ad-credit grants, plus funds
POST /v1/sponsored-ads/billing/topup-link { amountCents (500-1,000,000 = $5-$10,000), returnUrl? } returns a Stripe Checkout url the seller pays. Nothing is charged until they do
PUT /v1/sponsored-ads/billing/auto-topup { enabled, thresholdCents? (0-100,000), amountCents? (500-1,000,000) }
GET /v1/sponsored-ads/billing/history?kind&before&limit kind: topup, charge, credit, refund, boost_fee; page with before (ISO time, from meta.nextBefore); limit <= 100
GET /v1/sponsored-ads/billing/statements months (YYYY-MM) with activity
GET /v1/sponsored-ads/billing/statements/{month} (+ /pdf) one month as JSON or PDF
GET /v1/sponsored-ads/billing/topups/{id}/receipt a top-up's receipt PDF
const { data: funds } = await crossly.sponsoredAds.getFunds({ refresh: true });
if (funds.availableCents < 500) {
  const { data: link } = await crossly.sponsoredAds.createTopUpLink(
    { amountCents: 2500, returnUrl: 'https://example.com/ads' },
    { idempotencyKey: crypto.randomUUID() },     // same key = same link back on retry
  );
  // send link.url to the seller; a PAT never confirms a card payment itself
}

Auto top-up needs a saved payment method (the first paid top-up saves it): otherwise 409 with details.reason: "payment_method_required"; on a CBX-only deployment cash_rail_disabled.

Webhooks (see crossly-webhooks): ads.topup_succeeded, ads.topup_failed, ads.auto_topup_failed, ads.balance_low, ads.refund_issued, ads.paused_all, ads.resumed_all, ads.campaign_created, ads.campaign_updated, ads.campaign_status_changed.

Boost (pay on sale)

Boost lifts a listing in Crossly's Best Match and Popular sorts (labelled Promoted) by at most 10% at the top rate. Nothing is charged up front; the rate comes out of the sale proceeds, never the ad balance.

Call Body
GET /v1/sponsored-ads/boosts boosted listings with rate, sales and fees; meta.feesCents, meta.sales
PUT /v1/sponsored-ads/boosts { platformListingIds (1-200 uuids), upliftBps (100-2000) } boost or re-rate; returns { boosted }
POST /v1/sponsored-ads/boosts/remove { platformListingIds (1-200) }
await crossly.sponsoredAds.setBoosts(['6f1c...', '8a2d...'], 500);   // 5% of the sale
await crossly.sponsoredAds.removeBoosts(['8a2d...']);

The ids must be the seller's own live Crossly platform listings, or the whole call fails with 404 not_found. A per-listing Boost can also be set inline on a campaign with listings[].boostBps (null clears it). The Hub offers the rates 1, 2, 3, 5, 7, 10, 15 and 20%; the API accepts any integer 100-2000.

Marketplace ads (listing-ads)

Promote listings on another marketplace's ad program through Crossly (eBay is wired in full; other marketplaces vary).

  1. GET /v1/listing-ads/platforms: the registry. Per marketplace: programs (kind, scope, campaign and listing fields), which verbs are wired / needs_har / unsupported, and whether the seller is connected. Hide writes that aren't wired: they fail with 501 recipe_pending_capture.
  2. GET /v1/listing-ads/{platform}/campaigns?refresh=true (cached up to 15 minutes).
  3. POST /v1/listing-ads/{platform}/campaigns (Idempotency-Key supported): { program: promoted_listing_rate|cpc_campaign|bump|boost, name (1-80), ratePct?, dailyBudgetCents?, startsAt?, endsAt?, fields? }. On eBay promoted_listing_rate = General (a % of the sale), cpc_campaign = Priority (a daily budget).
  4. PATCH /v1/listing-ads/{platform}/campaigns/{campaignId}: name, dailyBudgetCents, endsAt (null clears), status (paused | running | ended).
  5. POST .../campaigns/{campaignId}/listings { platformListingIds (1-500), ratePct? }, POST .../campaigns/{campaignId}/listings/remove, PUT /v1/listing-ads/{platform}/listings/{platformListingId}/rate { ratePct }. Results are one per listing: check each ok.
  6. POST /v1/listing-ads/bulk-add { platform, campaignId, listingIds (master listing ids, 1-500), ratePct?, bidCents? }: each listing's live row on that platform joins the campaign; a listing not live there is its own failed result.
  7. GET /v1/listing-ads/listings/{listingId}: every promotion of one listing (Crossly campaigns, Boost, and each marketplace ad).

SDK: crossly.listingAds.listPlatforms(), listCampaigns(platform), createCampaign(platform, body), updateCampaign(...), addListings(...), removeListings(...), setRate(...), bulkAdd(...), listingPromotions(listingId).

Offsite ads (/v1/ads/offsite and its sub-routes, Google/Meta-style networks paid from a CBX advertising budget) are a separate CBX merchant product authenticated with CBX merchant keys, not ads:*; leave them out of a seller PAT integration.

MCP

list_ad_campaigns, get_ad_campaign, create_ad_campaign, update_ad_campaign, set_ad_campaign_status, duplicate_ad_campaign, get_ads_report, get_catalog_boost_report, list_boosted_listings, set_listing_boost, remove_listing_boost, get_ads_funds, get_ads_billing, create_ads_topup_link, list_ads_billing_history, list_ads_statements, get_ads_settings, update_ads_settings, and for marketplace ads list_platform_ad_campaigns, create_platform_ad_campaign, update_platform_ad_campaign, add_listings_to_platform_campaign, remove_listings_from_platform_campaign (see crossly-mcp-server).

Rules

  • Every amount is integer cents and every Crossly rate is basis points; convert dollars and percents before you send.
  • Create with status: "draft" (or show the seller the budget and bid) before launching; launching spends real money.
  • Always set a totalBudgetCents for an unattended campaign, and check GET /v1/sponsored-ads/funds before launching: with no funds it just waits as out_of_budget.
  • PATCH replaces listings / keywords / worldTargets wholesale: send the full set, not a delta.
  • Ended is final. To run it again, duplicate it.
  • Send an Idempotency-Key on campaign create, duplicate, top-up links and marketplace campaign create.
  • Never claim a promised ROAS; report spendCents, orders and roas from the report as they are.

Docs: https://crossly.net/docs/ads-and-boost · https://crossly.net/docs/cbx-for-sellers · https://crossly.net/docs/api-webhooks