Follow

How to Set Up RhythmOne (SDK) as an Ad Source

Step 1: Adding an Ad Source

To add RhythmOne (SDK) as a mediated ad source, you will need to:

  1. Create an account with RhythmOne
  2. Create a RhythmOne (SDK) ad source on the AerServ platform using the App ID and other optional attributes available from your RhythmOne account

For detailed instructions on setting up an ad source, click here. After setting up your ad source, please continue to the following steps to complete the integration with your Android/iOS app.

 

Android


 

icon_android-on.png
AerServ SDK
download-sdk.png

 

Step 1.   Locate the RhythmOne files inside network-support/RhythmOne/

Step 2.   Add rhythmone-ads.jar to your app's lib folder, i.e. [Project Name]/app/libs

 

Step 3.   Add the following settings inside your application's build.gradle

dependencies {
    compile 'com.google.android.gms:play-services-ads:10.2.1'
}

Step 4.   Add the following permission to your AndroidManifest.xml

<!-- Required by RhythmOne -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Optional, but Recommended by RhythmOne -->
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.CAMERA" />

Step 5.   Add the following activity to your AndroidManifest.xml

<activity 
  android:name="com.rhythmone.ad.sdk.RhythmOneAdActivity"
  android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="RhythmOneAdActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

iOS 


 

image.jpg
AerServ SDK
download-sdk.png

 

Step 1.   Add the RhythmOne SDK in the folder network-support/RhythmOne/RhythmOneAds.framework into your project frameworks.

 

Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:

AdSupport.framework
AudioToolbox.framework (Set to Optional)
AVFoundation.framework (Set to Optional)
AVKit.framework (Set to Optional) CoreTelephony.framework (Set to Optional)
RYMMoatMobileAppKit.framework MessageUI.framework SystemConfiguration.framework
 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments