Skip to content

AudienceNetworkAds.initialize() error in Logcat (Android Studio) #93

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

Closed
ijm700 opened this issue Apr 24, 2019 · 9 comments
Closed

AudienceNetworkAds.initialize() error in Logcat (Android Studio) #93

ijm700 opened this issue Apr 24, 2019 · 9 comments

Comments

@ijm700
Copy link

ijm700 commented Apr 24, 2019

Hello when running my app in Android Studio I get this log in the logcat "You don't call AudienceNetworkAds.initialize(). Some functionality may not work properly" but no where in the FAN network documentation did it ever mention to make this call or didn't even show in the example code so how will developers know to include this ? and what functionality wouldn't' work properly because Im still receiving ads ? also I don't call an initialize method in my iOS app for FAN ads and I don't receive this warning so i'm kind of of confused why the documentation here makes no mention of this "intialize()" method ? ( https://developers.facebook.com/docs/audience-network/android-banners )

@phzhou
Copy link
Contributor

phzhou commented Apr 30, 2019

Hi! Sorry for not being very clear in the banner document specifically about initializing the SDK.
Please refer to the sample code here about the SDK initialization. We would update the documentation shortly as well.
Thank you!

@phzhou phzhou closed this as completed Apr 30, 2019
@ijm700
Copy link
Author

ijm700 commented Apr 30, 2019

@phzhou is there an equivalent method for iOS ?

@phzhou
Copy link
Contributor

phzhou commented Apr 30, 2019

Hi @Izzyjm no there is no equivalent for iOS, initialization of SDK is only for Android

@ijm700
Copy link
Author

ijm700 commented May 18, 2019

@phzhou I implemented AudienceNetworkAds.initialize(); but I am getting an error , what am I suppose to put inside the parenthesis ?

@ijm700
Copy link
Author

ijm700 commented May 31, 2019

?

@phzhou
Copy link
Contributor

phzhou commented May 31, 2019

Hi @Izzyjm please refer to the documentation for sdk initialisation here:
https://developers.facebook.com/docs/audience-network/android-sdk-initialize
Thanks!

@ijm700
Copy link
Author

ijm700 commented Jun 1, 2019

@phzhou do we have to implement the helper class, or can we just call AudienceNetworkAds.initialize(); ?

@AntRemo
Copy link

AntRemo commented Aug 3, 2019

Hi @phzhou

I have the same question as @Izzyjm

Thanks

@AG-Developers
Copy link

Hello when running my app in Android Studio I get this log in the logcat "You don't call AudienceNetworkAds.initialize(). Some functionality may not work properly" but no where in the FAN network documentation did it ever mention to make this call or didn't even show in the example code so how will developers know to include this ? and what functionality wouldn't' work properly because Im still receiving ads ? also I don't call an initialize method in my iOS app for FAN ads and I don't receive this warning so i'm kind of of confused why the documentation here makes no mention of this "intialize()" method ? ( https://developers.facebook.com/docs/audience-network/android-banners )

I think you forget to use maven() and both dependencies of facebook (visit- https://developers.facebook.com/docs/audience-network/guides/adding-sdk/android )

without adding both dependencies you can not add AudienceNetworkAds.initialize();
-now no need to implement helper class, this is deprecated now.

Enjoy, Happy Coding :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants