目录

Client Sample Code

Petal Ads Publisher Service

The sample code provides a demo project that demonstrates how to integrate the Petal Ads SDK into an app. Guided by the demo, you will learn how to implement the following functions:

Sample Code

Find It on Gitee

Find It on GitHub

Android Studio sample code (Java)

Click here

Click here

Android Studio sample code (Kotlin)

Click here

Click here

Android Studio sample code (JavaScript)

Click here

Click here

Eclipse sample code

Click here

Click here

VAST

The sample code provides a demo project that demonstrates how to integrate the HUAWEI VAST SDK into an Android app using Java code. Guided by the demo, you will learn how to implement the following function:

Delivering linear ads and ad pods

Sample Code

Find It on Gitee

Find It on GitHub

Android Studio sample code

Click here

Click here

OAID

The Java sample code provides a demo project that demonstrates how to integrate the OAID service into a Huawei device. Guided by the demo, you will learn how to implement the following function:

Personalized ad delivery

Sample Code

Find It on Gitee

Find It on GitHub

Android Studio sample code

Click here

Click here