android - Amazon ads integration not working -


i'm testing amazon ads first time , i'm following amazon quick start guide sample project given in sdk

but still i'm getting these errors- logcat

01-16 12:37:11.359: e/amazonmobileads sisgeneratedidrequest webrequest httpurlconnectionwebrequest(6212): problem while creating output steam request body: aax-eu.amazon-adsystem.com/127.0.0.1:80 - connection refused 01-16 12:37:11.359: e/amazonmobileads adrequest webrequest httpurlconnectionwebrequest(6212): problem while creating output steam request body: aax-eu.amazon-adsystem.com/127.0.0.1:80 - connection refused 01-16 12:37:11.359: e/amazonmobileads adloader(6212): not contact ad server 01-16 12:37:11.367: w/simpleadsample(6212): ad failed load. code: network_error, message: not contact ad server 

here layout.xml -

<?xml version="1.0" encoding="utf-8"?>     <linearlayout   xmlns:android="http://schemas.android.com/apk/res/android"  xmlns:amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads"       android:layout_width="match_parent"  android:layout_height="match_parent"  android:orientation="vertical"  android:gravity="top|center_horizontal">   <com.amazon.device.ads.adlayout     android:id="@+id/ad_view"     android:layout_width="match_parent"     android:layout_height="wrap_content"/>   <linearlayout      android:layout_width="match_parent"      android:layout_height="match_parent"      android:orientation="vertical"      android:gravity="bottom|center">       <button          android:id="@+id/load_ad_button"          android:layout_width="150dp"          android:layout_height="50dp"          android:text="@string/button_text"          android:textsize="8.5pt">      </button>       <textview          android:layout_width="match_parent"          android:layout_height="wrap_content"          android:layout_margintop="30dp"          android:layout_marginbottom="30dp"          android:gravity="center"          android:textsize="6.5pt"          android:padding="5dp"          android:text="@string/description">      </textview>   </linearlayout>     

try download last adsdk version https://developer.amazon.com/public/resources/development-tools/sdk


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -