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

Function fetchSlot

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

Source from the content-addressed store, hash-verified

281 onTransition,
282}: FetchAdByPlacementOptions): Promise<Ad | null> => {
283 const fetchSlot = (options: Parameters<typeof fetchAdRequest>[0]) =>
284 fetchAdSlot(options, { onTransition, throwOnError: !!refresh?.count });
285
286 switch (placement) {
287 case AdPlacement.PostComment:

Callers 1

fetchAdByPlacementFunction · 0.85

Calls 1

fetchAdSlotFunction · 0.85

Tested by

no test coverage detected