libraryPackage manifestv0.2.4

lib.advertising-runtime

Durable advertising recipe execution and scoped HTTP mechanics.

@lssm-tech/lib.advertising-runtime
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 0.2.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
serverbunnode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.advertising-runtimedomains

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

3 declaracionesSELECT TO INSPECT

Advertising runtime

Shared scoped HTTP mechanics and durable execution of compiled provider recipes. Provider adapters live in provider-meta-ads, provider-google-ads and provider-tiktok. No provider credentials, API version, account permissions or spend grant is supplied by default. Hosts inject current authorization, connection-bound secrets and transport.

AdvertisingRecipeExecutor claims each step before dispatch and stores every response before resolving dependent resource IDs. Unknown creates are never retried. Reconciliation is read-only; explicit execution can continue only after the uncertain step is proven accepted. AdvertisingMarketingProvider connects this to the existing marketing budget reservation/execution system. Its trusted compiler must resolve brand copy/assets, audiences, ownership and native budgets from the reviewed plan. It is not an LLM payload passthrough. Recipe keys are namespaced by tenant/workspace/brand.

Validation-only results never count as applied effects. Google mutation batches reject partial-failure mode; conversion endpoints retain their platform-required semantics. HTTP errors remain unknown unless independent provider reconciliation proves the result. Platform API acceptance does not mean an ad is approved, delivering or converting.

API limits and budget pacing differ by platform. The host must qualify native budget constraints and overdelivery exposure; the local reservation is not a universal provider spend cap. This layer does not itself implement OAuth onboarding or every product-level campaign preset. Live account and campaign-format qualification remains required.

AdvertisingLaunchCompiler loads immutable, plan-bound native materials. Meta and TikTok create disabled parents before creating children, and activate the campaign last. Google uses a single atomic multi-resource mutation, preserving asset groups and keyword match semantics. Google budgets require an explicit maximum-exposure assessment; account IANA timezones determine provider-local dates. TikTok uses bounded lifetime ad-group budgets. AdvertisingControlCompiler supports reviewed pause/resume with an exact observed-state digest. Host preflight must recheck that state immediately before execution. Google conversion corrections are available through the separate conversion service; live qualification remains outstanding.

AdvertisingBudgetCompiler consumes the immutable MarketingBudgetChange document. Its digest must appear in the reviewed plan evidence; currencies, previous observations, exclusive campaign budget ownership, expiry and maximum additional exposure are checked before compilation. Meta/TikTok lifetime changes remain distinct from Google's daily budgets. Google amounts are converted to micros using exact integer arithmetic. The host must verify pacing/overdelivery exposure; native budget changes never release earned liability.

AdvertisingCreativeCompiler consumes an immutable MarketingCreativeReplacement, bound to current provider state, the previous creative digest, desired revision and rights. Meta retains the ad ID while replacing its creative; TikTok stages a disabled successor before pausing the old ad. Google ad replacements and PMax asset-link replacements are atomic. PMax activation applies to the selected asset group. Old assets are retained for audit. Hosts must qualify the exact format and approved native materialization, and must recheck rights and scope for every request. These compilers do not prove platform review approval or successful delivery.

AdvertisingCampaignCompiler routes launch, pause/resume, budget changes and optional creative replacement. Conversion delivery uses the separate consent-gated service described below. All compiled actions use the existing durable recipe and reservation engine.

Native field references: Google REST mutation examples, TikTok ad-group update model, TikTok creative model.

AdvertisingConversionProvider maps single-event conversion receipts to Meta/TikTok website events and Google click conversions. Google additionally supports offline click imports, restatements and retractions. advertisingConversionCapabilities is an executable protocol matrix; app-origin events and Meta/TikTok corrections remain unavailable. Protocol support is independent of current tenant/account qualification.

Matching data is loaded only by an authorized host and is never stored by the shared receipt service. Email and phone fields require pre-hashed SHA-256 values. Native event and order IDs derive from the durable source/destination identity. One event per request avoids accepting a partly failed batch. Response evidence is stored as a digest, not a copy of matching data. Reconciliation requires independent read-only provider evidence.

See Google adjustment rules and Google terminal adjustments: retractions and Google zero-value restatements cannot subsequently be restored through this adjustment workflow.

AdvertisingCampaignObserver reads explicitly authorized campaign/ad-set/ad-group/ad/ asset-group references using scoped native reads. Google policy review and primary status are separate from configuration. Unknown native statuses stay unknown; eligibility never proves impressions or actual delivery. A complete response means only the requested resources were returned, not that an entire account or campaign graph was discovered.

The host must persist sanitized source responses through the required evidence port. Failed reads or failed evidence capture remain unavailable. Snapshot state digests omit poll timestamps and evidence locations, so an unchanged provider state remains stable. Use the native API version qualified for the installation; these tests do not qualify live accounts or every provider status value.

Declared capabilities.

Advertising runtime

Runtime primitives for governed advertising workflows.

Use it to

  • Run governed advertising workflows

Requires

  • TypeScript

Choose another boundary when

  • The target runtime is not server-side.

@lssm-tech/lib.advertising-runtime

Imports and export paths.

27 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

27 importaciones

Dependencies and related packages.

Runtime dependencies 3
zod
catalog:
Development dependencies 4
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
devcontractspec-bun-build dev
lint:checknode ../../../../scripts/biome.cjs check .
lint:fixnode ../../../../scripts/biome.cjs check --write .
prebuildcontractspec-bun-build prebuild
testbun test
typechecktsgo --noEmit
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
Tu vista

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.