AdColony


 

  1. Video Ad
  2. V4VC(Get Reward for watching video)

 

Steps to do before:
  1. Sign up as an AdColony Publisher here.
  2. a. First step – Click setup new app from Monetization tab and fill the form:
    • Platform: iOS or Android
    • If your app is already in the App Store/Play store, fill the ‘Is this app localized to a specific store?’ with the store your application was released to facilitate your search. You can easily search for your app by typing in the search box
    • If your app is not yet live or the search function is unable to find it, you can also fill the name manually.
    • If your app is target at children under 13 mark your app as Children Online Privacy and Protection Act (COPPA) compliant
      You can also select the ad categories you want to display for better targeting

    b. Second step – Identify the Ad Zone:

    • Note down your Adcolony App ID, starts with appxxxxxxxxxxxx
    • In the bottom of the summary page you should see the automatically created Ad Zone.
    • Configure the Integration as follows:
      Zone active: Yes
      You should take note of your Zone ID here, it’ll be used soon to setup the integration. Zone ID, starts with vzxxxxxxxxxx
    • If you didn’t recorded the Zone ID, it can be found in the Zone configuration page:
  3. Download the Google Play Services Library using the Android SDK Manager.
  4. For Eclipse:
    a. Now you need to import Google Play services library into your app current workspace.
    File >> Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it. The Google Play services SDK is saved in your Android SDK environment at /extras/google/google_play_services/.
    b. Add Google Play services to Your App
    ->Right-click your App project -> Select Properties -> In the Properties window select Android, Under the Library section click Add -> Select google-play-services-lib and Click OK
    For Android Studio: compile 'com.google.android.gms:play-services:7.0.0'
  5. Download latest Adcolony SDk from here.
  6. For Eclipse: Copy the downloaded library file to “libs” directory of the project. Right click on jar file -> Build Path -> Add to Build path.
    For Android Studio: Copy the downloaded library file to “libs” directory of the project structure and add compile files(‘libs/your lib name here’) is in your build.gradle.

 

1. Video Ad

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> values -> string.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

 adcolony_videoad adcolony_videoad2 adcolony3

Download SourceCode

 

 

2. V4VC(Get Reward for watching video)

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> values -> string.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

adcolony_v4vc adcolony_v4vc2 adcolony_v4vc3 adcolony_v4vc4

Download SourceCode