I created sample adds on my Facebook account and updated the variables
local bannerPlacementID = "my banner ID" local interstitialPlacementID = "my interstitial ID"
Looks like it cannot be tested in the emulator because it show this on the log:
`WARNING: The ‘plugin.fbAudienceNetwork’ library is not available on this platform.
`
When I build and install on my Android device the log shows error messages for
com.google.android.gms.ads.identifier.AdvertisingIdClient.
10-23 00:55:50.096: E/AndroidRuntime(25977): Process: com.hotmail.adammendoza.plugins\_sample\_fbAudienceNetwork\_master, PID: 25977 10-23 00:55:50.096: E/AndroidRuntime(25977): java.lang.RuntimeException: An error occurred while executing doInBackground() 10-23 00:55:50.096: E/AndroidRuntime(25977): at android.os.AsyncTask$3.done(AsyncTask.java:309) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.FutureTask.run(FutureTask.java:242) 10-23 00:55:50.096: E/AndroidRuntime(25977): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.Thread.run(Thread.java:818) 10-23 00:55:50.096: E/AndroidRuntime(25977): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient; 10-23 00:55:50.096: E/AndroidRuntime(25977): at plugin.fbAudienceNetwork.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:79) 10-23 00:55:50.096: E/AndroidRuntime(25977): at plugin.fbAudienceNetwork.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:72) 10-23 00:55:50.096: E/AndroidRuntime(25977): at android.os.AsyncTask$2.call(AsyncTask.java:295) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.util.concurrent.FutureTask.run(FutureTask.java:237) 10-23 00:55:50.096: E/AndroidRuntime(25977): ... 4 more 10-23 00:55:50.096: E/AndroidRuntime(25977): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.identifier.AdvertisingIdClient" on path: DexPathList[[zip file "/data/app/com.hotmail.adammendoza.plugins\_sample\_fbAudienceNetwork\_master-1/base.apk"],nativeLibraryDirectories=[/data/app/com.hotmail.adammendoza.plugins\_sample\_fbAudienceNetwork\_master-1/lib/arm, /data/app/com.hotmail.adammendoza.plugins\_sample\_fbAudienceNetwork\_master-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]] 10-23 00:55:50.096: E/AndroidRuntime(25977): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 10-23 00:55:50.096: E/AndroidRuntime(25977): ... 8 more 10-23 00:55:50.096: E/AndroidRuntime(25977): Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.ads.identifier.AdvertisingIdClient 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.Class.classForName(Native Method) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 10-23 00:55:50.096: E/AndroidRuntime(25977): at java.lang.ClassLoader.loadClass(ClassLoader.java:504) 10-23 00:55:50.096: E/AndroidRuntime(25977): ... 9 more 10-23 00:55:50.096: E/AndroidRuntime(25977): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available 10-23 00:55:50.131: E/android.os.Debug(2596): ro.product\_ship = true 10-23 00:55:50.131: E/android.os.Debug(2596): ro.debug\_level = 0x4f4c 10-23 00:55:50.131: E/android.os.Debug(2596): sys.mobilecare.preload = false 10-23 00:55:50.871: E/ViewSystem(25977): ViewRootImpl #2 Surface is not valid. 10-23 00:55:51.231: E/WindowManager(25977): android.view.WindowLeaked: Activity com.ansca.corona.CoronaActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{d92b25 V.E...... R.....ID 0,0-668,602} that was originally added here 10-23 00:55:51.231: E/WindowManager(25977): at android.view.ViewRootImpl.\<init\>(ViewRootImpl.java:568) 10-23 00:55:51.231: E/WindowManager(25977): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:326) 10-23 00:55:51.231: E/WindowManager(25977): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 10-23 00:55:51.231: E/WindowManager(25977): at android.app.Dialog.show(Dialog.java:350) 10-23 00:55:51.231: E/WindowManager(25977): at com.ansca.corona.Controller$4.run(Controller.java:1079) 10-23 00:55:51.231: E/WindowManager(25977): at android.os.Handler.handleCallback(Handler.java:739) 10-23 00:55:51.231: E/WindowManager(25977): at android.os.Handler.dispatchMessage(Handler.java:95) 10-23 00:55:51.231: E/WindowManager(25977): at android.os.Looper.loop(Looper.java:158) 10-23 00:55:51.231: E/WindowManager(25977): at android.app.ActivityThread.main(ActivityThread.java:7230) 10-23 00:55:51.231: E/WindowManager(25977): at java.lang.reflect.Method.invoke(Native Method) 10-23 00:55:51.231: E/WindowManager(25977): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 10-23 00:55:51.231: E/WindowManager(25977): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 10-23 00:55:51.491: E/ViewRootImpl(2596): sendUserActionEvent() mView == null 10-23 00:55:52.181: E/ContactsProvider\_EventLog(4921): Flush buffer to file cnt : 8 size : 2Kb duration : 100ms lastUpdatedAfter : 180394ms 10-23 00:56:00.071: E/Watchdog(2596): !@Sync 12892 [10-23 00:56:00.074]