# IMAPlugin Class

    public class IMAPlugin : CLPluginProtocol

Plugin wrapping Google IMA ads

### Lifecycle

- `init()`

  #### Declaration

  Swift

      public init()

### Public

- `name`

  #### Declaration

  Swift

      public let name: String

- `version`

  #### Declaration

  Swift

      public let version: String

- `pluginAttached(_:)`

  Attach CastlabsIMA plugin to the Core SDK

  #### Declaration

  Swift

      public func pluginAttached(_ context: CLPluginContext) -> Int

  #### Parameters

  `context` | plugin context

- `pluginDetached()`

  Detach CastlabsIMA plugin from the Core SDK

  #### Declaration

  Swift

      public func pluginDetached()

- `configure(_:)`

  Pass plugin configuration

  #### Declaration

  Swift

      public func configure(_: CLPluginConfiguration)

  #### Parameters

  `configuration` | plugin configuration