(
action: AdActions,
ad: Ad,
extra?: Record<string, unknown>,
)
| 328 | }); |
| 329 | |
| 330 | const onAdAction = ( |
| 331 | action: AdActions, |
| 332 | ad: Ad, |
| 333 | extra?: Record<string, unknown>, |
| 334 | ) => { |
| 335 | logEvent( |
| 336 | adLogEvent(action, ad, { |
| 337 | columns: virtualizedNumCards, |
| 338 | column, |
| 339 | row, |
| 340 | extra: { ...feedLogExtra(feedName, ranking).extra, ...extra }, |
| 341 | }), |
| 342 | ); |
| 343 | }; |
| 344 | |
| 345 | const onAdViewable = (ad: Ad, data: ViewabilityData) => |
| 346 | onAdAction(AdActions.Viewable, ad, viewabilityLogExtra(data)); |
no test coverage detected