Hi Rob or others,
I can’t seem to get the Facebook Audience Network ad plugin to work. Does it still work?? To keep it simple, I tried the sample code at github:
https://github.com/coronalabs/plugins-sample-fbAudienceNetwork
which the docs say to use, but I follow all the steps, and even after plugging in the device ID, the Facebook network always returns this in the adb:
[lua]
add the following code before loading an ad: AdSettings.addTestDevice(“144f8963-522a-43d0-83f8-82cff1d21240”);
[/lua]
is the plugin doing that?
since it keeps just giving me a new test ID, it’s as if the plugin isn’t passing it
this is the plugin that demo uses:
[lua]
plugins =
{
[“plugin.fbAudienceNetwork”] =
{
publisherId = “com.coronalabs”
},
},
[/lua]
I have all three variables populated in the demo code, I see in the code that if DEVICE_1_HASH_ID is detected it will obtain the device hash, but I’ve populated that variable and facebook just keeps returning the same thing as if
AdSettings.addTestDevice(“144f8963-522a-43d0-83f8-82cff1d21240”); wasn’t called
I can send you the IDs I use (or even the entire main.lua from that github demo with my variables plugged in) if that helps. I have ad placements and all already set up in the Facebook Monetization pages
please help
This is the adb output when I run this adb command:
adb logcat AdInternalSettings:v *:s
and after opening the app several times I get this: (every time it just says call the addtestdevice before loading an ad, which I’m not sure if the plugin is doing)
[lua]
C:\Users\jm>adb logcat AdInternalSettings:v *:s
--------- beginning of crash
--------- beginning of main
--------- beginning of system
05-09 13:36:42.376 4748 4748 D AdInternalSettings: Test mode device hash: 144f8963-522a-43d0-83f8-82cff1d21240
05-09 13:36:42.376 4748 4748 D AdInternalSettings: When testing your app with Facebook’s ad units you must specify the device hashed ID to ensure the delivery
of test ads, add the following code before loading an ad: AdSettings.addTestDevice(“144f8963-522a-43d0-83f8-82cff1d21240”);
05-09 13:42:50.659 8575 8575 D AdInternalSettings: Test mode device hash: e552e8db-cd1f-4267-884f-b02a83f0c65e
05-09 13:42:50.659 8575 8575 D AdInternalSettings: When testing your app with Facebook’s ad units you must specify the device hashed ID to ensure the delivery
of test ads, add the following code before loading an ad: AdSettings.addTestDevice(“e552e8db-cd1f-4267-884f-b02a83f0c65e”);
05-09 13:48:46.231 12034 12034 D AdInternalSettings: Test mode device hash: e90fcbfd-4daf-4632-9672-2afe0edf3910
05-09 13:48:46.231 12034 12034 D AdInternalSettings: When testing your app with Facebook’s ad units you must specify the device hashed ID to ensure the delivery
of test ads, add the following code before loading an ad: AdSettings.addTestDevice(“e90fcbfd-4daf-4632-9672-2afe0edf3910”);
[/lua]
am I doing something wrong or that plugin just doesn’t work any more?
I saw postings about FB sometimes changing things that break the plugin, if so, can it be fixed fast? I don’t have the skills to work on open source code, I only know Lua and some web languages
Thanks so much,
John