Step1. Create baidu Account
Login baidu official website to apply for an account
Step2. Create baidu Apps and Ad Place
(1) Add Your App
① Go to the App Collaboration page
② Add mobile apps and verify ownership
(2) create Ad Place Create the corresponding Ad Place type based on the application Ad scenario.
Step3. Configure baidu's Report API
Q1: Can I configure Baidu ad sources without private key and other data configurations, or if I don’t want to configure the Report API?
A: Yes. In the TopOn - Network - Edit, select "Report API" and select "No." You can proceed to the subsequent ad source configuration steps.
Note: It is strongly recommended that you configure the report API to facilitate subsequent data extraction and tuning.
Support using TopOn's public key or the developer's own private key to pull data. Please use different configuration methods according to the following different scenario requirements.
Q2: Should I use the TopOn public key or the developer's own private key?
A: Please configure the configuration according to the specific situations described in 1 and 2 below and select the one that meets your needs.
1. Use TopOn public key
If the data of the current Baidu account only needs to be pulled to the Topon, you can use the TopOn public key configuration
(1) Configure the TopOn public key in the Baidu Union
Note: Developers do not need to generate TopOn public keys by themselves. Since TopOn public keys are provided by Baidu to TopOn, all developers share a set of Baidu public keys and do not need to apply for or configure them from Baidu or TopOn. Please refer to the following steps to proceed.
① Please contact the Baidu Union contact person to enable the API management permission. After enabling, click the account ID in the upper right corner of the Baidu Union, enter Account Management-API Management, and a [View Key] interface will appear.
② Find the corresponding TopOn public key in the TopOn - network - and copy it (please scroll down a little to see the 1.2 Report API configuration page in the following steps for the specific process), and configure it to the specific process), and configure it to the Baidu Alliance background API management - view key page, and click Submit.
Note: The public key of Baidu backend, that is, the input box below, only supports configuring one public key!
(2) Enable Baidu Union’s Report API in the TopOn developer backend
Log in to Topon → Network → Add Network (Baidu Union Ads) → Edit (Open Report API + Use TopOn public key ) → Fill in Access Key and copy TopOn public key (public key needs to be configured to Baidu)
2. Do not use TopOn public key
If the data of the current Baidu account needs to be pulled to multiple platforms, it is recommended that you generate your own public key and private key according to the rules in the Baidu, and configure the generated public key to the Baidu, and configure the generated private key in the Topon. We will use the private key you configured to pull data, and this private key can also be provided to other platforms that need to pull data .
(1) Generate private key and public key in Baidu Union
① Please contact the Baidu Union contact person to enable API Management-Configure Public Key permissions. After enabling, click the account ID in the upper right corner of the Baidu Union, enter Account Management-API Management, and a [View Key] interface will appear.
② Check the key configuration document, generate a private key and a public key according to the document's instructions, and configure the generated public key to the Baidu , as shown in the public key location in the figure below, and click Submit.
Note: The public key of Baidu backend, that is, the input box below, only supports configuring one public key!
(2) Enable Baidu Union’s Report API in the TopOn
Log in to Topon → Network → Add Network (Baidu Union Ads) → Edit (activate report API + do not use TopOn public key ) → Fill in Access Key and configure the private key you generated
1. Check the OpenSSL version. If it is version 3.x, switch to version 1.1.1.
2. Confirm that you have generated a DSA private - public key pair in PEM format. Refer to the Baidu key configuration documentation.
Note: If your account has not opened Report API permissions, you can choose not to open the Report API first. This will not affect your subsequent configuration of placements. You can refer to Step 6. Import Baidu Union data into the TopOn
Step4. Configure baidu on TopOn
TopOn now supports [auto create] of Baidu Union ad sources in the TopOn developer backend. With this function, when you create an ad source in the TopOn backend, TopOn will automatically create ad units in the ad backend. There is no need to create code in the Baidu backend. It can greatly improve efficiency!
Please make sure that your Baidu account has the permission to manage the application code location API. If you do not have this permission, you can apply for it from the Baidu contact person. Turn on the automatic creation of advertising sources function. When you create an advertising source in the TopOn, TopOn will automatically create an ad unit in the advertising background at the same time.
If you do not have the relevant permissions, you can refer to the following configuration steps to manually create the code location and configure it to the TopOn.
The following 2 parameter of baidu need to be configured in TopOn. In this way, baidu can be displayed through TopOn SDK, and baidu data can be displayed through TopOn:
Parameter name | Description |
---|---|
APP ID | baidu unique APP ID for each APP |
Ad Place ID | baidu unique Ad Place ID for each Ad Place |
● APP ID :App management→APP ID
● Ad Place ID :Ad Place management→Ad Place ID
(1) Configure baidu parameters in TopOn
● Add AD Source(path 1) : Login TopOn→Network→Ad Source Setting(Baidu)→Add AD Source
① Fill in the APP ID of the baidu
② Fill in the Ad Place ID of the baidu corresponding to TopOn's APP
● Add Ad Source (path 2): Log in to TopOn → Mediation
After entering, select the corresponding app and placement, choose to add ad source, and fill in the App ID and AD Place ID parameters corresponding to Baidu Union Ads.
(2) Add the corresponding relationship of Baidu Union Ads interstitial screen in TopOn
Click to learn more about Ad Format Mapping
Step5. Add Baidu Union Ads adapter to your code
Refer to the TopOn SDK integration documentation
Step6. Import date of Baidu to TopOn
If your Baidu account does not have the Report API permission, we recommend that you export the data in Baidu and upload it to the TopOn platform. Then you can view the overall revenue of the advertising space on TopOn.
(1) Export data in Baidu
- Log in Baidu, enter Application Cooperation on the homepage, select Data Report->Network Alliance Promotion Report->Custom Report.
- Select the application from the Application drop-down box, select the placement from the placement drop-down box, and select the time period to get needed data from the Date, which supports multi-day import. After the selection is complete, click Query, then Download Report, and select csv file in Download Settings to save.
- The downloaded report is in csv format, and you can upload it directly to TopOn without any processing.
- The downloaded csv format can also be saved as xlsx format, and then directly uploaded to TopOn.
(2) Import data to TopOn
- Log in to the TopOn, select Advanced Features -> Upload Network Report
- Select the Baidu Union platform, and upload the data exported in the Baidu Union background