googleads / googleads-mobile-ios-mediation

Apache License 2.0
120 stars 137 forks source link

Project doesn't compile after adding GoogleMobileAdsMediationTestSuite #356

Closed sbaropeak closed 2 years ago

sbaropeak commented 2 years ago

Hi, not sure if this the right place to file an issue for this problem but I couldn't find a better one.

I've created an empty iOS App project that uses cocoapods and just adds these two pods:

  pod 'Google-Mobile-Ads-SDK'
  pod 'GoogleMobileAdsMediationTestSuite'

Cocoapods resolves to these version:

The project doesn't build and the linker raises these errors:

Screenshot 2022-04-20 at 09 05 36

Is there something I'm doing wrong?

Thanks in advance.

chlandacastro commented 2 years ago

HI @sbaropeak! I noticed you are still using the kGAD prefix. In Google Mobile Ads SDK 8.12.0 the kGAD prefix was deprecated. You should use those with GAD prefix instead.

sbaropeak commented 2 years ago

Hi @chlandacastro, thanks for your answer.

I'm not using the prefix kGAD, the project is the default iOS app from Xcode, I didn't add a single line of code. I just ran pod init, added the those two pods to the Podfile and then ran pod install.

chlandacastro commented 2 years ago

hi @sbaropeak ! Can you go to the AdTest code and remove the k in kGAD. I think that will solve this problem. Let me know how it goes.

sbaropeak commented 2 years ago

Hi @chlandacastro, thanks for your response.

I have uploaded the project to a repo so you can see that there is no code using kGAD or anything at all.

Looking at the linker error in detail we can see that the references to kGAD constants are inside the GoogleMobileAdsMediationTestSuite pod:

Screenshot 2022-04-22 at 09 52 30

Thanks

chlandacastro commented 2 years ago

Hi @sbaropeak Yes, I can see it now. The GoogleMobileAdsMediationTestSuite requires an update to be compatible with iOS v9.x SDKs and we are working on an update. But also in the meantime we recommend using Ad Inspector Sorry for the inconvenience.

sbaropeak commented 2 years ago

HI @chlandacastro ! No worries.

We are using Ad Inspector now, but we have some issues with it. Sometimes it displays just a blank screen or it displays an error on test devices registered on the AdMob UI (https://support.google.com/admob/answer/9691433).

Do you know when the update for GoogleMobileAdsMediationTestSuite would be released?

Thank you!

ericleich commented 2 years ago

This is now fixed when using Mediation Test Suite version 3.0.0 which adds support for Google Mobile Ads SDK iOS v9.x (see release notes)