(
action: AdActions,
ad: Ad,
extra?: Record<string, unknown>,
)
| 356 | }); |
| 357 | |
| 358 | const onAdAction = ( |
| 359 | action: AdActions, |
| 360 | ad: Ad, |
| 361 | extra?: Record<string, unknown>, |
| 362 | ) => { |
| 363 | logEvent( |
| 364 | adLogEvent(action, ad, { |
| 365 | columns: virtualizedNumCards, |
| 366 | column, |
| 367 | row, |
| 368 | extra: { ...feedLogExtra(feedName, ranking).extra, ...extra }, |
| 369 | }), |
| 370 | ); |
| 371 | }; |
| 372 | |
| 373 | const onAdViewable = (ad: Ad, data: ViewabilityData) => |
| 374 | onAdAction(AdActions.Viewable, ad, viewabilityLogExtra(data)); |
no test coverage detected