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

iOS cannot show Ads #298

Open
truongntsotanext opened this issue Oct 31, 2023 · 5 comments
Open

iOS cannot show Ads #298

truongntsotanext opened this issue Oct 31, 2023 · 5 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@truongntsotanext
Copy link

MAX Plugin Version

5.11.5 (11.11.4 iOS)

Unity Version

2022.3.0

Device/Platform Info

iOS 14

Current Behavior

I encountered this problem when building my game on iOS platform. I am using Unity MAX SDK 5.11.5 (iOS 11.11.4).
I get this error when trying to display Initial Ads.
Unspecified - Failed start displaying [ALMediatedFullscreenAd thirdPartyAdPlacementIdentifier=inter_regular, adUnitIdentifier=7f118b884a4f2e38, format=INTER, networkName=AppLovin] : Passed an object of type other than ALAd: ALAdServerAd

And this error when displaying Rewarded Ads.
-5200 - Attempting to display ad with invalid ad type
Please help me!

Expected Behavior

No response

How to Reproduce

My project has Appsflyer, Firebase Analytics, and Facebook SDK integration.
This is my pod file content:
source 'https://cdn.cocoapods.org/'

platform :ios, '13.0'

target 'UnityFramework' do
pod 'AppLovinSDK', '11.11.4'
pod 'AppsFlyer-AdRevenue', '6.9.1'
pod 'AppsFlyerFramework', '6.12.1'
pod 'FBSDKCoreKit', '> 16.0.1'
pod 'FBSDKCoreKit_Basics', '
> 16.0.1'
pod 'FBSDKGamingServicesKit', '> 16.0.1'
pod 'FBSDKLoginKit', '
> 16.0.1'
pod 'FBSDKShareKit', '~> 16.0.1'
pod 'Firebase', :modular_headers => true
pod 'Firebase/Analytics', '10.15.0'
pod 'Firebase/Core', '10.15.0'
pod 'Firebase/RemoteConfig', '10.15.0'
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
end
target 'Unity-iPhone' do
end

Additional Info

No response

@truongntsotanext truongntsotanext added the bug Something isn't working label Oct 31, 2023
@JonathanLiuApp
Copy link
Contributor

Hi @truongntsotanext, could you try unchecking Add use_frameworks! to Podfile and Always add the main target to Podfile? You may need to add use_modular_headers! at the end of your podfile as mentioned in #252.

@truongntsotanext
Copy link
Author

Hi @JonathanLiuApp
Thank for your support, but I had uncheck Add user_frameworks! and Always add the main target in Resolver Setting.
And I try to add user_modular_headers! at the end of pod file. But issue still occurs.

@mofish9
Copy link

mofish9 commented Dec 1, 2023

Hi @truongntsotanext @JonathanLiuApp ,

Have you resolved this issue? We encountered the same issue and the error message is:

Debug [AppLovin MAX] Invoking event: OnRewardedAdFailedToDisplayEvent. Params: xxxxxx, [ErrorInfo code: -5200, message: Attempting to display ad with invalid ad type, adLoadFailureInfo: ], [AdInfo adUnitIdentifier: xxxxxx, adFormat: REWARDED, networkName: AppLovin, networkPlacement: inter_videoa, creativeIdentifier: 29620014, placement: , revenue: 0.00420811557769775, revenuePrecision: exact, dspName: ]

The environment is:
Unity 2021.3.25
MAX 6.0.1
iOS 12.0.0

@romas34
Copy link

romas34 commented Mar 13, 2024

Try looking at this ticket: #199
In particular my messages.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

4 participants