question

e-noma avatar image
e-noma asked

no ads, no error messages

Today my app was approved and appears on the Amazon app store. I have set up a mobile ad account and am testing a new version of the app that should show ads. The app compiles and runs without error, but I see no ads. What do I need to do? I have followed the quickstart example and the code is as follows: thanks in MainActvity within OnCreate I have the code private AdLayout adView; ... AdRegistration.setAppKey("........"); AdRegistration.enableTesting(true); AdRegistration.enableLogging(true); this.adView = new AdLayout(this); LinearLayout layout = (LinearLayout) findViewById(R.id.linearLayoutAds); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT); layout.addView(this.adView,lp); layout.setVisibility(View.VISIBLE); my layout contains the following /
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.

e-noma avatar image
e-noma answered
I didn't include the line to display the ad in the above this.adView.loadAd(new AdTargetingOptions()); // async task to retrieve an ad However, when I do this I get the message Default ad listener called - Ad Failed to Load. Error code: INTERNAL_ERROR, Error Message: Server Message: INVALID_APPID Is this because the approval of mobile ads is still pending for this 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.

e-noma avatar image
e-noma answered
10 |5000

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