tencent cloud

Ad Authorization-GAM
Last updated:2025-11-19 13:42:38
Ad Authorization-GAM
Last updated: 2025-11-19 13:42:38
Integrating ad feature into your super app can attract more mini programs or mini games, enriching the content ecosystem, boosting user engagement, and generating additional revenue through ad sharing.

GAM configuration

If you choose Google Ad Manager (GAM) as your advertising platform, you need to complete the following steps before starting the GAM ad integration:

1. Sign up for a GAM account

Access the GAM console.Sign up for a GAM account.If you already have a GAM account, please proceed directly to the next step.

2. Log in to the GAM console and get the NetworkCode

What is NetworkCode?

NetworkCode is the unique identifier (ID) for your GAM account. Superapp As a Service (SAS) needs to connect with your GAM account. When configuring the integration or making subsequent GAM API calls, you must provide the NetworkCode as part of the credentials.

How to get a NetworkCode

Log in to the GAM account to view:
Log in to your GAM account.
Click Admin tab in the upper right corner .
In the left-side menu, select Global settings.
You will see the 10-digit NetworkCode displayed next to “Network code” on the page.
Alternatively, you can find and copy this 10-digit number in the top left corner of the GAM console.


3. Create authentication credentials

You must use OAuth 2.0 to authenticate all GAM SOAP API requests. The following steps guide you through accessing your own GAM data:
2. From the project menu, choose Create project, enter a name for the project, and optionally, edit the provided Project ID. Click Create.
3. On the Credentials page, select Create credentials, then select Service account key.
4. Select New service account and select JSON as the key type.
5. Click Create to download a file containing the private key.
You can also refer to GAM official guidance document for detailed instructions.

SAS console integration process

1. Log in to the SAS console and click Platform management - Ad authorization.
2. Choose GAM as the adv platform and click Next.


3. Click Add key on the right side and enter the NetworkCode obtained in step 2 of the GAM configuration, upload the authentication credentials file from step 3, and click Save.

4. When saving, SAS will call the GAM API to verify the integration. After successful verification, the superapp must complete ad group binding before mini programs and mini games can use the ads.

Note:
After GAM authorization is completed, you can change the NetworkCode only if no mini program or mini game has used an ad unit yet. Once any mini program or mini game starts using an ad unit, the NetworkCode cannot be modified.



Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback