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

Function fetchAd

packages/shared/src/lib/ads.ts:337–338  ·  view source on GitHub ↗
(params: URLSearchParams)

Source from the content-addressed store, hash-verified

335};
336
337export const fetchAd = async (params: URLSearchParams): Promise<Ad | null> =>
338 fetchAdSlot({ path: '/v1/a', params });
339
340export const fetchCommentAd = async (): Promise<Ad | null> => {
341 return fetchAdByPlacement({

Callers 3

useFeedFunction · 0.85
useFeedAdRefreshFunction · 0.85
useAutoRotatingAdsFunction · 0.85

Calls 1

fetchAdSlotFunction · 0.85

Tested by

no test coverage detected