[AppsUP] Collection of Integration Cases for Ads Kit - Huawei Developers

AppsUP contest, with $1million as the prize, has been online for one month. Many developers feed some integrating issues back in this forum. In my previous articles, I have collected cases about Account Kit, Map Kit, Push Kit and Analytics Kit. Today I want to share the collection of Ads Kit with you.
How To Create Ads Slot ID Using HMS Ads Kit
HUAWEI Ads Publisher Service utilizes Huawei's vast user base and extensive data capabilities to deliver targeted, high quality ad content to users. In this article, it elaborates how to create Ads kit and use it to monetize our app.
Integrate Ads kit in Flutter Application
With HUAWEI Ads Publisher Service, your app will be able to generate revenues while bringing your users content which is relevant to them. This article focuses on integrating HMS Ads kit into a flutter application.
HMS Ad kit. Native ads
Huawei Ads enables developers to deliver high quality ad content to their users. Native ads fit seamlessly into the surrounding content to match the app design. In this article we are going to learn how to integrate Native Ad into our apps.
How to Develop a Reward Ads in 10 Min ? (Part 1)
By integrating HMS ads kit we can start earning right away. It is very useful particularly when we are publishing a free app and want to earn some money from it. This article introduces how to integrate Reward Ad into our apps.
HMS Ads Kit feat. Splash Ads (Part 2)
There are a range of ad formats so developers can choose whichever that suits their app best. This article introduces how to integrate ads in splash screen by using HMS Splash Ads kit.
HMS Ads Kit feat. Banner Ads (Part 3)
Use the HUAWEI Ads SDK to quickly integrate HUAWEI Ads into your app. When developers choose an ad format, they are ready to start bringing in revenue using the advertising services. This article explains how to integrate banner ads by using HMS Banner Ads kit.
Want to monetize you application, Huawei Ads Kit comes to the rescue
Ads kit will not only monetize your application but also create an interactive feel within your application apart from that Ads Kit will help you boom your business model to the next level. This article introduces you different kind of ads you can take advantage from.
AD kit collections: Huawei vs AdMob
Ad kit service maximizes the value of every impression by combining global advertiser demand, innovative ad formats, and advanced app monetization technology. In this article, the author introduces how to integrate banner ad and reward video ad provided by Google Admob and Huawei Ad kit in single application.
Maximizing app monetization with Publisher Service of HUAWEI Ads Kit
This article aims to help developers solve how to maximize app monetization through in-app ads, while at the same time providing a positive app user experience.
How to add Native Ads, Interstitial Ads and Rewarded Ads in Flutter
In this article we will be discussing about how we can integrate Interstitial Ads, Reward Ads and Native Ads.
Monetize your app with Ads Kit
Can you image that one app is not only free but enables you to make money? Before this, you may think it is impossible. But in this article, it shows you how to place ads in you app and monetize by using it.
Unleashing HMS ADs kit: with React Native
The journey from newspaper advertisement to digital advertisement is been beautiful as we understand the need of advertisement in any business. This article introduces how to quickly add banner ads.
More cases you want to know, let me know in the reply.
Follow me and check the updated post at any time.

Related

[AppsUP] Collection of Integration Cases for Push Kit

More information about the AppsUP contest, you can visit HUAWEI Developer Forum.​
AppsUP contest was launched on 30 June. Now more and more developers take part in it. Undoubtedly, many developers encounter the issues in the process of integrating apps. In my previous articles, I have collected cases about Account Kit and Map Kit. Today I want to share the collection of Push Kit with you.
HMS PUSH KIT CLIENT SIDE (PART 1)
Huawei Push Kit is a messaging service provided by Huawei for developers. It establishes a communication channel between the cloud and devices. Using Huawei Push Kit, developers can send the latest messages to users, which helps developers maintain closer ties with users and increases user awareness and activity. This article explains how to integrate HMS core Push kit into your apps.
HMS PUSH KIT SERVER SIDE ( PART2 )
Huawei Push Kit is already available more than 200+ countries and regions. It offers the capacity of sending 10 million messages per second from the server, delivering 99% of them and providing real time push reports to improve the DAU of your apps. In this article, you can see how to send notification to devices from server using HMS Push Kit.
Push Notification Using Airship SDK For HMS Devices
Airship is a platform for customer engagement, lifecycle marketing, and analytics and data solutions. This SDK expose messaging and data-gathering functionality on client devices. This Article is Mainly Focused on Messaging (Push Notification) by Using Airship’s SDK.
Build Your Own Server From Scratch To Send Push Notification Using : Node Js, Express Js, MongoDB, EJS, HMS Core Push Kit & Retrofit
In this article, it introduces how to create your own local server on your machine, store push token send from Huawei devices to a dedicate database and also send notification using a static webpage.
HMS Push Kit : Delineated using React Native
HMS PUSH KIT is developed and proposed with an intention to bring more user engagement, easy integration and communication with customers. Here is the introduction of developing HMS Push Kit apps.
Cordova HMS Binding
In this article, it introduces what is Cordova, how to settings up an application using CLI and how to integrate Cordova application with HMS bindings.
Push Kit with Cordova: Implementing onNotificationOpened
Some of the push plugins have notification click listeners as a functionality. Here I will try to explain a workaround to do it with HMS Push Kit in Cordova, so that we can manage our application when it is opened upon a push notification tab.
HMS Push Kit Cordova Plugin: fs.copyFileSync is not a function
There are a number of reasons this might happen - first make sure that you've imported the nodejs 'fs' module into your project before you use it. I will focus on the error you might meet when you try to build or run your Cordova project.
Certificate Fingerprint Error and possible troubleshooting steps
This is a common error you may face while integrating any of the HMS Core kits in your Android app. Sometimes a single error message can be generated by multiple causes. In this article, I try to solve certificate fingerprint error with the integration of Push Kit, ready to test and get the first Device Token.
Comparison of Methods for Obtaining Data of Android Devices Between Google FCM and HUAWEI Push Kit
As we all know, the ability to push messages to users is a very important function. I proceeded to study some of the functions of Google Firebase Cloud Messaging (FCM) and HUAWEI Push Kit. Among the functions, I paid most attention to ones that had to do with data statistics. In this article, I will share this experience with you.
How to send push notifications to Huawei devices
With Push kit, you can send push notifications or data messages to your app users from the App Gallery Connect Console or by the Push API. In this article, I’m going to show you how to send notifications and data messages using the push kit.
Implement HMS Push Kit with Flutter
Push Kit is a real time cross platform messaging service, which establishes a messaging channel from the cloud to devices. You can send notifications your Android, iOS and Web users using Push Kit.
I will regularly update this post in the following days. Hope it can benefit you.
Any doubts or questions about Push Kit, let me know in the reply.

[AppsUP] Collection of Integration Cases for Analytics Kit

AppsUP contest has been launched since June 30. If you missed the optimal chance to participate in, hurry up now. This time I will share the collection of integration cases for Analytics Kit. If you still have no idea about integrating this kit. Hope this can help you know it better.
Huawei Mobile Services (HMS) Analytics Kit Implementation and Usage for Android
In this article, the author tries to explain Huawei Analytics Kit implementation for an Android app. In addition, he will create a demo project and check analysis on AppGallery Connect dashboard.
Analytics Kit – Customize START and END Analytics page events for no activity pages
This articles helps users to know how to track a specific navigation events for start or end pages in fragments or any specific space.
Data Export API of Analytic Kit
Data export functions is very useful for developers who use their own prefer Business intelligence (BI) system for unified data analysis.
Using advanced Analytics events with Kotlin
This post aims to help developers use Kotlin to implement the Advanced Analytics feature in their codebase.
Demystifying Data Binding - Android Jetpack Part 1 – Novice
Using data binding can lead to faster development times, faster execution times and easier to read (and maintain) code. In this article we will learn about Data binding library from Novoice mode to Proficient mode
Demystifying Data Binding - Android Jetpack Part 2 – Advanced
Data Binding allows you to bind data and UI elements so that when the data changes, the pertinent elements are updated on screen.
Demystifying Data Binding - Android Jetpack Part 3 – Proficient
Data Binding can be achieved by using main components of MVVM i.e. Live Data and View Model. In this article, the author introduces the proficient way to receives the latest available data If an activity or fragment is recreated due to a configuration change (for instance, device rotation).
Optimize Conversion Rate Using A/B Testing
With Huawei Analytics Kit, A/B testing can be a fantastic method to obtain valuable insight regarding visitor behavior and to improve applications or website conversion rate.
Multi-dimensional Event Analysis|HUAWEI Analytics Kit (1)
HUAWEI Analytics Kit is a one-stop data analysis platform for mobile app developers that utilizes data to drive daily app operations, bringing out dynamic details in a comprehensive, timely, and efficient manner.
Change your Data Storage in a Published App
This article explains how to generate a work order for changing this data storage once your app has been released with a different one than the one you need.
Related articles you can refer:
[AppsUP] Collection of Integration Cases for Account Kit
[AppsUP] Collection of Integration Cases for Map Kit
[AppsUP] Collection of Integration Cases for Push Kit
If you want to know other cases about this kit, let your comment below or ask your questions in HUAWEI Developer Forum.

Free analytics for over 2.3 million developers worldwide - provided by GameAnalytics and Huawei HMS

As an industry-leading analytics company for mobile games, GameAnalytics empowers developers of all sizes, helping them to build more engaging user experiences through a strong understanding of their game’s core metrics. With GameAnalytics insights, developers can tap into their games’ potential through collecting, analyzing, and presenting game performance data. This includes everything from basic metrics (such as active users, retention, and playtime) to more advanced analytics around ad revenue, virtual currency, and level progression.
The partnership brings mutual benefits to both parties; Huawei can continue growing its ecosystem with more platform partners and further support the success of its game developers. Simultaneously, GameAnalytics can leverage Huawei’s technological capabilities, enhancing its Android SDK to support OAID (a non-permanent device identifier that Huawei developers use to display personalized ads for their users while protecting their privacy) across all mobile devices. This lets HMS ecosystem game developers integrate with the platform, to unlock deeper analysis and continue to grow their games.
Used by nearly 100,000 developers and over 63,000 studios worldwide, GameAnalytics supports around 100,000 active games, providing necessary data to help mobile developers achieve their growth goals. GameAnalytics can be easily integrated in less than 15 minutes, and its core analytics tool has and will continue to remain free.
How to get started​
If you’re a Huawei game developer (or want to become one), and you use GameAnalytics, here’s what you need to do:
1. Head to GameAnalytics’ Android SDK Guide. Download the SDK and set yourself
up.
2. Then integrate Huawei Ads SDK by following these steps.
3. And you’re done! The Android SDK can now automatically detect if the OAID is available to be used.
Please note, if both GAID and OAID are available on a player’s device, then GAID will be used as a primary device ID, though both will be collected and available in features like the Player Warehouse, Event Export, or Raw Export. If you have any questions, just get in touch with our friendly support team.
For more information please visit Huawei Partner Website or GameAnalytics website for the Android SDK Integration Guide.

HDC 2021: HUAWEI DTM Helps Developers Track Data Without Coding

From October 22 to 24, the HUAWEI DEVELOPER CONFERENCE 2021 (HDC.Together) was held in Songshan Lake, Dongguan. At the HMS Core 6.0: App Services technical session, the product executive of HUAWEI Dynamic Tag Manager (DTM) gave a speech on codeless tag management, and detailed the functions and advantages of DTM, attracting much attention from the audience.
As a tag management system, DTM can help developers flexibly manage data tracking tags for their apps without coding, empowering them to dynamically track specific events and report data to third-party analytics platforms with ease. Such a feature piqued the interests of many developers who attended the conference.
To explain how data is collected and reported without coding, let's look at the DTM service process in the figure above. DTM consists of a cloud portal and client. Developers can create a configuration file on the portal, which is then downloaded by the DTM SDK integrated into their apps. When a user clicks an ad or button in the app, the DTM SDK will collect, process, and send data based on the configuration file. The data can then be sent to HUAWEI Analytics or third-party analytics platforms as required. The configuration process is highly flexible, and even operations personnel with no coding experience can quickly create a configuration file on their own, reducing the workload of programmers.
During the HMS Core 6.0: App Services technical session, the product executive demonstrated how to use DTM with an online shopping app. When a user taps Add to Shopping Cart, the shopping app reports an event containing relevant data to a third-party analytics platform. To implement this feature, we can create a configuration file on DTM, which consists of three parts:
When to report data: This part determines when data will be reported, such as when a user taps the Add to Shopping Cart button.
What data to send: This part configures which data to be sent to the analytics platform, such as product name, color, and version.
Where data is sent to: This part specifies one or more analytics platforms to which the data is reported, for example, HUAWEI Analytics and HUAWEI Ads.
After such an event is generated, the DTM SDK will quickly collect and send the event to the specified analytics platforms based on the configuration file.
The DTM product executive also introduced another big advantage of DTM, which is visual event tracking. With visual event tracking, the native app or web app screen can be replicated on the DTM portal, allowing marketers and developers to directly add tracking events and parameters by clicking relevant elements on the portal page. This has the effect of considerably improving data collection efficiency.
DTM empowers developers to obtain and distribute data with ease by configuring rules or adding visual events.​
Efficient Ad Conversion Tracking with DTM
During the session, a product expert from HUAWEI Ads gave a presentation on how HUAWEI Ads and DTM work together to track ad conversions efficiently, and shared his experience of using DTM.
Figure: Presentation on how HUAWEI Ads and DTM work together to track ad conversions efficiently​
According to Huawei's statistical data, around 35% of web advertisers now use DTM to promote ad conversions, helping significantly reduce their workloads and improve efficiency. Before using DTM, web advertisers needed to add tracking code to individual web pages, and test and release the code, which is usually a time-consuming process. Following the adoption of DTM, web advertisers can now configure, test, and release tracking events using DTM, reducing the overall process time by 80%. In addition, when tracking events need to be changed, web advertisers can directly do so on the DTM portal without having to write additional code or release an app update, sharply shortening the development period. It comes as no surprise that event tracking with DTM is now the first choice for HUAWEI Ads web advertisers to track conversions on web pages.
Refined Operations with DTM
Figure: Huawei personnel explain DTM functions to developers​
DTM garnered much attention for itself at this year's HDC, thanks to its flexibility, efficiency, low cost, support for multiple platforms, and ability to provide mobile app and web page data tracking without coding. Ultimately, the key advantage of DTM is that it allows operations personnel to easily configure and modify rules for reporting events to various analytics platforms, which not only helps reduce development costs but also allows operations personnel to quickly obtain a wide range of data and adjust their operations strategies accordingly.
To learn more about DTM, please visit:
>> DTM official website
>> DTM development guide
>> DTM codelab
If you have any questions, submit a ticket online.
Thanks for sharing!

How to Target Ads Precisely While Protecting User Privacy

Background​
When using an app, if pop-up ads keep appearing when we browse app pages but we are not interested in the advertised content, not only will our browsing experience be negatively affected, but we will also quickly become tired of the advertised content. Unwanted ads are usually annoying. Aimless ad targeting and delivery will result in the wrong ads being sent to users and cause poor ad performance.
So, as publishers, how do we guarantee that we can deliver ads to audiences who will be interested in them and how can we decrease users' resistance to advertising? The answer is to collect information about the user requirements of your target audiences or to really know them, and to do so in a way that causes the least annoyance. But when a user is unwilling to share their personal data, such as age, gender, and interests, with my app, placing an ad based on the page that the user is browsing is a good alternative.
For example, a user is reading an article in a news app about the fast-paced development of electric vehicles, rapidly improving battery technology, and the expansion of charging stations in cities. If the targeted advertising mechanism understands the context of the article, when users continue to read news articles in the app, they may see native ads from nearby car dealerships for test driving electric vehicles or ads about special offers for purchasing electric vehicles of a certain brand. In this way, user interests can be accurately discovered, and publishers can perform advertising based on the keywords and other metadata included in the contextual information of the app page, or any other content users are reading or watching, without having to collect users' personal information.
But I can't integrate these features all by myself, so I started searching for tools to help me request and deliver ads based on the contextual information on an app page. That's when I had the great fortune to discover Ads Kit of HMS Core. Ads Kit supports personalized and non-personalized ads. Personalized ad requests require users to grant the app access to some of their personal information, which may not be palatable for some users. Non-personalized advertising, however, is not constrained by this requirement.
Non-personalized ads are not based on users' past behavior. Instead, they target audiences using contextual information. The contextual information includes the user's rough geographical location (such as city) authorized by the user, basic device information (such as the mobile phone model), and content of the current app or search keyword. When a user browses a piece of content in your app, or searches for a topic or keyword to express a specific interest, the contextual ad system scans a specific word or a combination of words, and pushes an ad based on the page content that the user is browsing.
Today, data security and personal privacy requirements are becoming more and more stringent. Many users are very hesitant to provide personal information, which means that precise ad delivery is becoming harder and harder to achieve. Luckily, Ads Kit requests ads based on contextual information, enabling publishers to perform ad delivery with a high degree of accuracy while protecting user privacy and information.
Now let's take a look at the simple steps we need to perform in order to quickly integrate Ads Kit and perform contextual advertising.
Integration Steps​
1. Ensure that the following prerequisites are met before you integrate the Ads Kit:
HMS Core (APK) 4.0.0.300 or later should be installed on devices. If the APK is not installed or an earlier version has been installed, you will not be able to call the APIs of the Ads Kit.
Before you begin the integration process, make sure that you have registered as a Huawei developer and completed identity verification on HUAWEI Developers.
Create a project and add an app to the project for later SDK integration.
2. Import the Ads SDK.
You can integrate the Ads SDK using the Maven repository.
That is, before you start developing an app, configure the Maven repository address for Ads SDK integration in your Android Studio project.
The procedure for configuring the Maven repository address in Android Studio is different for Gradle plugin versions earlier than 7.0, Gradle plugin 7.0, and Gradle plugin versions 7.1 and later. Configure the Maven repository address accordingly based on your Gadle plugin version.
3. Configure network permissions.
To allow apps to use cleartext HTTP and HTTPS traffic on devices with targetSdkVersion 28 or later, configure the following information in the AndroidManifest.xml file:
Code:
<application
...
android:usesCleartextTraffic="true"
>
...
</application>
4. Configure obfuscation scripts.
Before building the APK, configure the obfuscation configuration file to prevent the SDK from being obfuscated.
Open the obfuscation configuration file proguard-rules.pro in your app's module directory of your Android project, and add configurations to exclude the SDK from obfuscation.
Code:
-keep class com.huawei.openalliance.ad.** { *; }
-keep class com.huawei.hms.ads.** { *; }
5. Initialize the SDK.
You can initialize the SDK in the activity, or initialize the SDK by calling the HwAds.init(Context context) API in the AdSampleApplication class upon app launch. The latter method is recommended, but you have to implement the AdSampleApplication class by yourself.
6. Request ads based on contextual information.
The SDK provides the setContentBundle method in the AdParam.Builder class for you to pass contextual information in an ad request.
The sample code is as follows:
Code:
RewardAd rewardAd = new RewardAd(this, rewardId);
AdParam.Builder adParam = new AdParam.Builder();
String mediaContent = "{\"channelCategoryCode\":[\"TV series\"],\"title\":[\"Game of Thrones\"],\"tags\":[\"fantasy\"],\"relatedPeople\":[\"David Benioff\"],\"content\":[\"Nine noble families fight for control over the lands of Westeros.\"],\"contentID\":[\"123123\"],\"category\":[\"classics\"],\"subcategory\":[\"fantasy drama\"],\"thirdCategory\":[\"mystery\"]}\n";
adParam.setContentBundle(mediaContent);
rewardAd.loadAd(adParam.build(), new RewardAdLoadListener());
Conclusion​Nowadays, advertising is an important way for publishers to monetize their apps and content, and how to deliver the right ads to the right audiences has become a key focus point. In addition to creating high quality ads, significant efforts should be placed on ensuring precise ad delivery. As an app developer and publisher, I was always searching for methods to improve ad performance and content monetization in my app. In this article, I briefly introduced a useful tool, Ads Kit, which helps publishers request ads based on contextual information, without needing to collect users' personal information. What's more, the integration process is quick and easy and only involves a few simple steps. I'm sure you'll find it useful for improving your app's ad performance.
References​Development Guide of Ads Kit

Categories

Resources