Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

'AppLovin' does not contain a definition for 'Initialize'

44 views
Skip to first unread message

Alex

unread,
Feb 1, 2025, 2:24:42 PMFeb 1
to Google Mobile Ads SDK Developers
I added  AppLovin Unity Mediation Plugin to my unity project.
Based on integration info here:https://developers.google.com/admob/unity/mediation/applovin#optional_steps
"Adding a call to AppLovin.Initialize() to your launch activity provides AppLovin the ability to track events as soon as the app starts." - but if I am adding AppLovin.Initialize(); to my script it gives me uch error: 'AppLovin' does not contain a definition for 'Initialize'.

How should I add initialization of Applovin mediation?

Mobile Ads SDK Forum Advisor

unread,
Feb 3, 2025, 1:37:47 AMFeb 3
to mrsh...@gmail.com, google-adm...@googlegroups.com

Hi Alex,

Thank you for contacting the Mobile Ads SDK support team.

Could you please specify which version you're using? According to the release notes, the latest Version 8.0.3.. It's always recommended to use the most recent version to avoid conflicts, so please ensure you've integrated the latest one.

Please confirm that you have followed the instructions in AppLovin's MAX Test Mode guide to enable AppLovin test ads. Additionally, ensure that you have register your test device for AdMob and enable test mode in the AppLovin UI.

If you're still experiencing the issue after following the steps above, please share your sample project where you are facing the issue with us.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002vGzVqQAK&entry.80707362=00286579

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGzdB:ref" (ADR-00286671)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Alex

unread,
Feb 3, 2025, 12:33:44 PMFeb 3
to Google Mobile Ads SDK Developers
Hello,

I am using 8.0.3, but this issue happens for many versions.
I followed the instructions. 
No need to make test user in order to see the error in the script.
It just give me option to use AppLovin.SetHasUserConsent or AppLovin.SetDoNotSell. No option to use AppLovin.Initialize()!


понедельник, 3 февраля 2025 г. в 08:37:47 UTC+2, Mobile Ads SDK Forum Advisor:

Mobile Ads SDK Forum Advisor

unread,
Feb 3, 2025, 3:28:48 PMFeb 3
to mrsh...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

Please note that you shouldn't need to initialize the AppLovin SDK by yourselves, as both the adapter and the SDK will be initialized when the GMA SDK initializes. No additional steps are required for initialization.

As mentioned in Step 4: Implement privacy settings on AppLovin SDK, AppLovin supports reading the consent string from shared preferences and setting the consent status accordingly. Therefore, if publishers are already using a CMP SDK to set the consent string, they don't need to call setHasUserConsent() to pass the consent to the AppLovin SDK.

If the issue still persists, kindly provide the below information via reply to author option for further investigation:

  • app ID
  • ad unit ID
  • Unity Plugin version
  • Unity Editor version  

Alex

unread,
Feb 3, 2025, 3:46:56 PMFeb 3
to Google Mobile Ads SDK Developers
Please, take a look here: https://developers.google.com/admob/unity/mediation/applovin#optional_steps
Quote:"Optional steps
Optimizations

Adding a call to AppLovin.Initialize() to your launch activity provides AppLovin the ability to track events as soon as the app starts."

Can't add AppLovin.Initialize()! No such method in the SDK.

понедельник, 3 февраля 2025 г. в 22:28:48 UTC+2, Mobile Ads SDK Forum Advisor:

Mobile Ads SDK Forum Advisor

unread,
Feb 3, 2025, 6:20:29 PMFeb 3
to mrsh...@gmail.com, google-adm...@googlegroups.com
Hi,

Please note that from 8.0.2  following methods are removed from the AppLovin class:
  • Initialize()
  • SetIsAgeRestrictedUser(bool)

Alex

unread,
Feb 3, 2025, 6:52:21 PMFeb 3
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
Thank you for informing me.
Probably you should change “Optional steps” in tutorial.

Вт, 4 февр. 2025 г. в 01:19, Mobile Ads SDK Forum Advisor <mobile...@forumsupport.google>:
Reply all
Reply to author
Forward
0 new messages