Menu

Baidu Union Ads

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 Taku - 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 Taku'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 Taku 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 Taku public key

If the data of the current Baidu account only needs to be pulled to the Taku, you can use the Taku public key configuration

(1) Configure the Taku public key in the Baidu Union

Note: Developers do not need to generate Taku public keys by themselves. Since Taku public keys are provided by Baidu to Taku, all developers share a set of Baidu public keys and do not need to apply for or configure them from Baidu or Taku. 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 Taku public key in the Taku - 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 Taku developer backend

Log in to Taku → Network → Add Network (Baidu Union Ads) → Edit (Open Report API + Use Taku public key ) → Fill in Access Key and copy Taku public key (public key needs to be configured to Baidu)

 

2. Do not use Taku 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 Taku. 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 Taku

Log in to Taku → Network → Add Network (Baidu Union Ads) → Edit (activate report API + do not use Taku public key ) → Fill in Access Key and configure the private key you generated

When the Taku public key is not used, if you encounter an issue where the entered key cannot be saved and an error is reported, you can perform the following checks:

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 Taku

 

Step4. Configure baidu on Taku

Taku now supports [auto create] of Baidu Union ad sources in the Taku developer backend. With this function, when you create an ad source in the Taku backend, Taku 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 Taku, Taku 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 Taku.

The following 2 parameter of baidu need to be configured in Taku. In this way, baidu can be displayed through Taku SDK, and baidu data can be displayed through Taku:

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 Taku

● Add AD Source(path 1) : Login Taku→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 Taku's APP

 

● Add Ad Source (path 2): Log in to Taku → 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 Taku

Click to learn more about Ad Format Mapping

 

Step5. Add Baidu Union Ads adapter to your code

Refer to the Taku SDK integration documentation

 

Step6. Import date of Baidu to Taku

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 Taku platform. Then you can view the overall revenue of the advertising space on Taku.

(1) Export data in Baidu

  1. Log in Baidu, enter Application Cooperation on the homepage, select Data Report->Network Alliance Promotion Report->Custom Report.
  2. 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.
  3. The downloaded report is in csv format, and you can upload it directly to Taku without any processing.
  4. The downloaded csv format can also be saved as xlsx format, and then directly uploaded to Taku.

 

(2) Import data to Taku

  1. Log in to the Taku, select Advanced Features -> Upload Network Report
  2. Select the Baidu Union platform, and upload the data exported in the Baidu Union background

Last modified: 2025-05-30Powered by