Skip to content

Adapter doesn't report success #37

@deakjahn

Description

@deakjahn

Contrary to what the source says:

// This method won't be called for custom events.
override fun initialize(
context: Context,
initializationCompleteCallback: InitializationCompleteCallback,
list: List<MediationConfiguration>
) {
return
}

it is called, very much so, and expects to be called back as:

initializationCompleteCallback.onInitializationSucceeded()

Otherwise, the GMS will wait for the timeout, note a failure with the adapter and won't use it at all.

So:

  override fun initialize(context: Context, initializationCompleteCallback: InitializationCompleteCallback, list: List<MediationConfiguration>) {
    Log.d(TAG, "initialize()")
    HwAds.init(context);
    initializationCompleteCallback.onInitializationSucceeded()
  }

See the documentation at: https://developers.google.com/ad-manager/mobile-ads-sdk/android/custom-events/setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions