Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / error on show announcement of Admob ... (the announcement does not appear on the screen ...)

Author
Message
Waldemar Lima
9
Years of Service
User Offline
Joined: 27th Nov 2014
Location: Brasil
Posted: 7th Dec 2014 19:57
Hello ... im again '-' ...


please i need help ... I have problem on config Admob to show on my application !

the code I am using is:

" SetWindowSize( 800, 640, 0 )

SetOrientationAllowed( 1, 1, 1, 1 )
AddVirtualJoystick(1,80,550,150)
SetOrientationAllowed(0,0,1,1)

LoadImage ( 1, "p1.png" )
CreateSprite ( 1, 1 )
SetSpriteSize ( 1, 50, -1 )

SetVirtualResolution ( 800, 640 )
AddVirtualJoystick(2,720,550,150)
SetAdMobDetails("ca-app-pub-9293589675777781/4847268558")
SetAdvertVisible ( 1 )

do
SetSpritePosition ( 1, GetSpriteX ( 1 ) + ( GetVirtualJoystickX( 1 ) * 5.0 ), GetSpriteY ( 1 ) + ( GetVirtualJoystickY( 1 ) * 5.0 ) )
CreateAdvert(0, 1, 2, 1)
sync()
loop


//EndScript ;-;


note : The interpreter compiles all without error ... but when the application performs ... the announcement doesn't show ! How i fix this ?

PrintC("Hello EveryOne !&quot
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 9th Dec 2014 00:33


You're looping the CreateAdvert function. So It's getting called every frame and probably re-initializing AdMob before admob ever has a chance to download an ad image.
I'm surprised it didn't crash

Waldemar Lima
9
Years of Service
User Offline
Joined: 27th Nov 2014
Location: Brasil
Posted: 9th Dec 2014 21:13
thanks brother !! but not fiz error ...

my new code is :


// Project: Project1
// Created: 2014-12-09

// set window properties
SetWindowTitle( "Project1" )
SetWindowSize( 800, 640, 0 )
SetAdMobDetails("ca-app-pub-9293589675777781/4847268558")
CreateAdvert(0, 1, 2, 1)
SetAdvertVisible ( 1 )
// set display properties
SetVirtualResolution( 800, 640 )
SetOrientationAllowed( 1, 1, 1, 1 )
AddVirtualJoystick(1,80,550,150)
background=CreateSprite ( LoadImage("background1.jpg"))
CreateSprite(1,0)
AddSpriteAnimationFrame ( 1, LoadImage ( "img5.png" ) )
AddSpriteAnimationFrame ( 1, LoadImage ( "img6.png" ) )
AddSpriteAnimationFrame ( 1, LoadImage ( "img7.png" ) )
AddSpriteAnimationFrame ( 1, LoadImage ( "img8.png" ) )
PlaySprite(1)

do
SetSpritePosition(1,GetSpriteX(1) + (GetVirtualJoystickX(1) * 2.0),GetSpriteY(1) + (GetVirtualJoystickY(1) * 2.0))
if getspritex(background) <= -GetDeviceWidth()
setspriteposition(background,GetDeviceWidth(),0)
endif
Sync()
loop


//endcode ... and not fix the error ! please someone helo my ...

PrintC(&amp;amp;quot;Hello EveryOne !&amp;amp;quot
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 9th Dec 2014 21:16
No clue. I stopped using admob in favor of interstitials, sorry I can't help further.

Waldemar Lima
9
Years of Service
User Offline
Joined: 27th Nov 2014
Location: Brasil
Posted: 9th Dec 2014 21:22
has something to do? with the announcement setting in admob about it not be appearing on the scene?

I provide below the prints of my 2 settings in admob ...

PrintC(&amp;amp;quot;Hello EveryOne !&amp;amp;quot

Attachments

Login to view attachments
Waldemar Lima
9
Years of Service
User Offline
Joined: 27th Nov 2014
Location: Brasil
Posted: 9th Dec 2014 21:24
What do you advise me? the Admob or Inner-Active?

PrintC(&amp;amp;quot;Hello EveryOne !&amp;amp;quot

Login to post a reply

Server time is: 2024-11-25 13:47:50
Your offset time is: 2024-11-25 13:47:50