Appodeal Integration

Discussion in 'Advertising' started by wissemslimi974, Mar 13, 2019.

  1. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    Hi all,
    I am facing a problem with Appodeal.
    Has someone managed to integrate it ?
    Need your help and thank you.
     
  2. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    I'm not certain if the latest SDK works with the old tutorial. I had to roll back to android studio 3.0 and use the old way, but removed the yandex files that will create issues with Apple and Google.
     
  3. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    Thank you for your answer.
    have you tried with Xcode ?
     
  4. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    I did yes and had to do the same thing. However, rewarded videos didn't work.
     
  5. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
    Can you share the steps or create a mini guide please
     
  6. mtapps

    mtapps Boxer

    Joined:
    May 18, 2019
    Messages:
    6
    Likes Received:
    0
    Appodeal send to me this mesage :

    Hi,

    We’ve been working together with Google Play to make sure Appodeal SDKs are compliant with the newest privacy policy update from the Google Play Store. We encourage all users who use SDK versions prior to 2.5.1 (released on January 4, 2019) to update to the more recent SDK versions. We’ve recently promoted Appodeal SDK v2.5.6 to stable and Google confirmed that this version is compliant as well as all SDKs after v2.5.1 as of 7/10/19. Google also advises developers to deactivate the old apk versions in testing track to prevent any issues.


    Appodeal and Google want to ensure a smooth transition for developers with apps on Google Play, so you will have time until August 19, 2019 to update your SDK and submit a new build in order to stay compliant with the Google Play store privacy policies and rules.


    If you use Unity plugin, we recommend updating to v2.8.56. If you use Unreal plugin, please update to v2.5.6. If you use Corona plugin, please use v2.5.4.


    In case you don’t update your SDK before the deadline, Google will most likely remove the non-compliant apps from the store. Please contact us if you have any concerns about the deadline.


    PLEASE NOTE: If you already updated to Android SDK 2.5.1 or higher or only have iOS apps, you don't have to do anything.


    Best regards,
    The A-Team


    any solution please share with us! thank you.
     
  7. GamerGhost

    GamerGhost Boxer

    Joined:
    Jan 25, 2019
    Messages:
    24
    Likes Received:
    11
    Any lack with the latest Appodeal SDK 2.5.8...?
     
  8. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    I have been using Appodeal 2.7 and it seems to work fine. My app does not currently have rewarded ads, but I have implemented the functionality.


    Android only so far:

    1. Following the instructions in this thread to add your appodeal key into the heyzap property.
    2. In build.gradle (app) => dependencies add the following:

    Code:
    implementation 'com.appodeal.ads:nodex:2.5.7'
        implementation 'com.google.android.exoplayer:exoplayer-core:2.8.4'
        implementation 'com.google.android.exoplayer:exoplayer-hls:2.8.4'
        implementation 'com.android.support:support-v4:26.1.0'
        implementation 'com.android.support:recyclerview-v7:26.1.0'
    3. In build.gradle (android) => allprojects { repos add the following:

    Code:
    maven { url "https://artifactory.appodeal.com/appodeal" }
    4. Replace the android=>app=>src=>main=>java=>com=>secrethq=>ads: PtAdHeyzapBridge.java file with the file attached.

    If you have any problems just reply to this thread and I'll try and help. I don't have any relationship with Appodeal other than I use their products. Use at your own risk.
     

    Attached Files:

  9. GamerGhost

    GamerGhost Boxer

    Joined:
    Jan 25, 2019
    Messages:
    24
    Likes Received:
    11
    Hi,
    Thank you for your answer.
    Unfortunately your solution does not work for me with multiple errors.
    Perhaps the latest Android studio (gradle 3.5.0 and SDK 28.0.0) with Appodeal SDK 2.5.8 are not compatible with your solution
    The PtAdHeyzapBridge.java file that you have attached it is the same with original exported from Buildbox. Is there any mistake here?
     
  10. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    Ha. That file that I attached is useless. Use the new file and if you get errors building just post the error. As far as Gradle I don't remember what I am using but I do not get an error. I'll create a video if after attaching the latest you can't get it to work:
     

    Attached Files:

  11. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    Ok. Just tested it. The one above should still work with 2.3.7.2329.

    Please find attached the one I just tested for version: 2.3.8.2520.

    1. The key is no longer getting sent into the library. I don't know why this is the case so you will have to modify the file above with your key. At the top of the file you should see this. Please add your appodeal key here. I also added a banner position constant. It defaults to bottom but if you want it at the top change it to: "Appodeal.BANNER_TOP".

    Code:
    /// Please modify these items.
        private static final String appodealKey = "yourkeyhere";
        private static final int bannerPosition = Appodeal.BANNER_BOTTOM;
        /// end
    
    2. In build.gradle (app) => dependencies add the following:
    Code:
       implementation 'com.appodeal.ads:nodex:2.5.7'
        implementation 'com.google.android.exoplayer:exoplayer-core:2.8.4'
        implementation 'com.google.android.exoplayer:exoplayer-hls:2.8.4'
        implementation 'com.android.support:support-v4:28.0.0'
        implementation 'com.android.support:recyclerview-v7:28.0.0'
    
    3. Please follow step 3 above to add the Appodeal repo.
    4. In your app => manifests => AndroidManifest.xml remove all the Heyzap activity and matadata and add your admob application id:
    Code:
    <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-xxxxx~xxxxx/>
    
     

    Attached Files:

    GamerGhost likes this.
  12. GamerGhost

    GamerGhost Boxer

    Joined:
    Jan 25, 2019
    Messages:
    24
    Likes Received:
    11
    Success! Thank you @adrianjgomez
    However the attached PTAdHeyzapBridge.java is the original one without the {private static final String appodealKey = "yourkeyhere"} Moreover there is not any need for this modification because BB2 #2520 send the key into the library according to my tests and thus I have managed to implement Appodeal using your instructions and the initial PTAdHeyzapBridge.java file.
    Due to newest SDK 28 and Gradle 3.5.0 I have make some additions in order to Appodeal SDK 2.5.8 to finally work! The only problem is that there is a significant delay for the app start screen to appear in my android tablet. Tomorow I will test it in a more modern and fast device.

    1. Added two lines in gradle.properties file:
    Code:
    android.useAndroidX=true
    android.enableJetifier=true
    
    2. I have add this in manifest:
    Code:
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    ……….
    tools:replace="android:appComponentFactory"
    android:appComponentFactory="whateverString"
    android:networkSecurityConfig="@xml/network_security_config"
    …...
    <application android:label="@string/app_name"
    …...
      android:name="androidx.multidex.MultiDexApplication">
    
    3. I have added a network_security_config.xml file in res/xml/ according to the instructions of Appodeal for 2.5.8 release.

    4. I have modified dependencies to newest releases:
    Code:
    dependencies {
    implementation 'com.google.android.gms:play-services-auth:17.0.0'
    implementation 'com.google.android.gms:play-services-games:18.0.1'
    implementation 'com.google.android.gms:play-services-ads:18.2.0'
    implementation 'com.google.android.gms:play-services-location:17.0.0'
    implementation 'com.appodeal.ads:nodex:2.5.8'
    implementation 'com.google.android.exoplayer:exoplayer-core:2.8.4'
    implementation 'com.google.android.exoplayer:exoplayer-hls:2.8.4'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    
     
    adrianjgomez likes this.
  13. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    Great job @GamerGhost . I haven't migrated my app to 2.5.8 because I couldn't figured out how to add the *.xml file. I'll give it a try and see how it goes following your instructions. My newer file has a check for a empty string on the appId at the very least you should add that to the older version of the file.

    Has anybody tried this on 3.0.x
     
    GamerGhost likes this.
  14. GamerGhost

    GamerGhost Boxer

    Joined:
    Jan 25, 2019
    Messages:
    24
    Likes Received:
    11
    @adrianjgomez

    Create a folder named xml in res forder off your app. Create inside this xml folder the network_security_config.xml (right click on res - New - Android Resourse File)
    The type the code:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <network-security-config>
    <base-config cleartextTrafficPermitted="true">
    <trust-anchors>
    <certificates src="system" />
    <certificates src="user" />
    </trust-anchors>
    </base-config>
    <domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">127.0.0.1</domain>
    </domain-config>
    </network-security-config>
    
     
  15. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    Updated file (moved from the wrong thread):
    1. Removed the key from the top since it is working with the latest BB2.
    2. Fixed a couple of issues with rewarded ads. They work on my project.
     

    Attached Files:

    GamerGhost likes this.
  16. ahmedalazawee

    ahmedalazawee Boxer

    Joined:
    May 2, 2018
    Messages:
    2
    Likes Received:
    0
    Adrianjgomez, I'm really struck with the same issue would you mind if you help me with it. please add me on skype sniper903 it's faster to talk. The same applies for GamerGhost I would really appreciate any help.
     
  17. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    Sorry, skype is not going to work for me. If I ended up on a skype call for everybody that needed help I wouldn't have time to work on my games. What I can do is provide a video with the steps. Maybe I'll have time this weekend and I'll post it here.
     
  18. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
  19. justforward

    justforward Avid Boxer

    Joined:
    Jan 25, 2016
    Messages:
    188
    Likes Received:
    67
    @GamerGhost do you know how to make it working with Appodeal 2.6.0? There are some errors when I'm trying to integrate the latest version of Appodeal.

    Errors:
    error: <anonymous com.secrethq.ads.PTAdHeyzapBridge$1> is not abstract and does not override abstract method onInterstitialShowFailed() in InterstitialCallbacks
    error: <anonymous com.secrethq.ads.PTAdHeyzapBridge$2> is not abstract and does not override abstract method onRewardedVideoShowFailed() in RewardedVideoCallbacks
     
  20. adrianjgomez

    adrianjgomez Boxer

    Joined:
    Apr 1, 2016
    Messages:
    68
    Likes Received:
    45
    justforward likes this.

Share This Page