testing Facebook Audience Network is incredibly slow

Hey Corona Community,

I have been trying to implement the Facebook Audience Network in a game that has already been released (adding it later). While it does technically work, the test ads take super long to load. for example I could easily be waiting 10-30 minutes before a test banner or test interstitial shows up on the screen.

As a control I disabled the rest of the app and only showed a background image, then tried to load some test ads but the same thing happend, just a giant load time.

There is also something strange going on. I am using live builds to test the system because you need to add the HASH ID to your code (which changes every build). When I change the code and save it and corona reloads the lua app on the device, the “adb logcat” shows that right before it reloads the app it is successfull in loading the advertisement. This strange phenomenon has been consistent across my tests.

Has anyone got an idea whats going on? Thanks in advance!

Corona Version: 2017.3128

Facebook Audience Network .version property: 2

System: Windows 10 64-bit (dont know if the sim is 64 bit)

Android Test Device: Samsung Galaxy Tab 3 Lite (SM-T113), Android 4.4.4

I haven’t heard about any such issues from other users.

Try using the Corona Sample app below and modify it with your credentials. You can use that as a baseline test to see if you still see delays.

https://github.com/coronalabs/plugins-sample-fbAudienceNetwork

(BTW. The Facebook hash-id is only changed if the app is deleted from the device before installing the update.

If you update the app by letting adb replace the existing app (adb install -r) the hash-id stays the same)

Thanks for your reply, just tested the sample app out on the old tab 3 lite and my personal onePlus 3. Assuming it should fetch these test ads within 2-3 minutes this sample project also doesnt work.
 

It leads me to believe the problem lies with facebook. When I save the code so corona updates the lua of the live build the console says that it failed to get the ads. 

Edit: after a little over 10 minutes its still trying to fetch an ad

Edit2: 40 minutes have passed now, not loaded. stopping the app :confused:

Can you try without using Live Build?

Test ads should normally load within a few seconds.

I built the test app (not live) and it worked on the Tab 3, but when I added the new hash id for my phone (I removed the app yesterday) It said that it failed to load. Atleast its not waiting this long anymore.

That live build thing might be a bug :slight_smile:

It’s important not to remove the app after changing the hash-id, otherwise a new hash-id will be generated and test ads will fail to load.

Yes, I got it to work on the main test device, Later on I will test with more devices. I can finnaly actually start properly implementing the ads where they need to be. Thanks!

Edit it seems to be working on IOS devices with real ads, not sure if they are supposed to pop up already but atleast I know it works now

I haven’t heard about any such issues from other users.

Try using the Corona Sample app below and modify it with your credentials. You can use that as a baseline test to see if you still see delays.

https://github.com/coronalabs/plugins-sample-fbAudienceNetwork

(BTW. The Facebook hash-id is only changed if the app is deleted from the device before installing the update.

If you update the app by letting adb replace the existing app (adb install -r) the hash-id stays the same)

Thanks for your reply, just tested the sample app out on the old tab 3 lite and my personal onePlus 3. Assuming it should fetch these test ads within 2-3 minutes this sample project also doesnt work.
 

It leads me to believe the problem lies with facebook. When I save the code so corona updates the lua of the live build the console says that it failed to get the ads. 

Edit: after a little over 10 minutes its still trying to fetch an ad

Edit2: 40 minutes have passed now, not loaded. stopping the app :confused:

Can you try without using Live Build?

Test ads should normally load within a few seconds.

I built the test app (not live) and it worked on the Tab 3, but when I added the new hash id for my phone (I removed the app yesterday) It said that it failed to load. Atleast its not waiting this long anymore.

That live build thing might be a bug :slight_smile:

It’s important not to remove the app after changing the hash-id, otherwise a new hash-id will be generated and test ads will fail to load.

Yes, I got it to work on the main test device, Later on I will test with more devices. I can finnaly actually start properly implementing the ads where they need to be. Thanks!

Edit it seems to be working on IOS devices with real ads, not sure if they are supposed to pop up already but atleast I know it works now