question

Mouzakidis Alexandros avatar image
Mouzakidis Alexandros asked

i cant show ads

Hi, i want to integrate amazon ads into one application of mine and if i will like it i will use it in all of my apps but i can not diplay any ads. A have followed the steps from https://developer.amazon.com/sdk/mobileads/quick-start.html#Before%20You%20Use%20the%20Amazon%20Mobile%20Ads%20API i have updated my manifest.xml and now it is like that [b] [/b] i use configChanges="keyboardHidden|orientation|screenLayout" and not configChanges="keyboardHidden|orientation|screenSize" cause screenSize creates an error at build time. I try to loads adds 100% with code and i have written this public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Thread.setDefaultUncaughtExceptionHandler(new TopExceptionHandler(this)); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); //setContentView(R.layout.main); GameContainer renderer = new GameContainer(this); AdRegistration.setAppKey("someId"); FrameLayout lay = new FrameLayout(this); this.setContentView(lay, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); this.amView = new AdLayout(this); lay.addView( renderer); lay.addView( amView); this.amView.loadAd(new AdTargetingOptions()); } at code line AdRegistration.setAppKey("someId"); in "someid" I put the application key that i have copied from the amazon. I do not see any ads no matter what i do. I there an example with ads and frame layout, do i do something wrong ?
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mouzakidis Alexandros avatar image
Mouzakidis Alexandros answered
the error message that i get through logging is "Server Message: no results. Try again in 30 seconds". How can i test my app if i always get this message and how can i make my app to retry?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vntis avatar image
vntis answered
.... AdRegistration.enableLogging(true); AdRegistration.enableTesting(true); .... AdRegistration.setAppKey("sample-app-v1_pub-2"); .... // dont add your Application Key when testing. just add it when your app is ready to publish. the ad will appear after your app become "live". rememeber, "The Amazon Mobile Ads API serves ads to U.S. users"
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mouzakidis Alexandros avatar image
Mouzakidis Alexandros answered
thanks for your reply. I have tested my app with testing on and it was ok. The problem is that when test is not TRUE i get the above message. My app is already live but with admob and i want to replace admob with amazon ads and i want be sure that it will work. If Test works it means that everything is ok and i can publish my app?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
Yes, you can publish your app. You can also test few things at your end before submitting. https://developer.amazon.com/sdk/mobileads/testing-your-app.html#Developer%20Launch%20Checklist
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.