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

Function onAdAction

packages/shared/src/components/FeedItemComponent.tsx:375–384  ·  view source on GitHub ↗
(action: AdActions, ad: Ad)

Source from the content-addressed store, hash-verified

373 });
374
375 const onAdAction = (action: AdActions, ad: Ad) => {
376 logEvent(
377 adLogEvent(action, ad, {
378 columns: virtualizedNumCards,
379 column,
380 row,
381 ...feedLogExtra(feedName, ranking),
382 }),
383 );
384 };
385
386 if (item.type === FeedItemType.Ad && isBoostedSquadAd(item)) {
387 return (

Callers 3

FeedItemComponentFunction · 0.85
AdAsCommentFunction · 0.85
PostSidebarAdWidgetFunction · 0.85

Calls 3

adLogEventFunction · 0.90
feedLogExtraFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected