SDK tried to perform a networking task before being initialized

33 views
Skip to first unread message

Lokesh T

unread,
Apr 3, 2024, 5:40:44 PM4/3/24
to Google Ads API and AdWords API Forum
Hi

I followed the guide and is running: GADMobileAds.sharedInstance().start()
From App delegate.

But I get this error in the didFailToReceiveAdWithError delegate function:

Error Domain=com.google.admob Code=2 "SDK tried to perform a networking task before being initialized." UserInfo={NSLocalizedDescription=SDK tried to perform a networking task before being initialized., gad_response_info=  ** Response Info **

    Response ID: (null)

  ** Loaded Adapter Response **

    (null)

  ** Extras Dictionary **

    {

    }

  ** Mediation line items **

}


The Google SDK is now in the Core module, which is imported into many of our main modules. We also have feature modules that imports Core module. So those feature modules can have access to the GAM SDK code.

The issue didn't raised when the GAM is not in the Core Module. It started showing this error when we moved it in our Core Module.

Im using the SDK (11.0.0) via Cocoapods. 


Reply all
Reply to author
Forward
0 new messages