# GoogleInteractiveMediaAds Framework Reference

# IMACompanionDelegate

    @protocol IMACompanionDelegate <NSObject>

Delegate to receive events from the companion ad slot.
- `


  ### [-companionSlot:filled:](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMACompanionDelegate#/c:objc(pl)IMACompanionDelegate(im)companionSlot:filled:)


  ` Called when the slot is either filled or not filled.

  #### Declaration

  Swift

      optional func companionSlot(_ slot: https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Classes/IMACompanionAdSlot.html, filled: Bool)

  Objective-C

      - (void)companionSlot:(nonnull https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Classes/IMACompanionAdSlot.html *)slot filled:(BOOL)filled;

  #### Parameters

  |---|---|
  | ` slot ` | the IMACompanionAdSlot receiving the event |
  | ` filled ` | is the slot filled or not |

- `


  ### [-companionSlotWasClicked:](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMACompanionDelegate#/c:objc(pl)IMACompanionDelegate(im)companionSlotWasClicked:)


  ` Called when the slot is clicked on by the user and will
  successfully navigate away.

  #### Declaration

  Swift

      optional func companionSlotWasClicked(_ slot: https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Classes/IMACompanionAdSlot.html)

  Objective-C

      - (void)companionSlotWasClicked:(nonnull https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Classes/IMACompanionAdSlot.html *)slot;

  #### Parameters

  |---|---|
  | ` slot ` | the IMACompanionAdSlot receiving the event |