2011-07-02 3 views
0

저는 Android 앱이 있으며 AdMob 및 ZestADZ와 Adwhirl을 사용하고 있습니다. 하우스 광고를 설정했습니다.Adwhirl 광고가 표시되지 않음

로그가 정상적으로 보였음에도 불구하고 어떤 이유로 광고가 표시되지 않습니다. 내가 볼 수있는 것은 Zest 광고가 표시되지 않으며 내가 만든 하우스 광고로 기본 설정되어 있어야한다는 것입니다.

미리 감사드립니다.

 07-02 16:36:56.791: INFO/AdWhirl SDK(3581): Creating adWhirlManager... 
     07-02 16:36:56.851: DEBUG/AdWhirl SDK(3581): Locale is: en_US 
     07-02 16:36:57.354: DEBUG/AdWhirl SDK(3581): Hashed device ID is: 7d1dd13a2fa91c0ad174cb69a11549a3 
     07-02 16:36:57.360: INFO/AdWhirl SDK(3581): Finished creating adWhirlManager 
     07-02 16:36:58.140: DEBUG/AdWhirl SDK(3581): Prefs{73dd1111860847ecb1257a0e0942ec37}: {"config": "{"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":15,"transition":8},"rations":[{"nid":"7f5ef65976504f21b9635ab0ec19a019","type":1,"nname":"admob","weight":33,"priority":3,"key":"a14123cc7d16913"},{"nid":"49ac21c2a998e168ae8974078a302c0b","type":20,"nname":"zestadz","weight":33,"priority":1,"key":"14131C047A5040548959435145554B5F8D8A29CA"},{"nid":"e7eff2754b0b4bde81114881e88dd8f1","type":9,"nname":"custom","weight":34,"priority":2,"key":"__CUSTOM__"},{"nid":"8c1200a3a29d41c0b9fd16096368d6dc","type":9,"nname":"custom","weight":0,"priority":2,"key":"__CUSTOM__"}]} 
     07-02 16:36:58.140: DEBUG/AdWhirl SDK(3581): ", "timestamp": 1309645632265} 
     07-02 16:36:58.150: INFO/AdWhirl SDK(3581): Using stored config data 
     07-02 16:36:58.181: DEBUG/AdWhirl SDK(3581): Received jsonString: {"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":15,"transition":8},"rations":[{"nid":"7f5ef65926c44f21b9635ab0e122a019","type":1,"nname":"admob","weight":33,"priority":3,"key":"a14e0dcc7d16913"},{"nid":"49ac243ae94c4f68ae8974078a302c0b","type":20,"nname":"zestadz","weight":33,"priority":1,"key":"14131C047A504052787735145554B5F8D8A29CA"},{"nid":"e7eff27c4b0b4bd3222db881e88dd8f1","type":9,"nname":"custom","weight":34,"priority":2,"key":"__CUSTOM__"},{"nid":"8c1200a3a29d41c0b9fd16834423d6dc","type":9,"nname":"custom","weight":0,"priority":2,"key":"__CUSTOM__"}]} 
     07-02 16:36:59.953: INFO/AdWhirl SDK(3581): Rotating Ad 
     07-02 16:37:00.080: DEBUG/AdWhirl SDK(3581): Dart is <8.98131054165815> of <100.0> 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581): Showing ad: 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581):  nid: 49ac21c2a94c4f68154434078a302c0b 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581):  name: zestadz 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581):  type: 20 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581):  key: 14349877A5040434E59435145554B5F8D8A29CA 
     07-02 16:37:01.890: DEBUG/AdWhirl SDK(3581):  key2: 
     07-02 16:37:01.943: DEBUG/AdWhirl SDK(3581): Valid adapter, calling handle() 
     07-02 16:37:01.970: INFO/ZestADZ SDK(3581): Adclient ID set to 14131C047A5040434E59435145554B5F8D8A29CA 
     07-02 16:37:04.730: VERBOSE/Formed URL(3581): http://a.zestadz.com/waphandler/deliverad?ua=Mozilla%2F5.0+%28Linux%3B+U%3B+Android+2.1-update1%3B+en-us%3B+sdk+Build%2FECLAIR%29+AppleWebKit%2F530.17+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Mobile+Safari%2F530.17&ip=&cid=14131C047A504342216435145554B5F8D8A29CA&meta=game&keyword=All 
     07-02 16:37:09.921: DEBUG/Ad Response(3581): HTTP/1.1 200 OK 
     07-02 16:37:10.040: DEBUG/AdWhirl SDK(3581): ZestADZ failure 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581): Showing ad: 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581):  nid: 49ac21c2a94c4f68ae835645987302c0b 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581):  name: zestadz 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581):  type: 20 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581):  key: 14131234487040434E59435145554B5F8D8A29CA 
     07-02 16:37:10.351: DEBUG/AdWhirl SDK(3581):  key2: 
     07-02 16:37:10.372: DEBUG/AdWhirl SDK(3581): Valid adapter, calling handle() 
     07-02 16:37:10.400: INFO/ZestADZ SDK(3581): Adclient ID set to 14131C047A5040434E59435640954B5F8D8A29CA 
     07-02 16:37:11.432: VERBOSE/Formed URL(3581): http://a.zestadz.com/waphandler/deliverad?ua=Mozilla%2F5.0+%28Linux%3B+U%3B+Android+2.1-update1%3B+en-us%3B+sdk+Build%2FECLAIR%29+AppleWebKit%2F530.17+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Mobile+Safari%2F530.17&ip=&cid=14131C047A5B5F8D8A29CA&meta=game&keyword=All 
     07-02 16:37:13.060: DEBUG/Ad Response(3581): HTTP/1.1 200 OK 
     07-02 16:37:13.190: DEBUG/AdWhirl SDK(3581): ZestADZ failure 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581): Showing ad: 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581):  nid: e7eff27c4b0b4bd455223381e88dd8f1 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581):  name: custom 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581):  type: 9 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581):  key: __CUSTOM__ 
     07-02 16:37:13.530: DEBUG/AdWhirl SDK(3581):  key2: 
     07-02 16:37:13.550: DEBUG/AdWhirl SDK(3581): Valid adapter, calling handle() 
     07-02 16:37:13.670: DEBUG/LocationManager(3581): Constructor: service = [email protected] 

답변

0

그것은 당신이 당신의 LinearLayout 높이를 설정 다음과 같습니다 여기

LinearLayout adLayout = (LinearLayout)findViewById(R.id.LayoutTopAds); 
    AdWhirlLayout adWhirlLayout = new AdWhirlLayout(this, LearningLangConsts.ADWHIRL_SDK_KEY[myUI.LEARNLANG]); 

    int diWidth = adLayout.getWidth(); 
    int diHeight = adLayout.getHeight(); 
    float density = getResources().getDisplayMetrics().density; 

    adWhirlLayout.setAdWhirlInterface(new AdWhirlLayout.AdWhirlInterface() 
    { 
     @Override 
     public void adWhirlGeneric() 
     {} 
    }); 

    adWhirlLayout.setMaxWidth((int)(diWidth * density)); 
    adWhirlLayout.setMaxHeight((int)(diHeight * density)); 
    adLayout.addView(adWhirlLayout); 

로그입니다 : 여기
LinearLayout 
android:id="@+id/LayoutTopAds" 
android:orientation="horizontal" 
android:layout_height="0dp" 
android:layout_width="fill_parent" 
android:gravity="center_horizontal" 
android:background="@color/graphite" 
android:layout_weight="0.5" 

코드입니다 : 여기

내 XML의 일부입니다 ~ 0dp : android:layout_height="0dp" 이렇게하면 보기를 사용하지 마십시오. 대신 wrap_content으로 변경해보세요. 그래도 작동하지 않으면 실제로 AdWhirl 레이아웃을 만드는 더 쉬운 방법이 있습니다.

AdWhirl SDK 버전 3.0을 사용 중이라고 가정합니다. 코드를 통해 레이아웃을 생성하는 대신 일반 XML 레이아웃 파일을 통해 간단하게 레이아웃을 생성 할 수 있습니다. 사용 설명서와 같은 LinearLayout을 사용하지 마세요 (구식이라고 생각합니다). 배너를 원하는 위치에 레이아웃에이 요소를 배치하기 만하면됩니다.

<com.adwhirl.AdWhirlLayout 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" /> 

심각하게 그게 전부입니다. 귀하의 애드 월 키뿐만 아니라 (중 하나 <activity> 또는 <application> 태그 이내) 매니페스트에 있는지 확인합니다 :

<meta-data android:value="Your Key" 
     android:name="ADWHIRL_KEY"/> 

당신이 정말로 프로그래밍 방식 레이아웃을 평소와 같은 id을주고 findViewById를 사용 할 수있는 모든 작업을 수행 할 필요가 있다면. Lemme이 도움이되는지 알아.