[Legacy] Tencent AMS (GDT & WeChat MP) integration setup

At a glance: Tencent Ads, an AppsFlyer ad network integrated partner, operates social media and mobile utility properties in China, and enables marketers to run app install campaigns on:

  • Weixin/WeChat, the company’s mobile communication platform,
  • QQ, its instant messaging service,
  • QQ Music,
  • QQ Browser,
  • Myapp, and more.


  • Make sure that your SDK collects IMEI for Android app attribution and IDFA for iOS App attribution. More about AppsFlyer SDK Integration: Android, iOS.
  • If you promote Android apps via Tencent, they must be uploaded to the Tencent Developer Platform.

Integration types

Tencent is a self-reporting network (SRN). This means it has direct integration with AppsFlyer and doesn’t require custom click links for attribution.

Tencent-AppsFlyer Integrations created starting Feb 13, 2020, and later, are SRN integrations.

If you activated the integration with Tencent before Feb 13, 2020, you still need to use click links for attribution.

Depending on your integration type, the following tabs setup is mandatory:

  • For SRN configuration, Integration only.
  • For link-type configuration, Integration and Attribution link.
  • For both types, it's highly advised to configure Permissions, to allow Tencent's access to the integration.

Setting up Tencent integration

The setup is done from the Active integrations page, but to find new partners you must first go to the Partner Marketplace


Before setting up an integration, make sure you contact the partner and open an account with them.

To activate the integration:

  1. In AppsFlyer, from the side menu, select Collaborate Partner Marketplace.
  2. Search for the partner and select it.
  3. Click Set up integration. You’re directed to the integration setup page.
  4. In the Integration tab, turn on Activate partner.
    Note: The toggle must stay on (activated) for as long as you work with the partner.
  5. Complete the configuration using the relevant tabs, as described below.

Integration tab

The Integration Tab is divided into different sections as described below.

The partner must be activated by switching on the Activate partner toggle on the first visit, to enable its setup.

Default postbacks

Note: this section of the integration tab is available only if you use links for attribution.

AppsFlyer can send automatic postbacks to Tencent following user installs. Use this section to define the source of the users that allow sending these postbacks.


Select This partner only for events coming only from users attributed to Tencent.
Select All sources, including organic to have your entire user base available to be reported to Tencent.


If you're an advertiser and the Sending option is greyed out (read-only mode), contact your CSM to make it configurable.

If you're an agency, the option available by default is This partner only. To be able to send all events to Tencent, ask the advertiser the following:

  1. Authenticate with a Tencent account (different from yours) on AppsFlyer.
  2. Select the option All sources, including organic under Default postbacks.

Click-through attribution

Note: if you use links for attribution, click-through window duration can be configured in the Attribution link tab.

Set the maximum period of time after an ad click, within which an install can be attributed to the ad. The shortest possible duration of the window is 1 hour, and the longest is 30 days.

Agencies cannot configure click-through attribution window, but can see the configuration done by the advertiser.

In-app event settings

In this section, you can configure in-app event postbacks that are sent to Tencent.

Agencies can set up the event settings and postbacks within the limits of permissions received from the advertiser.

To configure in-app event postbacks,

  1. Enter again your Tencent Account ID and Tencent App ID.
  2. Activate In-app event postbacks
  3. Click Add event to add an SDK Event to the list
  4. Fill in the following parameters in the table below
    Parameter name Description
    SDK event name The name of the event, as received by AppsFlyer either from the SDK, or from server-to-server events.
    Tip: If you don't see the event you want in the list, activate this event on a device with a non-organic installation and recheck.
    Partner event identifier The unique name or ID of each event as defined on the partner's side. Select the most suitable pre-defined event for your SDK event.
    Sending option Select the sending option for the event:
    This partner only for events coming only from users attributed to Tencent
    All sources, including organic to have your entire user base available to be reported to the partner
    Send event data
    • No values & no revenue: sends only the event itself without the event value.
    • Values & no revenue: sends all the parameters excluding the revenue value.
    • Values & revenue: sends all the event parameters, including the revenue value (if exists in the event).
    Note, monetary values are always sent to Tencent in USD (according to the conversion rate at the time of the event), regardless of the default currency of the app.
  5. Click Save.

Attribution link tab

Note: the instructions in this chapter are relevant ONLY if you use links for attribution.

Generate and save attribution links and send them to the partner for attributing specific campaigns, ad sets, or single ads - both for UA and retargeting campaigns. You can use either a single-platform link or a OneLink.
Learn more about attribution link structure and parameters.

To generate an attribution link, follow these instructions.

Note that for the Campaign parameter, Due to user privacy, Tencent doesn't share campaign names with AppsFlyer. You can see campaign names only in your Tencent Ads account. You can add a campaign name to the attribution link but since Tencent accounts are limited to one attribution link, the campaign name can only be used to distinguish between Tencent accounts. As a general rule, avoid adding campaign name parameters to the attribution link when configuring a campaign with Tencent.

After you generated the attribution link in AppsFlyer, perform the following procedure in Tencent:

  1. Go to Tencent dashboard > Tool Box > API Conversion :


  2. Enter the AppsFlyer attribution link and perform an install or In-app events test.

Now, the attribution service for your User Acquisition campaigns on Tencent has been activated. You can start promoting your apps on Tencent.


  • Android and iOS apps should be configured separately.
  • Advertisers and Agencies should perform the configuration separately.

Cost tab

The cost integration provides the following aggregated data:

  • Cost data for your campaigns, adsets, ads, channel levels, and site IDs. See the ad network cost integration table for full details on the supported dimensions, metrics, and features.
    Note: Cost data requires an ROI360 subscription. 
  • Data on clicks and impressions.

To enable the cost API:

View your cost API status and the last time AppsFlyer managed to pull matching cost data in either the cost (and ad revenue) integration status dashboard, or in the individual ad network dashboard.

Ad revenue tab

Ad revenue integration is not available for Tencent.

Permissions tab

In this tab, you can select the permissions to grant Tencent. Note that even if attribution is disabled for Tencent, the permissions tab is active and you can grant control to Tencent.

Use these toggles to give the ad network permissions to handle its own configuration for your app:

  • Allow to configure integration - permit the partner to setup the integration tab (except in-app event postbacks)
  • Allow to configure in-app event postbacks - permit the partner to setup in-app event postbacks mapping to itself on the integration tab
  • Allow access to your retention report - only to the partner's own retention data
  • Allow access to your aggregate loyal user data - only to the partner's own loyal user data
  • Allow access to your aggregate in-app events data - only to the partner's own in-app events data
  • Allow access to your aggregate revenue data - only to the revenue data attributed to the partner
  • Allow spend ingestion - permit the partner to send ad spend data in files; for this app only.
  • Allow access to your Protect360 dashboard - only to the partner's own Protect360 data, and providing the feature is enabled for the advertiser

Learn more about granting ad network permissions.

Viewing Tencent data by platform and ad placement

When you create a campaign on the Tencent side, you can choose between different advertising platforms and ad placements. The performance data of the different ad placements can be viewed in the AppsFlyer Overview dashboard.

To see the performance by platform, group the data by Channel. The following platforms are available:

  • Tencent
  • WeChat

To see the performance by ad placement, group the data by SiteID. The following ad placements are available:

  • Tencent Advertising - Tencent News
  • Tencent Advertising - Tencent Video
  • Tencent Advertising - Tencent Android App
  • Tencent Advertising - Tencent Audience Ads
  • Tencent Advertising - XQ Series
  • WeChat MP Advertising - WeChat