[Question] MobileAds.RaiseAdEventsOnUnityMainThread

1,289 views
Skip to first unread message

AoC

unread,
May 15, 2023, 8:13:02 AM5/15/23
to Google Mobile Ads SDK Developers
Hello,

I would like to understand if setting 

MobileAds.RaiseAdEventsOnUnityMainThread = true;

Does replace the workaround of calling all Abmob functions inside the  MobileAdsEventExecutor.ExecuteInUpdate

Mobile Ads SDK Forum Advisor

unread,
May 15, 2023, 2:04:35 PM5/15/23
to aceofclu...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for reaching out to us.

With regard to your concern, as per the release notes (https://github.com/googleads/googleads-mobile-unity/releases) for version 8.0.0, the "MobileAds.RaiseAdEventsOnUnityMainThread" have been added as option for raising ad events on the Unity main thread. As per the "MobileAdsEventExecutor.ExecuteInUpdate", it was already included in the SDK assets for Unity (https://github.com/googleads/googleads-mobile-unity/blob/b6c78978150bf2e224b4fb5325631ee3739ba22f/source/plugin/Assets/GoogleMobileAds/Common/MobileAdsEventExecutor.cs). As a work around, you might need to add code to synchronize the Mobile Ads SDK events with the Unity main thread. If you would like the Mobile Ads SDK to handle this threading concern for you, set MobileAds.RaiseAdEventsOnUnityMainThread to true.

Regards,

Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2lHwrJ:ref
Reply all
Reply to author
Forward
0 new messages