<commit_before># Yesup Partner Sdk for Android
###### The Latest SDK Version: 1.2.1
Yesup Partner SDK for Android is the easiest way to integrate your Android app with Yesup.<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[1 Install Yesup AD SDK](#step1)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[2 Set your custom information](#step2)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[3 Use OfferWall](#step3)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[4 Use Intersitial](#step4)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[5 Use Banner](#step5)<br/>
<hr/>

<div id="step1"></div>
### **1** Install Yesup AD SDK<br/>
  a. Download yesup partner config file "adconfigure.xml".<br/>
  b. Copy adconfigure.xml file to your "res/xml/adconfigure.xml" directory.<br/>
     Note: Do not modify this file name!!!<br/>
  c. In Android Studio, open the build.gradle file which is in your project's root directory,
     make sure that you have used the JCenter like below:<br/>
```python
     allprojects {
         repositories {
             jcenter()
         }
     }
```
  d. In Android Studio, open the app's build.gradle file in the editor.<br/>
     Add a "dependencies" source, as follows:<br/>
```python
     dependencies {
         compile 'com.yesup.partner:yesuppartner:1.2.1'
     }
```
  Now the classes and methods in the Yesup Partner Library can be used in your app.<br/><br/>

<div id="step2"></div>
### **2** Set your custom information<br/>
  a. Import package.<br/>
```python
    import com.yesup.partner.YesupAd;
```
  b. Set custom information like below:<br/>
```python
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        String subId = "123123";  // optional, you app user id
        String optValue1 = "";    // optional, additional event value you want to keep track
        String optValue2 = "";    // optional, additional event value you want to keep track
        String optValue3 = "";    // optional, additional event value you want to keep track
        YesupAd.setSubId(subId);
        YesupAd.setOption(optValue1, optValue2, optValue3);
    }
```

<div id="step3"></div>
### **3** Use OfferWall<br/>
  a. Add in the following line to your AndroidManifest.xml to declare the Activity:<br/>
```python
     <activity android:name="com.yesup.ad.offerwall.OfferWallActivity" android:label="Offer Wall" />
```
     You can modify the android:label,this property will display on the title of activity.<br/>
  b. new and set a OfferWallHelper object, you can control the view of rewards button(rewards and icon).<br/>
  c. Write code below to use OfferWall:<br/>
```python
import com.yesup.partner.YesupOfferWall;<commit_msg>modify readme<commit_after># Yesup Partner Sdk for Android
###### The Latest SDK Version: 1.2.1
Yesup Partner SDK for Android is the easiest way to integrate your Android app with Yesup.<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[1 Install Yesup AD SDK](#step1)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[2 Set your custom information](#step2)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[3 Use OfferWall](#step3)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[4 Use Intersitial](#step4)<br/>
#####&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[5 Use Banner](#step5)<br/>
<hr/>

<div id="step1"></div>
### **1** Install Yesup AD SDK<br/>
  a. Download yesup partner config file "adconfigure.xml".<br/>
  b. Copy adconfigure.xml file to your "res/xml/adconfigure.xml" directory.<br/>
     Note: Do not modify this file name!!!<br/>
  c. In Android Studio, open the build.gradle file which is in your project's root directory,
     make sure that you have used the JCenter like below:<br/>
```python
     allprojects {
         repositories {
             jcenter()
         }
     }
```
  d. In Android Studio, open the app's build.gradle file in the editor.<br/>
     Add a "dependencies" source, as follows:<br/>
```python
     dependencies {
         compile 'com.yesup.partner:yesuppartner:1.2.1'
     }
```
  Now the classes and methods in the Yesup Partner Library can be used in your app.<br/><br/>

<div id="step2"></div>
### **2** Set your custom information<br/>
  a. Import package.<br/>
```python
    import com.yesup.partner.YesupAd;
```
  b. Set custom information like below:<br/>
```python
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        String subId = "123123";  // optional, you app user id
        String optValue1 = "";    // optional, additional event value you want to keep track
        String optValue2 = "";    // optional, additional event value you want to keep track
        String optValue3 = "";    // optional, additional event value you want to keep track
        YesupAd.setSubId(subId);
        YesupAd.setOption(optValue1, optValue2, optValue3);
    }
```

<div id="step3"></div>
### **3** Use OfferWall<br/>
  a. Add in the following line to your AndroidManifest.xml to declare the Activity:<br/>
     You can modify the android:label,this property will display on the title of activity.<br/>
```python
     <activity android:name="com.yesup.ad.offerwall.OfferWallActivity" android:label="Offer Wall" />
```
  b. new and set a OfferWallHelper object, you can control the view of rewards button(rewards and icon).<br/>
  c. Write code below to use OfferWall:<br/>
```java
import com.yesup.partner.YesupOfferWall;
{'fraction_non_alphanumeric': 0.1555880204528853, 'fraction_numerical': 0.01241782322863404, 'mean_word_length': 3.838339222614841, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1389409', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1652, 'n_words': 552}