Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mạng thử nghiệm giúp bạn thử nghiệm mã bằng cách cung cấp môi trường dữ liệu
tách biệt hoàn toàn với tài khoản Google Ad Manager chính thức của bạn.
Bạn nên tạo và kiểm thử mã bằng cách sử dụng các mạng kiểm thử trước khi bắt đầu sử dụng mã này cho tài khoản sản xuất của mình. Nếu bạn cần thêm các tính năng bổ sung vào
mạng thử nghiệm, vui lòng trao đổi với người quản lý tài khoản của bạn.
Để tạo mạng thử nghiệm, hãy gọi hàm NetworkService.makeTestNetwork.
Ví dụ về MakeTestNetwork có trong mỗi thư viện ứng dụng. Bạn chỉ có thể tạo một mạng thử nghiệm cho
Tài khoản Google của mình.
Mạng thử nghiệm bị giới hạn theo các cách sau:
Các mạng thử nghiệm giới hạn ở 10.000 đối tượng trên mỗi loại thực thể.
Các mạng thử nghiệm không thể phân phát quảng cáo.
Vì mạng thử nghiệm không thể phân phát quảng cáo nên các báo cáo sẽ luôn xuất hiện trở lại
mà không có dữ liệu.
Vì tính năng dự báo yêu cầu lịch sử phân phát, nên các kết quả dịch vụ dự báo sẽ
bị giả mạo. Hãy xem ForecastService để biết thêm
thông tin.
Theo mặc định, mạng thử nghiệm không phải là mạng Ad Manager 360, nghĩa là
những mạng này không có các tính năng cao cấp trong mạng Ad Manager 360.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003eTest networks provide an isolated environment for testing Google Ad Manager code before using it in production.\u003c/p\u003e\n"],["\u003cp\u003eYou can create one test network per Google account using the \u003ccode\u003eNetworkService.makeTestNetwork\u003c/code\u003e method, and client libraries include examples.\u003c/p\u003e\n"],["\u003cp\u003eTest networks have limitations, including a 10,000 object limit per entity, inability to serve ads or generate real report data, and faked forecasting results.\u003c/p\u003e\n"],["\u003cp\u003eIf creating a test network with a Service Account, add an Administrator user for UI access via \u003ccode\u003eUserService.createUsers\u003c/code\u003e.\u003c/p\u003e\n"]]],["Test networks offer isolated environments for testing code without affecting production accounts. Create one test network per Google account using `NetworkService.makeTestNetwork`, referencing client library examples. Service accounts require an added Administrator via `UserService.createUsers` for UI access. Test networks have limitations: 10,000 objects per entity, no ad serving, empty reports, faked forecasts, and lack of Ad Manager 360 premium features. Use these isolated test environments prior to using your production account.\n"],null,["# Test vs. Production\n\nTest networks help you test your code by providing a completely isolated\ndata environment from your production Google Ad Manager account.\n\nYou should build and test code using test networks before you start using it\nagainst your production account. If you need additional features added to your\ntest network, please speak to your account manager.\n\nTo create a test network, call [`NetworkService.makeTestNetwork`](/ad-manager/api/reference/latest/NetworkService#makeTestNetwork).\nA `MakeTestNetwork` example is included in each of the [client libraries](/ad-manager/api/clients). You can create only one test network for\nyour Google account.\n| **Important:** If you create a test network using a Service Account, you must also add an additional Administrator (`roleId -1`) to access the network's UI. To do so, call [`UserService.createUsers`](/ad-manager/api/reference/latest/UserService#createUsers).\n\nTest networks are limited in the following ways:\n\n- Test networks are limited to 10,000 objects per entity type.\n- Test networks cannot serve ads.\n- Because test networks cannot serve ads, reports will always come back without data.\n- Since forecasting requires serving history, forecast service results will be faked. See [ForecastService](/ad-manager/api/reference/latest/ForecastService) for more information.\n- Test networks are, by default, not Ad Manager 360 networks, meaning that they do not have the premium features found in Ad Manager 360 networks."]]