[FAQs] Applying for the Health Kit Service - Huawei Developers

HMS Core Health Kit provides app developers with access to atomic data. By calling its APIs, your app will be able to read and write users' health and activity data, after obtaining users' consent.
However, before your app is officially released, that is, in the development and test phases, a maximum of 100 users may use your app. This limit can be removed by applying for verification from Health Kit. Here I have listed some problems you may encounter during the application, as well as their solutions. I hope you find them helpful.
How long will it take for my application to be reviewed?​Answer: The review takes about 15 workdays, and you will be notified of the result via SMS and email. If your application is rejected, modify your materials according to the feedback, and then submit your application again. The second review will take another 15 workdays. Please make sure you submit the correct materials for the review, to avoid any delays.
I have passed verification, but I can only query the data of a limited number of users. Why?​Answer: Due to data caching, the approved scopes will take some time to take effect. Please wait for 24 hours after you have been verified, and then try again. Make sure that you reserve enough time for the approved scopes to take effect, so that your app can be released as scheduled.
If the problem persists, refer to this Error Code.
The proof that I submitted during the application was rejected. Why?​Answer: When submitting an application for verification, fill in the App Release Checklist, and make sure that the proof you provide meets the criteria specified in the checklist.
Let's look at some common reasons why some forms of proof may be rejected.
App introduction video
Make sure that the video starts when your app is opened, so that Huawei can check whether the app name matches the one provided in the application.
Make sure that the video demonstrates how to perform basic operations, like granting the app authorizations, and accessing user data.
Make sure that the video demonstrates the privacy policy, in which the developer name must be identical to the one provided in the application.
Video demonstrating the user authorization
Make sure that the app name and app icon on the authorization screen are consistent with those provided in the application.
Make sure that the read/write scopes displayed on the authorization screen are consistent with those provided in the application. Please do not apply for scopes you are not going to use in your app.
If you are developing a mobile app, make sure that the authorization screen is properly displayed, that is, the parameter display is set to touch. For details, please refer to Authentication.
Video integrity
Make sure that the video for each check item covers all of the content specified in the checklist's acceptance criteria. A common reason for rejection is that the video does not accurately cover the end-to-end operation process. For example, for check item 3.2 Canceling authorization, the video should begin by showing how the app can access user data properly before authorization is canceled, and then proceed to canceling the authorization. If your video only depicts how authorization is canceled, your application will be rejected.
Data accuracy
Make sure that you provide screenshots showing the data consistency between your app and the Huawei Health app, for each data type. If there is no screenshot provided for a certain data type, this data type will be considered not in use in your app, and will not be approved.
Data timeliness (for REST access only)
If your app accesses Health Kit via REST, make sure that your app allows users to flexibly synchronize data manually, and demonstrate this in the video. Data that is manually synchronized to your app should be consistent with the latest data in the Huawei Health app.
If your app uses the data subscription function of Health Kit, your app should obtain the latest data from Huawei Health in real time, and this process also needs to be shown in the video.
Other documents
Provide other documents as required, for example, countries/regions where your app is to be released, list of scopes (including scopes in the application and the already approved ones), and more.
These are only some of the most common problems that you may encounter during the verification stage. You can check the App Release Checklist after selecting the Health Kit card on HUAWEI Developers for more information.
{
"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"
}
What should I do if my application was rejected because the logo used was not acceptable?​Answer: Check the HUAWEI Health Guideline and ensure your app complies with these guidelines when using the Huawei Health logo.
Please stay tuned for the latest HUAWEI Developers news and download the latest resources.
As an individual developer, can I apply for formal scopes?​Answer: Individual developers cannot apply for formal scopes by applying for verification. A maximum of 100 users can be invited to use your app. This can only be removed by applying for a new HUAWEI ID, registering as an enterprise developer, and then applying for the Health Kit service.
Please note that advanced user data (such as heart rate, sleep, blood pressure, blood glucose, and SpO2 data) is not open to individual developers. To access advanced user data, create a HUAWEI ID and register as an enterprise developer before applying for access to Health Kit.
References​HMS Core Health Kit
Developer Guide
FAQs About Accessing Health Kit

Related

HUAWEI AppGallery Connect Service White Paper: Tips to Help You Succeed

{
"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"
}
Still seeking ways to efficiently realize your brilliant product idea? Worried about losing users as they are tired of complex user authentication steps, large app sizes, and frequent app crashes? Struggling to retain your users? That's where HUAWEI Gallery Connect comes into the picture to solve your problems and help you gain business success more easily.
It's a one-stop open platform that covers the entire app lifecycle, from innovation, to development, distribution, operation, and analysis. You can find out more by reading our HUAWEI AppGallery Connect Service White Paper.
Introduction
(1) Team Account
Sharing one account with all permissions among multiple team members increases your risk of a data breach.
That's not a problem with your team account. You can invite everyone you need to the team, including financial, R&D, and operation personnel, and assign only required permissions accordingly, so your data stays secure.
(2) Auth Service
Most apps need to authenticate users before they can provide certain functions, but building a user authentication system is challenging and costly.
With Auth Service, you can quickly build a secure and reliable user authentication system. Authentication capabilities are provided as services, and with just a little O&M, you can assemble all the services you need in your app.
(3) Remote Configuration
Want to make quick changes to how your app works and looks without the hassle of requiring user updates?Want to customize your app works and looks without the hassle of requiring user updates?
With Remote Configuration, you can limit configuration updates to users who meet specific conditions (such as their version, OS, and country) and tailor changes to each group.
(4) A/B Testing
Not sure what content to go with?
With A/B Testing, you can simultaneously run up to 50 experiments on a single app, and test your UI design, in-app content, and functions. By comparing detailed performance metrics, you can quickly decide what works best.
(5) App Linking
Finding it harder and harder to acquire new users and keep your existing users active?
App Linking generates links that direct people straight to your in-app content. If someone who hasn't installed your app taps the link, they'll be redirected to HUAWEI AppGallery where they'll be instructed to download your app. Once that's done, they're taken to your shared content.
(6) HUAWEI Analysis
Want to see how your app's performance compares to your competitors?
HUAWEI Analysis analyzes app data (such as distribution, operation, quality, and financial data) and user data (audience, behavior, event, or group) so you can see how your app is doing. Our benchmark data service, which will be released soon, helps you scientifically optimize versions, get insights into potential business opportunities, and make more accurate decisions."](5) App Linking
(7) Crash
If your app is always crashing, it's not going to get good reviews.
Use our Crash service. It doesn' t require any coding, and you can see real-time data reports up to the last hour. You' ll get notifications if there are any major issues, and you can prioritize crashes according to detailed indicators. This means problems can be quickly resolved based on the stack, device, and OS information provided.
(8) App Bundle
Is your app package so large it' s become a hassle for prospective users to download?
App Bundle can help. It tailors your package to various device models, and significantly reduces its size. App Bundle provides dynamic loading based on your users' requirements.
But that' s not all - we have 45 more services for you to explore! Visit HUAWEI Developers or scan the QR code below to get the full version of the HUAWEI AppGallery Connect Service White Paper.
Of course, it is woth trying HMS and Appgallery

AppGallery Connect 10.5 | Build Apps with Ease, and Operate Them As You Please

This article is from HUAWEI Developer Forum which you can obtain latest news about Huawei products
Forum link: https://forums.developer.huawei.com/forumPortal/en/home
​
{
"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"
}
AppGallery Connect is a one-stop open service platform for the entire app lifecycle, designed to facilitate enhanced, and accelerated app building and running, giving you a leg up on the competition. AppGallery Connect 10.5, the platform's latest version, provides for a wholly optimized user experience, including a home page with futuristic visual effects, cross-platform app management capabilities, and access to a broad array of services, such as App Messaging, Cloud Storage, and Auth Service. These updates give you the tools to better build and operate your apps.
Brand-new home page
The home page has assumed a fresh new, user-friendly layout. The My projects entry enables you to manage apps of different platforms; Hot services provides a glimpse at trending services, and More services displays a brief overview of all available services. Service cards also provide direct access to corresponding services, sparing you the hassle of having to search for a desired service, and find it from a lengthy list.
Visit https://developer.huawei.com/consumer/cn/service/josp/agc/index.html to try out the new version now. You'll notice that AppGallery Connect has designed a unique icon for each service, making it easier than ever to identity them.
App Messaging
This service provides invaluable assistance for refined operations, by sending contextual messages to active users when specific events are triggered, boosting user engagement and stickiness. In-app messages can work in tandem with your app's activities. For instance, if you have a shopping app, it can display a message instructing the user to claim coupons upon repeated taps on an item by a user when authorized or after message subscription by the user. Or if you have a reading app, the app can automatically display messages to intensive users who have read for more than half an hour in a single session, offering a 20% discount off of subscriptions. These types of messages can successfully boost your app's conversion rate.
You have the option of using a pre-set style, or customizing the display of your in-app messages. Image messages are recommended if the content in the message is relatively simple.
Banner messages contain a thumbnail, with the message title and body, and are displayed at the top of the screen. Users only need to tap on the banner message to be directed to the corresponding page.
Pop-up messages are recommended for richer, and more complex content, as they consist of an image, title, and body, as well as up to two buttons. Examples of each message type are shown below:
Cloud Storage
Cloud Storage incorporates a treasure trove of premium storage, upload, and download functions for a wide range of different objects, including images, videos, and audio files. The Cloud Storage capability is bolstered by the following attributes:
1. Airtight protections, enabled by declarative security and automatic encryption mechanisms;
2. High degree of stability, thanks to the implementation of resumable transfer and intelligent network acceleration;
3. Autoscaling, to provide for automatic resource scheduling and enterprise-level storage.
These characteristics allow for you to focus single-mindedly on improving the quality and user experience within your app – reserving all of the hassles associated with developing, deploying, maintaining, and expanding capacity for storage servers, or monitoring server indicators to ensure availability, reliability, and durability – for AppGallery Connect.
Enhanced Auth Service
Building a user authentication system is both challenging and costly.
Auth Service makes the construction of a secure and reliable user authentication system, a hassle-free and cost-effective process. Authentication capabilities are provided as services, meaning that you can assemble all of the services you need in code for your app, with minimal O&M work.
The new and improved Auth Service supports a wider range of authentication modes, including mobile numbers, email accounts, and Apple IDs, and can be integrated into iOS apps. If you opt to integrate Auth Service before August 1st, 2020 , You will be eligible to receive the following benefits:
1. 30,000 free SMS verification messages every month
2. Dedicated technical support during service integration
3. An opportunity for broad-based exposure, as a successful case study
The free quota of SMS verification messages applies only to the mobile number + verification code authentication mode. If you are interested, please send your information in the following format to [email protected]: [Company name + App ID].
AppGallery Connect also comes with a version history management function, which allows you to query and download the app versions you had previously developed, as well as an interaction center that provides for direct communication with the platform. We think that you'll agree that AppGallery Connect 10.5 is chock-full of surprises. Just sign in to explore a pioneering new version for app development!
You can also click the link below, to learn more about Auth Service, Billing, Version history, Interaction center, and other services.
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-introduction

Obtaining Data of Android Devices Between Google FCM and HUAWEI Push Kit

More information, you can visit HUAWEI Developer Forum and Medium.​
I work in operations for a mobile game. Recently, I was notified by the game's developers that HUAWEI Push Kit has been integrated into the Android version of the game. 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. I have some interesting observations to share with you:
FCM: https://firebase.google.com/docs/cloud-messaging
HUAWEI Push Kit: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-introduction
1. Data Report
I am responsible for querying, browsing, exporting, and analyzing push data on the operations console every day. Therefore, the first thing I did was to compare the push reports.
{
"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"
}
Compared to FCM, HUAWEI Push Kit also reports the number of sent messages, number of received messages, and number of times messages were taped. Statistical methods and data items may vary slightly however. But most importantly, HUAWEI Push Kit is able to meet my data requirements.
2. Custom Data
During analysis, reports alone cannot help me completely analyze all push data. In addition to task-level data analysis, I also require custom analysis and status analysis based on a single message. For a specific message, FCM and HUAWEI Push Kit use different data processing methods.
BigQuery of FCM
https://firebase.google.com/docs/cloud-messaging/understand-delivery#bigquery_data_export
BigQuery is a large online data warehouse provided by Google. It supports online data querying and statistical analysis based on the SQL statement. Push data generated in FCM can be imported to BigQuery synchronously to implement custom statistical analysis of push data and allow you to view the data in more dimensions. BigQuery is suitable when you want to collect and query a large amount of data due to its fast processing and low maintenance costs.
No server is required either.
It is free of charge to export data from FCM, but I will be charged of using BigQuery.
HUAWEI message receipt:
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-receipt
After sending a message to a user device, HUAWEI Push Kit sends the message delivery status to your app server via a message receipt. Surprisingly, I discovered that the message receipt information is sent in real time.
A server, however, must be set up to receive receipt data.
The message receipt function is free of charge.
(Comments)
BigQuery is widely used and is not described here. Although HUAWEI Push Kit does not provide the same capabilities as BigQuery, it provides message receipts, which tell you the status of each message in real time and solve some of the following problems in certain scenarios:
1. Detecting problems with push messages in a timely manner: When an error occurs in a push message, I can discover this immediately since the message sending status is obtained in real time. This reduces the impact of the error.
2. Replacing SMS messages: At present, when I send a message that must be reached to a user, I require an SMS message of a carrier, which results in high costs. By using the message receipt, I can determine whether the message is received based on the receipt, which, to some extent, reduces the SMS messaging costs for some users.
3. Real-time effect analysis: Push data can be collected in a timely manner. For some important messages, I can obtain real-time push data and adjust push policies in a timely manner.
The message receipt provided by HUAWEI Push Kit is very useful in scenarios where we need to know message sending results in real time.
3. Conclusion
In conclusion, it is important for us to select the method most suitable for our specific product operations scenario.

Marketing Assistant | HUAWEI DTM Helps e-Commerce Apps Quickly Track Marketing Data

Naturally, the main concern for e-commerce companies is the amount of goods and services they sell, and there are many indicators related to this, such as order volume, transaction amounts, and payment conversion rates. These companies also need to be able to compare and analyze these indicators, so that they can find out why certain indicators increase or decrease, and take the necessary measures to improve any shortcomings. Key to all of this is being able to quickly obtain precise marketing data. Marketing teams in e-commerce companies need to update their marketing strategies frequently, and this means they often have to ask the development team to create and implement tracking tags. This takes time and effort, and can cause the marketing team to miss the best time window to market their product, as well as taking up developers' valuable time.
{
"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"
}
Is there a way to track events dynamically without manual coding?
HUAWEI Dynamic Tag Manager (DTM) provides a visual event tracking function which makes tracking events much more efficient. It provides codeless dynamic tag capabilities which enable non-technical personnel to define the events they want to track. This cuts down on communication costs between departments and enables the marketing team to track and analyze data and optimize their strategy accordingly, even if they do not know how to code.
To add a visual event on the DTM portal, all marketing personnel have to do is scan a QR code with their phone. Then, the app screen will be synchronized to the DTM portal, as shown in the screenshot below.
Step 1: Add events to track them visually.
You may want an event to be generated when a user taps the Add to Shopping Cart button on the product details screen. When the user adds a product to their shopping cart, they also select attributes, such as color, version, and memory, and this information will also be reported.
Step 2: Specify the platform to which events are reported and set event parameters.
Step 3: Generate and release a configuration version. This will be automatically delivered by DTM.
Step 4: In AppGallery Connect, go to the HUAWEI Analytics > App debugging, and check that the event has been reported.
Click View details in the Operation column of the event to make sure the event parameters are accurate.
You can also add the visual events in the table below and set relevant event parameters. Click the link for details: https://forums.developer.huawei.com/forumPortal/en/topic/0203428614657600021
Once these events have been added, other relevant events will be reported to the specified analytics platform, such as HUAWEI Analytics, according to the users' action. These events can then be viewed on the analytics platform. DTM supports over 15 analytics platforms, including mainstream analytics platforms like HUAWEI Analytics, HUAWEI Ads, AppsFlyer, Adjust, Google Analytics (Firebase), and Facebook Analytics.
When an e-commerce app uses DTM to track and report events to HUAWEI Analytics, it can reduce the time it takes to track events from 3-4 days to just half a day. What's more, after receiving basic training, non-technical personnel can also manage tracking tags. DTM offers flexible event tracking solutions that can be adapted to different scenarios and requirements. With preset events in DTM, work that usually takes days or even weeks can be completed in just a few minutes.
To learn more about DTM, visit the HUAWEI Developers website.
Does it support to pdf format for downloading reports?
Can't we use the Huawei Analytics Kit to achieve the same result?

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