Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

KIDOZ Banners
Started by antari200 Jul 11 2018 08:39 AM

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

antari200

[GLOBAL: userInfoPane.html]
antari200
  • Observer

  • 11 posts
  • Corona SDK

I'm trying to implement ads from KIDOZ into our Corona project.

 

I've managed to do interstitials and rewarded video just fine, but banners won't display.  I checked on device, and when I call:

 

kidoz.load( "banner", { adPosition = "top" } );

 

I get this in my logs:

 

WARNING: kidoz.load(adType, options), adType 'banner' not loaded

 

I'm building for Android, too, which should support KIDOZ banners if I'm not mistaken.  Using Corona build 3318.



[TOPIC: post.html]
#2

antari200

[GLOBAL: userInfoPane.html]
antari200
  • Observer

  • 11 posts
  • Corona SDK

Fixed that issue.  Was trying to pass in the position of the banners on .show instead of .load, and it spat out that weird error.

 

However, now that I'm getting banners working, I'm noticing the banners stay in whatever position I first call them into.  So for instance, on startup, I'll call a banner ad on the top of the main menu.  From then on, even if I pass "bottom" like so:

 

kidoz.load( "banner", { adPosition = "bottom" } );

 

It'll still show banners on the top of screen.  And vice versa as well, if I start out at the bottom, banners will always display on the bottom and never switch to the top if I instead pass "top" into the call.  I replicated both of these events on device, and I'm positive I am passing the correct values into the method.  I'm also calling kidoz.hide("banner"); before each load call.



[TOPIC: post.html]
#3

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 674 posts
  • Corona SDK

Call kidoz.hide("banner"); before calling the show again. That sort of work the last time I tested it.



[TOPIC: post.html]
#4

antari200

[GLOBAL: userInfoPane.html]
antari200
  • Observer

  • 11 posts
  • Corona SDK

kidoz.hide("banner");

 

I tried calling it before loading an ad.  I tried calling it before showing an ad.  I tried calling it before both loading AND showing an ad.  still will not change positions once its initial position has been set.

 

And why not, for science's sake, I tried never even calling .hide to begin with.  But yeah, that also changes nothing.

 

Admob more or less follows the same structure as the lua for the kidoz plugin, and with Admob I never had a problem switching a banner ad from top to bottom or vice versa.

 

 

Edit - upon furthest testing, I'm finding that the hide function doesn't work at all.  This is why the banner can't move.  If I call a banner ad onto the scene, and try hide()-ing it in the next scene, it stays there instead of being removed.  This is kind of a big deal, I'd think, since this means that trying to hide the ads when, say, the user purchases an ad removal pack is impossible.  At least, currently.



[TOPIC: post.html]
#5

antari200

[GLOBAL: userInfoPane.html]
antari200
  • Observer

  • 11 posts
  • Corona SDK

Also can't seem to get ads to show at all on iOS.

 

Whenever I call load or show for the ads after initialization, I get this warning:

 

 -[WKWebViewConfiguration setMediaTypesRequiringUserActionForPlayback:]: unrecognized selector sent to instance

 

Would be lovely to get some assistance on these issues.

 

 

Edit- Also, when ads are failing to show on iOS device, the callback function isn't being invoked.  This makes me think there's something going wrong while the request is being set up, but before it is actually sent.




[topic_controls]
[/topic_controls]