Huawei-SmartAd Header Bidding Adapter Github Documentation

Overview

Huawei-SmartAd Header Bidding Adapter Github Documentation

Latest Version Kotlin Supported Platforms

Introduction

The Huawei Header Bidding adapter allows you to connect Huawei Publisher Services in-app bidder SDK with Smart Display SDK.

You will find in this repository the classes you need to connect Huawei Publisher Services in-app bidding and Smart Display SDK, as well as a sample in the Sample directory.

Bidder implementation structure

The Huawei Header Bidding adapter is split into three different classes:

  • SASHuaweiBaseBidderAdapter: this class is an abstract class implementing the SASBidderAdapter interface regrouping the code in common for Banner concrete adapter
  • SASHuaweiBannerBidderAdapter: this class implements the SASBannerBidderAdapter and is the adapter you should use to load an Huawei banner ad in a SASBannerView, as it provides the needed third party banner rendering capabilities.

Integrate the Huawei Header Bidding SDK

In the project-level build.gradle, include Huawei's Maven repository.

repositories {
    ...
    maven { url "https://maven.google.com" }
    maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
    maven { url 'https://developer.huawei.com/repo/' }
}

...

allprojects {
    repositories {
        ...
        maven { url "https://maven.google.com" }
        maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
        maven { url 'https://developer.huawei.com/repo/' }
    }
}

Using the Huawei Header Bidding adapter in your app

Request an Huawei ad using HuaweiAds, then:

For banner ads, create an instance of SASHuaweiBannerBidderAdapter using the Huawei ad response when the Huawei call is successful, and pass it to the loadAd() call on the Smart SASBannerView:

huaweiAds.loadAd(
            onSuccess = {
                Log.i(TAG, "Huawei ad request is successful")
                // Huawei returned an ad, wrap it in a SASHuaweiBannerBidderAdapter object and pass it to the Smart ad call
                val bidderAdapter =
                    SASHuaweiBannerBidderAdapter(it!!, this@HeaderBiddingBannerActivity)
                bannerView?.loadAd(adPlacement, bidderAdapter)
            })

Configuring Network Permissions

To allow HTTP and HTTPS network requests on devices with targetSdkVersion 28 or later, configure the following information in the AndroidManifest.xml file:

<application
    ...
    android:usesCleartextTraffic="true"
    >
    ...
</application>

Version Change History

1.0

NOTE: Huawei Ads Kit SDK didn't support HTML Markup, so ad cannot be displayed. You can access the bid and ad data from Huawei via adapter and you can show this ad yourself in the custom view.

Licence

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
Github client for Android
Github client for Android

OctoDroid This application provides access to GitHub and lets you stay connected with your network Download Main features Repository List repositories

Shows how to build a VPN app for Android using leaf: https://github.com/eycorsican/leaf .

aleaf Shows how to build a VPN app for Android using leaf. Dependencies Rust GCC/clang Make SDK NDK LLVM (Windows host only, see below) Building Linux

A feed for GitHub, written in Kotlin using Jetpack Compose.

Gimmick A while back, I noticed that the official GitHub app doesn't have a feed similar to the one can find on the GitHub homepage. Naturally I had t

An efficient GitHub profile app, written in Kotlin!
An efficient GitHub profile app, written in Kotlin!

GitPositive An efficient GitHub profile app, written in Kotlin! GitPositive aims to be a simple and efficient GitHub profile app, following the princi

Git history is an android application that simply tracks GitHub repository's issues.
Git history is an android application that simply tracks GitHub repository's issues.

Git History About Git history is an android application that simply tracks GitHub repository's issues. You can search for user and get all public repo

Github search repository api를 사용합니다.
Github search repository api를 사용합니다.

GithubSearch ✔️ Description Github API 중 search repository api를 사용하였으며, 레포지토리를 검색할 수 있습니다. star 개수를 기준으로 내림차순하여 인기있는 레포지토리부터 볼 수 있습니다. 📱 GIF 🛠 Used

Criando um App para Apresentar seu Portfólio do GitHub

LAB - Criando um App para Apresentar seu Portfólio do GitHub O curso pode ser acessado na plataforma da Digital Innovation One. Sobre o Autor Sou um d

An application to manage SSH and GPG keys on GitHub written in Kotlin.
An application to manage SSH and GPG keys on GitHub written in Kotlin.

KeyManager An application to manage SSH and GPG keys on GitHub written in Kotlin. Thanks to FreePik for the app icon. Screenshots Building You will ne

The App shows PR of Github Open Projects
The App shows PR of Github Open Projects

GithubPull This App shows PR of Github Open Projects - Developed using :- Kotlin Programming Language MVVM Design Pattern Data Binding Pagination for

Owner
Aggregate developers' contributions to the HMS ecosystem,and expect to promote communication among more HMS-loving individual developers
null
A news app made using android studio in Java with features like favourite news, Location detector for local news, and especially made with HUAWEI APIs

HuaweiGlobalNewsApp A news app made using android studio in Java with features like favourite news, Location detector for local news, and especially m

Christian Imanuel Hadiwidjaja 1 Oct 30, 2021
Android cutout screen support Android P. Android O support huawei, xiaomi, oppo and vivo.

CutoutScreenSupport Android cutout screen support Android P. Android O support huawei, xiaomi, oppo and vivo. Usage whether the mobile phone is cutout

hacket 5 Nov 3, 2022
An app for developers which contains more than 2.4k+ resources , with 1.2k+ free public API documentation

ResourceUp We often spend a lot of time finding good resources to get started with our project right? ResourceUp aims to provide all useful resources

kalp patel 10 Apr 30, 2022
Github-Api-Pagination-Example - Pagination 3 Example using Github Api

Github-Api-Pagination Pagination 3 Example using Github Api Tech Stack 100% Kotl

Anggoro Beno Lukito 2 Aug 22, 2022
GithubUsersGalleryApp - Github users app consumed Github API

GithubUsersApp ✨ Github users app consumed Github API ✨ Architecture Using Moder

Ali Azaz Alam 1 Feb 20, 2022
GitHub application fetches events, repositories and profile using GitHub APIs

GitHub application using GitHub REST API Dagger MVVM architecture Mockk Jetpack Compose Kotlin Coroutines Application pages Attention If you want to u

Marjan DavoodiNejad 6 Oct 17, 2022
Repository ini berguna untuk menyimpan kode yang dibutuhkan untuk membuat sebuah Aplikasi Android yang memiliki ListView yang menggunakan Custom Adapter dan Mengambil data dari Database secara CRUD.

AndroidListView Repository ini berguna untuk menyimpan kode yang dibutuhkan untuk membuat sebuah Aplikasi Android yang memiliki ListView yang mengguna

Bryan Yehuda Mannuel 1 Jan 2, 2022
Vanilla Music Player for Android (abandoned). Visit https://github.com/vanilla-music/vanilla for an actively developed fork

Translating You can help translate here. If your language isn't on the list, open an issue and I can add it. Building To build you will need: A Java c

Chris Eby 154 Dec 9, 2022
GitHub client for Android based on the abandoned official app

ForkHub ForkHub started off as a fork of the official Android app from GitHub, and has since seen lots of improvements. You can see a comprehensive li

Jon Ander Peñalba 2.8k Dec 28, 2022
Implementation of the application using the latest Android Tech Stack and the GitHub REST API.

GitHub Viewer Implementation of the application using the latest Android Tech Stack and the GitHub REST API. <!-- Github login. You can change the use

Vitaliy Zarubin 53 Jan 3, 2023