MCPcopy Create free account
hub / github.com/dailydotdev/apps / fetchSlot

Function fetchSlot

packages/shared/src/lib/ads.ts:312–313  ·  view source on GitHub ↗
(options: Parameters<typeof fetchAdRequest>[0])

Source from the content-addressed store, hash-verified

310 onTransition,
311}: FetchAdByPlacementOptions): Promise<Ad | null> => {
312 const fetchSlot = (options: Parameters<typeof fetchAdRequest>[0]) =>
313 fetchAdSlot(options, { onTransition, throwOnError: !!refresh?.count });
314
315 switch (placement) {
316 case AdPlacement.PostComment:

Callers 1

fetchAdByPlacementFunction · 0.85

Calls 1

fetchAdSlotFunction · 0.85

Tested by

no test coverage detected