Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Possible Glitch or Problem with Appodeal Banner Ads in Build Settings?
Started by shaneobrien2000 Feb 10 2019 12:47 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

shaneobrien2000

[GLOBAL: userInfoPane.html]
shaneobrien2000
  • Observer

  • 4 posts
  • Corona SDK

Hello all: I'm experiencing a problem with trying to use the Appodeal plugin as I want to have a banner ad in my game. When I set up the build.settings file with the plugin I get the following errors:

 

Corona Simulator Runtime Error - "Attempt to call field 'request' (a nil value) File: ?" &

"Attempt to call field 'request' (a nil value) File: ?"

stack traceback:
?: in function 'downloadManifest'
?: in function 'downloadQueuedManifests'
?: in function <?:934>
?: in main chunk
 
After a lot of trial and error I discovered that editing out the Appodeal banner plugin for Yandex will finally get my app running for a while. Then it will fail with the errors again. Only by removing or commenting out the Appodeal plugin lines will make the game run again. I tried editing out just the banner plugins but sometimes it will run (temporarily) & other times it will still crash. Very inconsistent. I am using Corona Build 3462 and have also tried the last public release. Using Mac OS 10.14.1 I'm not sure what is going on here. I have another game using Appodeal for interstitial ads and it runs fine. Do banner ads still work for Appodeal? My game is already released earlier and I registered it with Appodeal (iTunes & GooglePlay) My build.settings are here with the one line commented out:
 
settings =
{
	orientation =
	{
		default = "portrait",
        supported = { "portrait" }
	},
	
		plugins =
	{
	
		-- plugin for appodeal ads                
        -- Base
		['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },
		
		-- Banner
		['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' },
--		['plugin.appodeal.Yandex'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' },
        
	},
	
 	android =
	{
		versionCode = "13",
		usesPermissions =
		{
			"android.permission.INTERNET",
		},
	},

	iphone =
	{
		-- set up icon set in images.xcassets folder for ios11
		xcassets = "Images.xcassets",
		plist =
		{	
			CFBundleShortVersionString = "1.3",			

--          Launch Screen - not used using UILaunchImages instead         
--			UILaunchStoryboardName = "LaunchScreen",
			
		-- for web page access	
		NSAppTransportSecurity =
			{ NSAllowsArbitraryLoads = true },
			
			
			-- Launch image files table (start launch image before app runs)
            UILaunchImages = {
                {  -- iPhone 4 Portrait
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{320, 480}"
                },
                {  -- iPhone 4 LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{320, 480}"
                },
                {  -- iPhone 4 LandscapeRight
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{320, 480}"
                },
                {  -- iPhone 5 Portrait
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-568h",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{320, 568}"
                },
                {  -- iPhone 5 LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-568h",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{320, 568}"
                },
                {  -- iPhone 5 LandscapeRight
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-568h",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{320, 568}"
                },
                {  -- iPad Portrait
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-Portrait",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{768, 1024}"
                },
                {  -- iPad LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-Landscape",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{768, 1024}"
                },
                {  -- iPad LandscapeRight
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default-Landscape",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{768, 1024}"
                },
                {  -- iPhone 6 Portrait
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-667h",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{375, 667}"
                },
                {  -- iPhone 6 LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-667h",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{375, 667}"
                },
                {  -- iPhone 6 LandscapeRight
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-667h",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{375, 667}"
                },
                {  -- iPhone 6 Plus Portrait
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-736h",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{414, 736}"
                },
                {  -- iPhone 6 Plus LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-Landscape-736h",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{414, 736}"
                },
                {  -- iPhone 6 Plus LandscapeRight
                    ["UILaunchImageMinimumOSVersion"] = "8.0",
                    ["UILaunchImageName"] = "Default-Landscape-736h",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{414, 736}"
                },
                {  -- iPad Pro Portrait
                    ["UILaunchImageMinimumOSVersion"] = "9.0",
                    ["UILaunchImageName"] = "Default-Portrait-1366",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{1024, 1366}"
                },
                {  -- iPad Pro Landscape Right
                    ["UILaunchImageMinimumOSVersion"] = "9.0",
                    ["UILaunchImageName"] = "Default-Landscape-1366",
                    ["UILaunchImageOrientation"] = "LandscapeRight",
                    ["UILaunchImageSize"] = "{1024, 1366}"
                },
                {  -- iPad Pro Landscape Left
                    ["UILaunchImageMinimumOSVersion"] = "9.0",
                    ["UILaunchImageName"] = "Default-Landscape-1366",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{1024, 1366}"
                },
            },    
			UIPrerenderedIcon = true,
			UIApplicationExitsOnSuspend = false,	-- must be false for single sign-on to work

		}
	}
}

Thanks everyone.

 



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,044 posts
  • Corona SDK

No problems with appodeal banners in my apps. Can we see the code for that "request"?



[TOPIC: post.html]
#3

shaneobrien2000

[GLOBAL: userInfoPane.html]
shaneobrien2000
  • Observer

  • 4 posts
  • Corona SDK

Not sure how I can find that code for the request. My main.lua is only a few lines long - require "composer" & then gotoScene "startup". I  edited out the goto scene line so it runs from the build.settings to the main.lua then stops. Still getting the above error. (a network situation?) After a bit of work I finally just built the app and tested it on my iPad and everything seems to work fine. The test banner pops up OK. I'm using Corona build 3462 with Xcode 10.1 set up for iOS 12.1. During the build process I noticed in the Corona Simulator Console several warning messages for the Appodeal plugin/Facebook Audience:

 

ld: warning: object file (/Applications/SHANES WORK/SAIKO GAMES/   test builds/FORTUNE TELLER/GREAT ZORBINI 1.3/GREAT ZORBINI DEBUG.app/.build/plugin.appodeal.FacebookAudience/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdSimpleScrollView.m.o)) was built for newer iOS version (9.0) than being linked (8.0)

 

Not sure if that has anything to do with this. So, my app won't run in the Corona Simulator, unless I edit out the plugin section (with the Appodeal plugins) in the build.settings file. Then it will run OK. Even though it won't run in the Simulator if I leave the plugins intact, I can build the app and test it OK on my iPad. Hope this helps others in the future... I know Appodeal banners/ads won't show up in the simulator but I didn't think it would stop it running altogether. 



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,044 posts
  • Corona SDK

Wow. I really don't know what you are doing. Appodeal runs fine in the simulator. No ads but it still builds without any modification. This is the only reference that comes on my machine:

 

 

Feb 10 10:24:51.754 appodeal.init() WARNING: The Appodeal plugin is only supported on Android and iOS devices. Please build for device




[topic_controls]
[/topic_controls]