Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAMBannerEventHandler is not available #940

Closed
korre opened this issue Nov 30, 2023 · 2 comments
Closed

GAMBannerEventHandler is not available #940

korre opened this issue Nov 30, 2023 · 2 comments
Assignees

Comments

@korre
Copy link

korre commented Nov 30, 2023

Trying to implement Prebid for iOS using GAM Rendering integrations following this guide for Banner: https://docs.prebid.org/prebid-mobile/modules/rendering/ios-sdk-integration-gam.html

// 1. Create an Event Handler
let eventHandler = GAMBannerEventHandler(adUnitID: GAM_AD_UNIT_ID,
                                         validGADAdSizes: [NSValueFromGADAdSize(adSize)])
       
// 2. Create a Banner View
let banner = BannerView(configID: CONFIG_ID,
                        eventHandler: eventHandler)

banner.delegate = self

addBannerToUI(banner: banner)
        
// 3. Load an Ad
banner.loadAd()

Im stuck on "GAMBannerEventHandler". This class is nowhere to be found..

I have installed these pods:

  pod 'PrebidMobile', '~> 2.1.6'
  pod 'PrebidMobileAdMobAdapters', '~> 2.1.6'

I've also googled and searched but the class is non existent so how can I proceed here?

@korre
Copy link
Author

korre commented Nov 30, 2023

I finally found some code examples where I could see an missing import which is not mentioned in the example code.

https://github.com/prebid/prebid-mobile-ios/blob/master/Example/PrebidDemo/PrebidDemoSwift/Examples/GAM/RenderingAPI/GAMDisplayBannerViewController.swift

pod 'PrebidMobileGAMEventHandlers', '~> 2.1.6'

Maybe this is something to add to the docs?

@jsligh jsligh moved this from Triage to Ready for Dev in Prebid Mobile Prioritization Jun 3, 2024
@jsligh jsligh self-assigned this Jun 3, 2024
@jsligh
Copy link
Collaborator

jsligh commented Jun 3, 2024

Being addressed here: prebid/prebid.github.io#5385

@jsligh jsligh closed this as completed Jun 4, 2024
@github-project-automation github-project-automation bot moved this from Ready for Dev to Done in Prebid Mobile Prioritization Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants