【问题标题】:Amazon ads integration not working亚马逊广告集成不起作用
【发布时间】:2016-01-16 06:00:37
【问题描述】:

我是第一次测试亚马逊广告,我正在关注亚马逊快速入门指南,它是 sdk 中给出的示例项目

但我仍然收到这些错误 - Logcat

01-16 12:37:11.359: E/AmazonMobileAds SISGenerateDIDRequest WebRequest HttpURLConnectionWebRequest(6212): Problem while creating output steam for 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 for request body: aax-eu.amazon-adsystem.com/127.0.0.1:80 - Connection refused
01-16 12:37:11.359: E/AmazonMobileAds AdLoader(6212): Could not contact Ad Server
01-16 12:37:11.367: W/SimpleAdSample(6212): Ad failed to load. Code: NETWORK_ERROR, Message: Could not contact Ad Server

这是 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>    

【问题讨论】:

    标签: android amazon-web-services amazon ads


    【解决方案1】:

    【讨论】:

    • 我昨晚从同一个链接下载的。
    • 以下事件跟踪和错误developer.amazon.com/appsandservices/apis/earn/mobile-ads/docs/… NETWORK_ERROR 由于网络连接问题,广告请求失败。连接可用时重试。
    • 我正在使用 wifi 并从同一位置发布 cmets。
    • 所以,稍后再试,也许亚马逊广告服务器现在真的不可用
    猜你喜欢
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多