Android Setup For Reward Video Ads

Discussion in 'Buildbox General Discussion' started by dusan20002, Feb 24, 2016.

  1. dusan20002

    dusan20002 Avid Boxer

    Joined:
    Dec 7, 2015
    Messages:
    136
    Likes Received:
    55
    This will be for BB2#898, same principle may be used in earlier version.
    This is just for example purpose.
    DO NOT SETUP Ad that you have already using in game, to avoid duplicate requests.

    First go to HeyZap Dashboard and choose your Ad that you want to use in Reward Video adding their ID's and other info depending on Advertising Network that you have chose. We have choose AdColony, AppLovin, AdMob, Chartboost, Facebook Audience, UnityAds.

    Go to https://developers.heyzap.com/docs/android_sdk_setup_and_requirements and go to Step No1. to select Ads that you have choose in HeyZap Dashboard ( screenshots 3.png )

    If you already Enable HeyZap in BuildBox you can skip downloading their SDK.

    Go to Step No.4 Add 3-rd-party SDK to your Project ( screenshot 4.png )
    Download all SDK from Ads that you have been selected.

    Go to Step No.5 Modify Android Manifest
    Now we will go to Eclipse and modify AndroidManifest.xml file. It show you which lines you will need to add for each Ad Network that you selected to work properly.

    We will start with Permission.
    In Eclipse open AndroidManifest.xml and scrol to the bottom, in our case we will need to add one AppLovin permission. ( screenshot 5.png and 6.png. )
    You can always check and compare Permissions in your Project and HeyZap Setup.

    Now we will need to add Activities to AndroidManifest.xml.
    IN our case we select only HeyZap in BuildBox and that's why only HeyZap in Active in Project.
    You my notice some Activities for Ad Network are blue, it is because we did not add them in BuildBox Advertising. ( Screenshot 7.png )

    We will start adding AdColony Activities
    We will copy from HayZap docs ( screenshot 8.png ) and paste into our Project ( screenshot 9.png )

    Now AppLovin and Facebook Audience Networks
    In our project they are blue, not active ( screenshot 10.png )
    We will copy from HayZap docs and paste into our Project ( screenshot 11.png )

    Save your project, and go to Project -> Clean.

    As last step you will need to add SDK of your networks that you have downloaded to lib folder in your Project.
    Just drag and drop .jar files to lib folder and on window that pop up just click OK ( screenshot 12.png )
     

    Attached Files:

    • 3.png
      3.png
      File size:
      41.1 KB
      Views:
      53
    • 4.png
      4.png
      File size:
      65.2 KB
      Views:
      51
    • 5.png
      5.png
      File size:
      111.7 KB
      Views:
      52
    • 6.png
      6.png
      File size:
      124.4 KB
      Views:
      50
    • 7.png
      7.png
      File size:
      109.8 KB
      Views:
      49
    • 8.png
      8.png
      File size:
      75.4 KB
      Views:
      50
    • 9.png
      9.png
      File size:
      91.3 KB
      Views:
      49
    • 10.png
      10.png
      File size:
      36.9 KB
      Views:
      48
    • 11.png
      11.png
      File size:
      36.3 KB
      Views:
      48
    • 12.png
      12.png
      File size:
      113.6 KB
      Views:
      50
  2. CryoBox

    CryoBox Boxer

    Joined:
    Jan 12, 2016
    Messages:
    21
    Likes Received:
    11
    I haven't tried this yet but I definitely will when the time comes, really appreciate the effort you put into this,
     
  3. Hopper Games

    Hopper Games Guest

    Joined:
    Feb 15, 2016
    Messages:
    4
    Likes Received:
    2
    @dusan20002 Thanks so much for sharing. Even I have no use yet, these seems like a great resource for Heyzap integration
     
    dusan20002 likes this.
  4. smmsud

    smmsud Boxer

    Joined:
    Jan 16, 2016
    Messages:
    77
    Likes Received:
    23
    In short term The process works like this

    1)Copy all the jar files from the 3rd party SDK to your game's lib file
    2)Edit the android Manifest.xml to give permission.

    Save>build>Emulate
     

Share This Page