search
HomeAdvertiserPublisherAboutus
 
 

Android SDK

Android AppZestADZ Now supports Android Publishing through its Android SDK Beta Program. Publishers can use the Android SDK Beta Program to deliver highly targeted mobile advertising to their Android mobile apps and mobile games.

Unique features of the Android SDK include:

  Ability to deliver upto 5 ads at one time, cache and display them.

  Built in full featured mobile app analytics solution for publishers.

  Extremely small memory footprint.

How to Integrate Android SDK with your Apps?

Download Android SDK  Android FAQ's
A. Create a ZestADZ Account.
B. Create an Android Ad Client by going to "Sites & Apps"->"Add a Site or App" and follow the steps given below
C. Download ZestADZ Android SDK from http://www.zestadz.com/publishers/ZestADZ-android-SDK.zip
D. Integrate ZestADZ SDK jar
a) Go to your Application Directory in Eclipse. Right click and add External Archives for your application.
b) Select the ZestADZ android SDK jar file which you have downloaded.
c) Add that jar with your Apps.
E. Follow the steps below in your Androidmanifest.xml file.
a) Give Internet Permission to pull the Ad from ZestADZ before </manifest> tag.
[ Eg: <uses-permissionandroid:name="android.permission.INTERNET"/> </manifest> ]
b) Specify your ZestADZ Ad client ID before the </application> tag.
[ Eg: <!-- The application's Adclient ID assigned by ZestADZ --><meta-data android:value="14131C047A50414347574B574153415E8B" android:name="ZestADZ_Adclient_ID" /></application> ]
F.

The attrs.xml file specifies custom ZestADZ Ad attributes in XML layout files.
If your application does not contain the file named /res/values/attrs.xml, then create one and copy-and-paste the following into your app. If your application already has that file then just add the declare-styleable element.

<?xml version="1.0" encoding="utf-8" ?>
<
resources
>
  <declare-styleable name="org.zestadz.ads.ZestadzAd">
    <attr name="testing" format="boolean"/>
<attr name="
backgroundColor" format="color"/>
<attr name="
textColor" format="color"/>
<attr name="
keywords" format="string"/>
<attr name="
refreshInterval" format="integer"/>
<attr name="
isGoneWithoutAd" format="boolean"/>
  </declare-styleable>
</resources>
G.

Ad Placements in your Layout.
a) Provide 50px paddingBottom in your app layout (which is the layout you are using to display your application on the screen). This space is for displaying the ads at the bottom of the page. If you would like to display the ad at the top then provide 50px paddingTop in your application layout. The Ad height is obviously 50px.
b) And then add the following ZestADZ custom View code in your layout file at the bottom, if you would like to display the Ad at the bottom.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app
=http://schemas.android.com/apk/res/your_app_packageandroid:orientation= "vertical"
android:layout_width
="fill_parent"
android:layout_height
="fill_parent">
  <org.zestadz.ads.ZestadzAd android:id="@+id/ad"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:layout_alignParentBottom=
"true"
android:clickable=
"true"
app:backgroundColor=
"#000000"
app:textColor=
"#FFFFFF"
app:keywords
="Android game"/>
</RelativeLayout>

If you want to display the Ad at the top, you need to change the
android:alignparenttop="true" instead of android:alignparentBottom="true" attribute from the ZestADZ custom view and provide 50px paddingTop in your application layout.

H. Publishers are requested to Override the onStop() method from the App and call the AdManager.stopAdpull() method from the onStop() method by importing org.zestadz.ads.* package.