HMS Ads Kit | A Shortcut to Create Ads Slot ID - Huawei Developers

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Earlier in my articles, we learn how to integrate Huawei Ads Kit in our application using Test Slot ID provided to us for testing purpose. Today we will see how to create one and monetize our app.
Let’s make some money
There are two types of developer account we will see at the time we sign up in Huawei Developer Website:
1) Individual Developer Account
2) Enterprise Developer Account
In order to create Ads Slot Id we must need to have an Enterprise Developer Account. For Individual Developer Account, there is no rights to create Ads Slot Id.
Essential Requirement
Create Enterprise Account
a) First we need to sign up in Huawei Developer Website.
b) After creating Huawei Developer Id, we will be provided with two option i.e. Individual or Enterprise Developer Account.
c) Select Enterprise Developer Account.
d) Provide all the necessary information in the form as shown below:
e) We can use either the DUNS number or Business license for identity verification for enterprise developers. It will 1 to 3 business days for verification.
Become a Merchant
We need to be a merchant in order to use HMS Ads Kit. Also after making your account as merchant, it will take 1 or 2 business days for verification.
Steps:
a) Login to Huawei Developer website.
b) Go to console.
c) Under Settings you will find Merchant Service as shown below:
d) Provide our bank details information here as shown below:
e) Provide our tax related information here as shown below:
f) Finally click submit to save the record for verification.
Huawei Ads Publisher Service Agreement
After the preceding steps are complete, use one of the following entries to sign in to Huawei Ads Publisher Service for further operations.
Steps:
Go to HUAWEI Developers > Console, and click Publisher service in App services. If no Publisher service card is displayed upon the first sign-in, click DIY in the upper right corner to add the Publisher service card. Read the HUAWEI Ads Publisher Service Agreement that is then displayed. If you agree, select by checking this box I confirm that I have read and agree to be bound by HUAWEI Ads Publisher Service Agreement. The agreement takes effect immediately. If you have signed the service agreement, you can view the signing record in My account and Download the agreement.
Steps To Create Ads Slot Id
Add an App
In order to create Ads Slot Id, we need to create first an app. This app will help us to connect Huawei Ads.
Steps:
a) Sign In to Huawei Account and select Publisher Service as shown below:
b) After selecting Publisher Service, we need to go to My apps and select Add app as shown below:
c) Select the app name from the drop down which we have already created in AGC. When we select the app from the drop down it will automatically fill up the rest. After that click Submit as shown below:
d) Finally it will look like this:
Add a unit / slot Id
Now we will add a unit or slot Id. Currently, HUAWEI Ads supports the banner, native, rewarded, interstitial, and splash ads. You can add units for the ad formats based on the app running status.
Steps:
a) On HUAWEI Ads Publisher Console, click My Apps, and click Add ad unit in the Operation column of an app as shown below:
b) We have to choose an ads format as shown below:
c) After selecting any ads format, fill in the unit information, including the name and media type, and complete advanced settings as required.
Banner Ads:
Splash Ads:
Reward Ads:
Native Ads:
Interstitial Ads:
eCPM: We can set the minimum eCPM for an ad unit. If the bid of an ad is lower than the minimum eCPM you set, the ad is not displayed. However, a too high minimum eCPM may lower the ad fill rate.
Frequency control: To ensure the experience of users, we can use this setting to control the number of ad impressions. The time unit ofFrequency controlcan be minute, hour, or day. If we select minute, the time cannot exceed 60 minutes. If we select hour, the time cannot exceed 24 hours. If we select day, the time cannot exceed 30 days.
For example, you setFrequency controltoUp to 1 impression for every user per 1 hour. In this way, when a user uses our app, the user can view up to one ad in the ad unit within one hour after the ad is displayed.
d) Click Save
e) Finally we will get the Ads Slot ID as show below:
How to use it?
Follow these articles to know how to use these Ads Slot IDs:
1) Reward Ads: https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201221846399980002&fid=0101187876626530001
2) Banner Ads:https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201230166492630050&fid=0101187876626530001
3) Splash Ads:https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201224203738280005&fid=0101187876626530001
4) Native Ads:https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201246549267010138&fid=0101187876626530001
5) Interstitial Ads:https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201246769882920150&fid=0101187876626530001

Related

[AppsUP] Frequently Asked Questions About Huawei Ads Kit

AppsUP contest has already been launched for one month. A number of participants in the forum ask some questions about Ads Kit. Today I want to share the frequently asked questions of Ads Kit with you. Hope they can be helpful for you.
Q: How to integrate Huawei Ads in my game? How could it compliant to EU consent?
A: Here is the link: https://developers.google.com/admob/android/eu-consent
Q: How to get ads ids for my apps those are available on Huawei Developer Console?
A: regarding getting Ads ID, please first make sure your developer account is a Company Account, because Ads on individual account is not available just yet.
If your account is a company account, you can login to your console
https://developer.huawei.com/consumer/en/console#/serviceCards/
Then look for the Monetize Service section and click on Publisher Service. There you can select My Apps, click Add app, and then you can register your app for Ads Service. Afterwards an Ads ID will be generated for you and will be showed on the panel.
Q: I used cordova for development app and plugins that provided from huawei like analytics and I succeeded, but for ads-kit can’t find guide for integration plugin - only I can find download plugin 4.0.4 and demo example. But what I get Console without any fired event that registered like "failed" and also did not get any Oaid.
A: Some kits are incompatible with non-huawei devices, even if you install the HMS core APK. You can check the compatibility for each kit here.
Q: I find all the sample use the test ads id but how to make the release one?
A: Individual account is not supported yet, but this function will be available at end of August, confirmed by related department.
Q: Why do native ad videos fail to be played and remain in loading state?
A: On mobile phones whose targetSdkVersion is 28 or later, ad video assets may fail to be downloaded. In this case, you need to configure the app to allow HTTP network requests. For details, please refer to Configuring Network Permissions.
Q: What are the differences between the ads-lite SDK, ads-identifier SDK, and ads-install referrer SDK provided by HUAWEI Ads Kit?
A: The Difference:
1. ads-lite: Integrates ad formats such as banner, native, rewarded, interstitial and splash ads.
2. ads-identifier: Obtains the OAID and the value of Disable Ads Personalization.
3. ads-installreferrer: used to obtain an install referrer.
To know more please refer to Integrating the HUAWEI Ads SDK.
Q: How is an ad report generated? Is developer data reported in two copies (one copy for Huawei and the other copy for the third-party platform)?
A: An ad report is generated after the server cleans various ad SDK-reported ad events for the anti-cheating purpose. The ad SDK in the app reports data to the ad platform and third-party advertising platform.
Q: I am individual developer. What platform I can use to monetize my apps?
A: You can apply for the Merchant Service if you want to use the In-App Purchases service, distribute paid apps or themes, or carry out joint operations (for apps, games, and themes) with Huawei. Please follow the instructions here:
https://developer.huawei.com/consumer/en/doc/start/10112#h1-1588057611069
Q: I want to distribute my Games in China. When I select china it asks me to upload some Copyrighted approved content? How can I bring these documents to china government because I am not from China but I want to distribute my games in China as well on App Gallery.
A: a. Publish a game in China, the law has requirements for both companies and games.
For companies: should have ICP, Network culture business license and Internet publishing license
For games: should have Software copyright, Game operation record and ISBN
b. Oversea game companies cannot apply for the certificates, so only have two ways to launch game in China:
Register company in China with 100% domestic capital Agent cooperation, and find a Chinese publisher release in China
Q: Why do banner ads fail to be obtained after my app has integrated the HUAWEI Ads SDK? The displayed error code is 1.
A: If the value of errorCode is 1, check whether AdId and BannerAdSize are correctly set in BannerView. The following table describes the error codes.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you also have other questions about this kit. Leave your reply below.

Initiate payment using IAP(Part 1)

I have written series of article on Quick App. If you are new to Quick App refer my previous articles.
Quick App set up
A Novice Journey Towards Quick App ( Part 2 )
A Novice Journey Towards Quick App ( Part 3 )
Introduction
In App Purchase makes user to make online payment. In order make online payment in quick app let’s see how to integrate the IAP in Quick App.
Follow the steps
Step 1: Sign in to AppGallery Connect and select My projects.
Step 2: Select the project which you need to enable the service.
Step 3: Click the Manage API tab, Enable In-App purchase.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Above screen will show when Merchant service is not enabled. If you don’t have Merchant account follow the Enable Merchant service.
Step 4: Sign in to HUAWEI Developer. Click Console.
Step 5: Click App Services in the navigation bar on the left and select HUAWEI IAP.
Step 6: From the product list, find the app for which the HUAWEI IAP service will be configured. Then, click Update.
Step 7: Configure HUAWEI IAP service information.
Callback Address: can be modified after configuration. Ensure that the app's callback address can be visited. The value can contain a maximum of 255 characters and cannot end with a backslash (\). The callback address can be a multi-level domain name, where special characters such as underscores(_) cannot be contained. Note that callback address is not required for apps without a server.
Signed Certificate: Navigate to Tools > Certificate
Make sure you copy the generated certificates to sign > debug folder from the release folder.
Step 8: After completing the configuration, click Next, and then Submit.
Enable Merchant service
We need to be a merchant to make use of In-App Purchase in Quick App.
Note: Once your account becomes merchant, it takes 2-3 business day for verification.
Follow steps to enable merchant service
Step 1: Sign in to HUAWEI Developer. Click Console.
Step 2: In Settings, you will find Merchant Service as shown below.
Step 3: Enter the details in Bank information, as shown below.
Step 4: Enter details in Tax information node, as shown below.
Step 5: Click Submit to save the record for verification.
Create test account
Need sandbox account to test the IAP in quick App. During application development and testing we can use the sandbox account to make payment. During the testing period, when a purchase is initiated by the test account, the Huawei IAP server will identify the test account and directly process a successful payment, without real payments made.
Follow the steps to enable the sandbox account
Step 1: Navigate to AGC and select users and permissions.
Step 2: Select Test account, as shown below.
Step 3: Click Add button to add Test account, as shown below.
Huawei In-App purchase information
1. Sign in to HUAWEI Developer. Click Console.
2. Click App Services in the navigation bar on the left and select HUAWEI IAP.
3. Click the quick app for which HUAWEI IAP Service has been configured.
4. Find HUAWEI IAP Service parameters in the Service Info section.
APP ID: unique ID assigned by HUAWEI Developer to an app. Please store it properly for future use.
Payment ID: Used to configure the merchantId parameter in the development process.
Private key: RSA private key, used to sign the requested parameters when a developer's app invokes HMS SDK payment method.
Public key: RSA public key, used to verify the signature when a developer's app receives payment results from HMS SDK.
Result
Coming soon in next article.
Conclusion
In this article, we have learnt how integrate IAP in Quick App. In upcoming article I will continue the IAP adding products and product details and making payment online.
Reference
In-App Purchase official document
Do we need to be enterprise developer in order to work with HMS IAP ?

How to applying for the HUAWEI Ads Publisher Service?

For details, please refer to. :HUAWEI Ads Media Access Guide.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Registering a Developer Account and Performing Identity Verification
For details, please refer to Account Registration and Authentication.
2. Enabling the Merchant Service
For details, please refer to Merchant Service.
3.Signing the HUAWEI Ads Publisher Service Agreement
a. On the HUAWEI Ads Publisher page, click Start now. Read the HUAWEI Ads Publisher Service Agreement that is then displayed. If you agree, select By checking this box I confirm that I have read and agree to be bound by HUAWEI Ads Publisher Service Agreement. The agreement takes effect immediately.
b. You can also click the Monetize service card on the console to quickly access the HUAWEI Ads Publisher Console.
4. Applying for Media
a. On the HUAWEI Ads Publisher Console, go to App management > Add app, select the app to place ads, set mandatory parameters, and submit it for review.
b. An app can be added only after it is released in HUAWEI AppGallery. You can only apply for media for an app released in HUAWEI AppGallery.
c. Huawei will review the application in one to two working days (there may be a delay during weekends and holidays).
d. You can set Advertiser industry restrictions and App promotion restrictions for the app.
5. Creating an Ad Unit
a. You can create an ad unit only after the application is approved. Go to Ad unit management > Add ad unit.
b. Select the target app, set the ad format, style, and size of the ad unit, specify Ad unit name, and submit the settings for them to take effect.
c. Set Ad unit name to the app name + scenario + style format (for example, Huawei Video in-feed large image).
d. To fulfill operations requirements, you can:
1)Set the ad format, style, and size for an ad unit by selecting a value. You cannot customize these attributes.
2)Change the name of an ad unit.
3)Add the ad styles and sizes of an ad unit.
4)Delete the ad styles and sizes of an ad unit. However, at least one style and one size must be retained.
5)Enable or disable an ad unit.
An ad unit and its associated app cannot be deleted.
6. Integrating the HUAWEI Ads SDK
Integrate the HUAWEI Ads SDK into your app based on the HUAWEI Ads SDK Development Guide.
7. Testing Ad Delivery
a. Test ad delivery before commercial release, including the loading and display of ads.
Attention: Confirm the requirements on the user privacy statement. Release the privacy statement in the name of your app, and the statement should contain the requirements for using third-party advertising services. It is prohibited to release the privacy statement in the name of Huawei or HUAWEI Ads.
b. Send the APK package that has passed the self-test as well as the app and ad unit information to Huawei customer service personnel for acceptance.
8. Releasing Your App
After your app is accepted, Huawei will inform you that you can release it. It will be then possible to release your app with the HUAWEI Ads SDK integrated with HUAWEI AppGallery.
You can view reports on the HUAWEI Ads Publisher Console to obtain commercial ad delivery data.
For details about Huawei developers and HMS, visit the website.
HUAWEI Developer Forum | HUAWEI Developer
forums.developer.huawei.com
Interesting.

Web Page Conversion Tracking in HUAWEI Ads and DTM (Part 1)

More and more advertisers are using HUAWEI Ads to promote their apps or web pages in order to attract more users and increase revenue. This article introduces how to track clicks and conversion rates of ads delivered using HUAWEI Ads. HUAWEI Ads works with Dynamic Tag Manager (DTM) to help you easily track conversions on web pages, as well as ad performance.
First of all, what is ad conversion tracking?
Let's use Huawei Vmall as an example. Ads for Vmall are served by HUAWEI Ads. After a user clicks such an ad to access Vmall, user actions, such as adding products to the shopping cart and purchasing products, on one or more in-app pages in a given period (30 days in general) will be tracked.
Now, let's take a look at ad conversion.
When a user clicks an ad to access Vmall and purchases a product in Vmall, this is considered as an ad conversion because a user has been converted into a paying user.
Next, let's see how to configure conversion tracking for web pages in DTM.
You can configure conversion tracking for landing pages, across web pages, or across domains and select an appropriate tracking mode for each scenario in DTM. The configuration involves the following steps:
1. Configuration preparations
2. Conversion tracking for landing pages
3. Cross-page conversion tracking for a single domain
4. Cross-domain conversion tracking
First, you need to perform the following operations before configuring conversion tracking:
1. Register a HUAWEI ID.
2. Register a HUAWEI Ads account.
3. Embed the JavaScript code obtained from DTM into the web page to be tracked.
Procedure:
Step 1 Access AppGallery Connect and register a HUAWEI ID.
Step 2 Access HUAWEI Ads and register an account.
You can use your HUAWEI ID to register a HUAWEI Ads account.
Step 3 Embed the JavaScript code obtained from DTM into the web page to be tracked.
1. Add a web app.
Sign in to AppGallery Connect, select My projects, click Add project, enter a project name, and click OK.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click Add app. On the page displayed, select Web for Platform, set App name, and click OK.
2. Create a configuration in DTM.
In AppGallery Connect, go to Grow > Dynamic Tag Management.
Click Enable Dynamic Tag Manager. In the dialog box displayed, set Configuration name and URL, and click OK. Embed the generated JavaScript code snippet into all web pages to be promoted. The code needs to be embedded only once and will be valid indefinitely.
Step 4 Use Google Tag Manager (GTM) to embed the DTM-Web tracking code snippet.
During version development, it is unpractical to modify the code snippet and release it to the live network immediately. So, how can the code snippet be embedded into web pages without version release?
As many web pages integrate GTM, you can use it to embed the DTM code. The detailed configuration process is as follows:
1. Sign in to GTM and select the container corresponding to the web page to track.
2. Create a tag.
Go to Tags > New. On the page displayed, set Tag Type to Custom HTML and copy the DTM code snippet to the HTML area. Set Firing Triggers to Page View, enter a tag name, and click Save.
3. Create and release a version.
Click Submit. On the page displayed, select Publish and Create Version, enter a version name, and click Publish.
You have now completed the necessary preparations for configuring conversion tracking for web pages.
To learn more, please visit:
HUAWEI Developers official website
Development Guide
Reddit to join developer discussions
GitHub or Gitee to download the demo and sample code
Stack Overflow to solve integration problems
Original Source

How to Get Traffic Data for Better Ad Performance

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ads are everywhere and we can't escape them. They're on road billboards, shops, buses and buildings. If a world filled with ads sounds daunting and you want to hide indoors, just beware that ads will even jump out at you from your TV, computer, or phone.
It's likely that ads will be around with us for forever. Ads are often seen as annoying, but they can in fact be very helpful. If you are looking for a job, want to go somewhere fun, or are not sure what special thing you can get for your other half's birthday, ads may in fact provide some inspiration to you.
Nowadays, ads are transforming in appearance and purpose. Ads are becoming more intuitive as they are able to target specific audiences. For example, ads about quick fashion will target young adults, while some ads are typically pushed to males. This is an advanced advertising mechanism for brands, media, and users, where all can benefit. Someone gets traffic, someone makes money, and someone gets what they needed. Under ideal conditions, ads, under control and without harmful information spread, mean a lot for us.
As an app developer, I have been trying for a long time to request ads in my app to monetize the traffic and increase revenue. Recently, I encountered some obstacles with the ad traffic monetization data of my own app, and I have been searching for tools to obtain data and analyze ad performance. Collecting such data and then deciding how to analyze ad performance was no easy task, and this was complicated by the many tools and plugins needed to do so. I have used some of the tools found in the industry, but their performance rarely satisfied me.
But I eventually came across a very useful tool, the Publisher Service Reporting API of Ads Kit provided by HMS Core. The traffic monetization service helps me display various ad formats, such as banners, native ads, and rewarded ads, to my users. Routine data tracking is crucial for me to boost revenue. What's more, the Reporting API is key to obtaining ad monetization data, including ad requests, returned ads, impression rate, and click-through rate. I can analyze ad performance based on this data and adjust my monetization strategies accordingly.
But how did I acquire traffic monetization data? Here I'll tell you how I did it.
Implementation Procedure​1. Obtain the client ID and key.
Before obtaining the monetization data, prepare an OAuth 2.0 client ID and key, which are needed for generating the access token passed for calling the Reporting API.
Note that the client ID and key are not those in App information (shown in the following red box) in AppGallery Connect, instead, the client ID and key of the server app created under HMS API services > Credentials on HUAWEI Developers.
a. Register as a developer and complete identity verification.
b. Sign in to the console, choose HMS API Services > Credentials, and create a project. If you already have a project, directly select it.
Click the drop-down arrow at the top, click New project, fill in the project name and alias, and click OK.
Select the project you created and click OK.
c. Choose OAuth 2.0 client ID.
If an OAuth 2.0 client ID and key already exist in your project, you can check whether the product type is server app by clicking Edit in the Operation column of the project. If so, skip step d.
If your product is not a server app, you should create an OAuth 2.0 client ID.
d. Select Server app from Product type, set Product name, App type, and Default language, and click Create. In the Note dialog box that displays Client ID and Key, click Confirm.
e. Go to HMS API services > My APIs, ensure that the project is the one you created, and click Add API from library.
f. Click Publisher Service Reporting API under App Services.
g. On the page displayed, click Enable to enable the API. Then you can call the API.
If you disable it and then enable it again, the setting does not take effect in real time due to page cache, for example. The setting will take about 6 to 10 minutes to take effect. If you have waited for longer time, try again.
2. Call the Publisher Service Reporting API.
a. Obtain an access token.
Call this API:
POST https://oauth-login.cloud.huawei.com/oauth2/v3/token
Request example:
Code:
POST /oauth2/v3/token HTTP/1.1
Host: oauth-login.cloud.huawei.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&
client_id=<Client ID>&
client_secret=<Client secret>
Screenshot:
Note that again: the client ID and key are those of the server app but not those of the mobile app created.
b. Call the Reporting API.
POST https://ads.cloud.huawei.com/openapi/monetization/reports/v1/publisher
If you are in Russia, call this API:
POST https://ads-drru.cloud.huawei.ru/openapi/monetization/reports/v1/publisher
Request example:
Code:
POST /openapi/monetization/reports/v1/publisher HTTP/1.1
Content-Type: application/json
Authorization: Bearer ***
Accept: application/json
Content-Length: 233
{
"start_date": "2022-06-01",
"end_date": "2022-06-28",
"filtering": {
"currency": "CNY"
},
"time_granularity": "STAT_TIME_GRANULARITY_DAILY",
"page": 1,
"page_size": 10
}
Screenshot:
As shown in the preceding figure, the data is successfully returned. For more request parameters and response parameters, click here.
In addition, I can customize data display formats to suit my specific app scenarios.
Some Problems You May Encounter​Why was message "access forbidden" returned during the API calling?
Some Problems You May Encounter​Why was message "access forbidden" returned during the API calling?
Possible causes:
You have not enabled the Reporting API.
You have not been authorized to call this API, or your permission has not taken effect yet.
The client ID and key used for obtaining the access token are not those of your server app.
My solutions:
1. Click Add API from library under My APIs and enable the Reporting API.
2. If you disabled and enabled the API again, you may need to wait for 6-10 minutes before the setting takes effect.
3. Check whether your client ID and key belong to a server app when you obtain the access token. To find out it, check the app type on the Credentials page. If it is not a server app, create one and use its client ID and key to request an access token.
Conclusion​If you also think obtaining ad monetization data and dealing with ad issues are annoying as me, you can try this tool to help you in daily work to obtain data and help you in subsequent operations. Hope that my procedure and experience can help more guys and you can also find out more useful methods.

Categories

Resources