Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iADs: possible?
Started by gustavoschv Nov 22 2011 08:40 AM

- - - - -
38 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

Rob, should the banners appear on the simulator after the steps you gave me?
uid: 95495 topic_id: 18109 reply_id: 69780


[TOPIC: post.html]
#27

carlos m. icaza

[GLOBAL: userInfoPane.html]
carlos m. icaza
  • Corona Geek

  • 2,992 posts
  • Alumni

NOOK is coming - the New NOOK bits (from B&N) not ours, were frozen days after we froze FIRE, ergo we enabled fire. Now that we have the latest NOOK bits (from B&N) we should enable it just like we did with FIRE.
And regarding the other company, sure, but when was the last time you saw any member of their C staff answering on non holidays. And really listen to you guys.

Think again. I listen. Otherwise I would not be posting on a Black Friday....
C
uid: 24 topic_id: 18109 reply_id: 69785


[TOPIC: post.html]
#28

carlos m. icaza

[GLOBAL: userInfoPane.html]
carlos m. icaza
  • Corona Geek

  • 2,992 posts
  • Alumni

Oh - and just in case I forget - .......
;-)

c
uid: 24 topic_id: 18109 reply_id: 69786


[TOPIC: post.html]
#29

Omnigeek Media

[GLOBAL: userInfoPane.html]
Omnigeek Media
  • Corona Geek

  • 2,975 posts
  • Corona SDK

No. You have to build for device to see the ads. You should get an inMobi test ad but not in the simulator.
uid: 19626 topic_id: 18109 reply_id: 69787


[TOPIC: post.html]
#30

Puzzle Runner

[GLOBAL: userInfoPane.html]
Puzzle Runner
  • Contributor

  • 394 posts
  • Corona SDK

@robmiracle I would think that building on the iOS Simulator (not Corona simulator) would allow you to see the ads without building for the device. That's how it works with the AdMob "hack".

@carlos I don't think anyone could say you/Ansca aren't listening. You guys do a great job of that. I can always count on you, peach, etc. to show up out of nowhere and respond. But I don't feel the "listening" is resulting in our wishes being made a priority. For instance, Ansca has listened to everyone talk about needing Game Center support and even took requests on the GameON thread, but it's 9 months later and it hasn't resulted in the features getting put in. You guys need to do a better job of committing to features developers are asking for and making them happen in a timely fashion.
uid: 36054 topic_id: 18109 reply_id: 69799


[TOPIC: post.html]
#31

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

Nothing appears building for device! I have test mode true, and tried with and without hiding the ads (i'm not sure why should I hide anyways)...in my inMobi account, my app status is still incomplete (I do not have an app store URL yet), can this interfere?
uid: 95495 topic_id: 18109 reply_id: 69805


[TOPIC: post.html]
#32

Omnigeek Media

[GLOBAL: userInfoPane.html]
Omnigeek Media
  • Corona Geek

  • 2,975 posts
  • Corona SDK

You shouldn't have to hide the ads. Its only something I'm doing because I don't want to show ads on menu and transition scenes.

You will need to create your app in inMobi, but they won't activate it until you're live in the App Store and then it can take up to 24 hours to go life.

But they should provide you an appID that you can use. Now previouslly, they had a 2nd AppID for testing that can be found buried in their FAQ's, but when I went to add it to my recently released game, I didn't need the testing appID and it was working on my AppID with test mode true.

Once I switched it to testMode = false, then I didn't see ads, until inMobi made my app life.
It should work on the XCode simulator. But its only slightly faster to run it there, so I just put it on the device and test there.e
uid: 19626 topic_id: 18109 reply_id: 69813


[TOPIC: post.html]
#33

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

Yeah I got my appId from inmobi, but while testing it is as no code has been typed...what should appear? like a blank banner? Or should I just trust it is correct and when it's up and running the ads will show up
uid: 95495 topic_id: 18109 reply_id: 69820


[TOPIC: post.html]
#34

Omnigeek Media

[GLOBAL: userInfoPane.html]
Omnigeek Media
  • Corona Geek

  • 2,975 posts
  • Corona SDK

can you post the relevant parts of your code?
uid: 19626 topic_id: 18109 reply_id: 69822


[TOPIC: post.html]
#35

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

Ok:
here's my main:
 _H = display.contentHeight
 _W = display.contentWidth

local adNetwork = "inmobi"
local appID = "4028cba633a085920133d2aaa11c04e0"
ads = require "ads"
ads.init( adNetwork, appID )

local director = require("director");

local mainGroup = display.newGroup();

local function main ()
	
	mainGroup:insert(director.directorView);
	
	director:changeScene("scan");
	
	return true;
end

main();

Here's my scene 1
module(..., package.seeall)

function new()
	
	local localGroup = display.newGroup();

	local bg = display.newImageRect("bgg.png", _W, _H);
	bg:setReferencePoint(display.CenterReferencePoint)
	bg.x = _W/2; bg.y = _H/2
	bg.scene = "daily"
			
	function changeScene(e)
		if(e.phase == "ended") then
			director:changeScene(e.target.scene);
		
		end
	end
	bg:addEventListener("touch", changeScene);
	localGroup:insert(bg)
	
	local function showAds()
    local adX = display.contentWidth / 2 - 160
    ads.show( "banner320x48", { x=adX, y=_H, interval=15, testMode=true } )
end
	showAds()
	return localGroup
end

Scene 2:
module(..., package.seeall);

function new()
	local localGroup = display.newGroup();
	local bg = display.newImageRect("bgg.png", _W, _H);
	bg:setReferencePoint(display.CenterReferencePoint)
	bg.x = _W/2; bg.y = _H/2
	
	local finger = display.newImageRect("finger.png", 145, 200);
	finger:setReferencePoint(display.CenterReferencePoint);
	finger.x = _W/2; finger.y = _H/2 + 50
	finger.scene = "final"
	
	localGroup:insert(bg)
	localGroup:insert(finger)
		
 local flag = false
 local timerHandle = nil

 local function onTimer(event)
  if flag then
  local event = {}
 event.phase = "ended"
 finger:dispatchEvent( event )
 director:changeScene("final")
  else
  end
 end
 
 local function onTouch(event)
   local phase = event.phase
   if ( phase == "began")then
    flag = true
    timerHandle = timer.performWithDelay(4000,onTimer)
   elseif (phase == "ended") then
    flag = false
    timer.cancel(timerHandle)
    timerHandle = nil
   end
 end
 
 finger:addEventListener("touch",onTouch)
 
 local function showAds()
    local adX = display.contentWidth / 2 - 160
    ads.show( "banner320x48", { x=adX, y=_H, interval=15, testMode=true } )
end
showAds()
	return localGroup;	
end
scene 3
module(..., package.seeall);

function new()
	math.randomseed(os.time())
	local localGroup = display.newGroup()

	local bg = display.newImageRect("bgg.png", _W, _H);
	bg:setReferencePoint(display.CenterReferencePoint)
	bg.x = _W/2; bg.y = _H/2
		
array= {}
local i = 1
array[i]= display.newImage("frasefinal/Slide01.png");array[i].alpha=0;i=i+1 
array[i]= display.newImage("frasefinal/Slide02.png");array[i].alpha=0;i=i+1 
array[i]= display.newImage("frasefinal/Slide03.png");array[i].alpha=0;i=i+1 

function selectimage()
local randomimage = math.random(1,#array)
end		
selectimage() 
	
	localGroup:insert(bg)
	
local function showAds()
    local adX = display.contentWidth / 2 - 160
    ads.show( "banner320x48", { x=adX, y=_H, interval=15, testMode=true } )
end
	showAds()
	return localGroup
end
uid: 95495 topic_id: 18109 reply_id: 69824


[TOPIC: post.html]
#36

Omnigeek Media

[GLOBAL: userInfoPane.html]
Omnigeek Media
  • Corona Geek

  • 2,975 posts
  • Corona SDK

Well one thing I see is your setting the Y to the contentHeight and if the ads are referenced point to the top left, like I think they are, the ad will be off screen.

Try y = _H - 32

Try the test appid if it still doesn't work: 4028cb962895efc50128fc99d4b7025b

uid: 19626 topic_id: 18109 reply_id: 69829


[TOPIC: post.html]
#37

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

still nothing with both suggestions! darn
uid: 95495 topic_id: 18109 reply_id: 69834


[TOPIC: post.html]
#38

gustavoschv

[GLOBAL: userInfoPane.html]
gustavoschv
  • Contributor

  • 133 posts
  • Corona SDK

Maybe any code missing?
uid: 95495 topic_id: 18109 reply_id: 69916


[TOPIC: post.html]
#39

Puzzle Runner

[GLOBAL: userInfoPane.html]
Puzzle Runner
  • Contributor

  • 394 posts
  • Corona SDK

@robmiracle I understand the desire for a cheaper product, but Corona's subscription fees have actually gone up (not down) over time. What Ansca is attempting to do is "burn the bridge at both ends" by making money off the Developer Tools AND activity generated from the use of them. This diminishes the quality of the platform and the freedom granted to developers. We're basically heading into Game Salad territory.

Think about it. In an attempt to gain revenue through Papaya, they went ahead and implemented it without anyone asking for it at all and ignored Game Center. We STILL don't have that and it's been almost a year since Carlos created the "GameON" thread for it.
uid: 36054 topic_id: 18109 reply_id: 69762



[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]