Giter Site home page Giter Site logo

alexanderalisrawi / hms-ads-vast-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hms-core/hms-ads-vast-demo

0.0 0.0 0.0 5.01 MB

The VAST ad sample code provided by HUAWEI Ads Kit describes how to display linear ads by integrating the HUAWEI VAST SDK into your app.

Java 100.00%

hms-ads-vast-demo's Introduction

HMS Ads Demo for VAST

English | δΈ­ζ–‡

Table of Contents

Introduction

The Video Ad Serving Template (VAST) specification is defined and released by the Interactive Advertising Bureau (IAB).Currently, HUAWEI Ads supports only linear ads (pre-roll, mid-roll, and post-roll ads) under this specification.The VAST ad sample code provided by Ads Kit describes how to display linear ads by integrating the HUAWEI VAST SDK into your app. If you want to use the default player, integrate the HUAWEI Player SDK as well.

Installation

Install the program on Huawei Android mobile phones.

Configuration

No additional configuration is required.

Supported Environments

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

Sample Code

The VAST ad sample code provided by Ads Kit describes how to display linear ads by integrating the HUAWEI VAST SDK into your app. If you want to use the default player, integrate the HUAWEI Player SDK as well.

1). DemoApplication.java Initializing the SDK.
Code location: app/src/main/java/com/huawei/hms/ads/vast/DemoApplication.java

2). LinearAdActivity.java Loads and displays linear ads.
Code location: app/src/main/java/com/huawei/hms/ads/vast/demo/LinearAdActivity.java

Result

linear Ads

Question or issues

If you want to evaluate more about HMS Core, HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

hms-ads-demo-javascript is licensed under the Apache License, version 2.0.

hms-ads-vast-demo's People

Contributors

wwx5325878 avatar chenqiuwei avatar mike-mei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.