Skip to content

Files

Latest commit

730ff53 · Jul 1, 2020

History

History
This branch is 254 commits behind huaweicodelabs/Ads:master.

Rewarded

RewardExample

Table of Contents

Introduction

The RewardExample program demonstrates how to integrate the HMS Core Ads SDK into an Android app and display ads.

Installation

Install the program on Huawei Android mobile phones.

Supported Environments

HMS Core (APK) 4.0.0 or later has been installed on Huawei Android phones.

Configuration

N/A

Sample Code

The RewardExample program integrates the HMS Core Ads SDK and provides the page for displaying rewarded ads.
The following class in the demo is used for loading and displaying ads:

MainActivity.java
Loads and displays rewarded ads.
Code location:RewardExample\app\src\main\java\com\example\rewardexample\MainActivity.java

License

RewardExample is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).