pdf파일에 나온 그대로 복사,붙여넣기 한 다음에
바꿀부분 바꾸고 했는데 이렇게 떠버리네요 -_-;;
네이버 광고서비스라 그런지 구글엔 별 관련글이 없고 네이버에 역시나 잔뜩 있길래
네이버에 뜨는 글대로는 다 해봤는데 별 효과가 없네요..ㅠ.ㅠ
아래에는 추가한 부분들 코드 올리겠습니당..
activity_main.xml
<com.nbpcorp.mobilead.sdk.MobileADView
xmlns:mobilead="http://schemas.android.com/apk/res/com.nbpcorp.mobilead.sample.sample1"
android:id="@+id/adview1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
mobilead:channel_id="testid"
mobilead:test="false"
/>
MainActivity.java
adView = (MobileAdView) findViewById(R.id.developer);
adView.setListener(this); // 8
adView.start();
attrs.xml //요놈을 안만들었으면 이해가 가겠는데...참 이상하네요 ㅠ.ㅠ
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="com.nbpcorp.mobilead.sdk.MobileADView">
<attr name="channel_id" format="string"/>
<attr name="test" format="boolean"/>
</declare-styleable>
</resources>
AndroidManifest.xml
....
<activity
android:name=".MobileAdSample1Activity"
android:configChanges="keyboardHidden|orientation"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.nbpcorp.mobilead.sdk.MobileAdBrowserActivity" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>