Mulai
8 September 2025, setiap item baris baru harus menyatakan apakah item baris tersebut akan menayangkan iklan politik Uni Eropa (EU) atau tidak. Upload SDF dan API Display & Video 360 yang tidak memberikan pernyataan akan gagal. Lihat
halaman penghentian penggunaan kami untuk mengetahui detail selengkapnya tentang cara memperbarui integrasi Anda untuk membuat pernyataan ini.
Mulai
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Display & Video 360 API adalah antarmuka terprogram untuk platform Display & Video 360. Anda dapat menggunakan Display & Video 360 API untuk mengotomatiskan alur kerja Display & Video 360 yang kompleks. Berikut adalah beberapa contoh tugas yang dapat Anda lakukan dengan
Display & Video 360 API:
Panduan ini menjelaskan cara memulai Display & Video 360 API.
Prasyarat
Sebelum menggunakan Display & Video 360 API, Anda harus melakukan hal berikut:
Anda harus memiliki Akun Google. Anda memerlukan
Akun Google agar dapat membuat project
di Konsol Google API. Jika sudah memiliki akun, Anda sudah siap. Sebaiknya buat Akun Google terpisah untuk
tujuan pengujian.
Anda harus memiliki akses ke Display & Video 360. Anda memerlukan akses ke
produk Display & Video 360 untuk menggunakan API. Jika organisasi Anda sudah memiliki kontrak Display & Video 360, pastikan profil pengguna dengan izin yang sesuai telah dibuat untuk Akun Google Anda. Jika tidak,
hubungi tim penjualan kami untuk mengetahui informasi selengkapnya.
Anda harus mencoba Display & Video 360. Dokumentasi API ini berasumsi bahwa Anda telah menggunakan Display & Video 360, dan bahwa Anda memahami konsep pemrograman web dan format data web. Jika Anda belum pernah menggunakan
Display & Video 360, coba UI web sebelum
memulai coding.
Pilih project
Anda harus membuat
atau memilih project di Konsol API Google dan mengaktifkan API.
Anda dapat membuat project baru, atau menggunakan project yang sudah ada.
Membuat project baru
Ikuti langkah-langkah di Konsol API Google untuk membuat project dan mengaktifkan Display & Video 360 API secara otomatis.
Menggunakan project yang sudah ada
Berikut cara mengaktifkan Display & Video 360 API secara manual untuk project yang ada.
Untuk mengaktifkan API untuk project Anda, lakukan hal berikut:
- Buka Library API di Konsol API Google. Jika diminta, pilih project atau buat project baru. Library API menampilkan daftar semua API yang tersedia, yang dikelompokkan berdasarkan kelompok produk dan popularitas.
- Jika API yang ingin Anda aktifkan tidak terlihat dalam daftar, gunakan penelusuran untuk
mencarinya.
- Pilih API yang ingin Anda aktifkan, lalu klik tombol Enable.
- Jika diminta, aktifkan penagihan.
- Jika diminta, setujui Persyaratan Layanan API.
Membuat kredensial
Semua permintaan yang Anda buat ke Display & Video 360 API harus diberi otorisasi. Untuk ringkasan
otorisasi singkat, baca cara memberi otorisasi dan mengidentifikasi
aplikasi Anda ke Google.
Petunjuk berikut akan memandu Anda melalui proses pembuatan client ID
OAuth 2.0 untuk digunakan dengan alur aplikasi
yang diinstal. Untuk petunjuk tentang cara membuat kredensial untuk digunakan
dengan alur akun layanan, lihat panduan Akun Layanan.
Ikuti langkah-langkah untuk mengonfigurasi project Konsol API Google.
- Buka halaman Kredensial di Konsol API.
Klik Create credentials > OAuth client ID.
Pilih jenis permohonan yang paling sesuai saat diminta. Cuplikan kode Java dan
Python yang ditawarkan dalam panduan ini mengasumsikan Aplikasi desktop, sedangkan
cuplikan kode PHP mengasumsikan Aplikasi web.
Masukkan informasi tambahan yang diperlukan.
- Jika ini pertama kalinya Anda membuat client ID, selain dapat
memilih jenis aplikasi, Anda dapat mengonfigurasi layar izin dengan
mengklik tombol Configure consent screen. Anda tidak akan mendapatkan perintah
untuk mengonfigurasi layar izin lagi setelah melakukannya untuk pertama kalinya,
meskipun informasi ini dapat diperbarui kapan saja.
Klik Buat.
Setelah selesai, Anda akan melihat client ID dan secret klien OAuth 2.0, yang dapat didownload dalam format JSON dan disimpan untuk digunakan nanti.
Saat Anda menggunakan OAuth 2.0 untuk autentikasi, pengguna Anda diautentikasi setelah
menyetujui persyaratan yang diberikan kepada mereka di layar izin pengguna.
Untuk menyiapkan layar izin project Anda, lakukan langkah berikut:
- Buka halaman Layar Izin di Konsol API Google.
Jika diminta, pilih project atau buat project baru.
- Isi formulir lalu klik Simpan.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[null,null,["Terakhir diperbarui pada 2025-08-31 UTC."],[[["\u003cp\u003eThe Display & Video 360 API allows programmatic access to automate complex workflows within the Display & Video 360 platform, including tasks like creative management, line item targeting, and structured data file generation.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, ensure you have a Google Account, access to Display & Video 360, and familiarize yourself with the platform's web UI.\u003c/p\u003e\n"],["\u003cp\u003eYou need to create or select a Google API Console project and enable the Display & Video 360 API to start using it.\u003c/p\u003e\n"],["\u003cp\u003eGenerate OAuth 2.0 credentials for authorization, following the guide for either installed application or service account flow depending on your needs.\u003c/p\u003e\n"],["\u003cp\u003eConfigure a user consent screen for your project within the Google API Console to handle user authentication when using OAuth 2.0.\u003c/p\u003e\n"]]],["The Display & Video 360 API automates tasks like uploading creatives, managing line items and targeting, and generating Structured Data Files. To begin, users need a Google Account and Display & Video 360 access, alongside experience with the platform. They must create or select a project in the Google API Console and enable the API. Credentials, specifically an OAuth 2.0 client ID, must be generated, and the user consent screen must be configured to enable application authorization.\n"],null,["The Display \\& Video 360 API is the programmatic interface for the Display \\& Video 360\nplatform. You can use the Display \\& Video 360 API to automate complex\nDisplay \\& Video 360 workflows. Here are some examples of tasks you can do with the\nDisplay \\& Video 360 API:\n\n- [Upload and build\n creatives.](/display-video/api/guides/creating-creatives/overview)\n- [Manage line items and their\n targeting.](/display-video/api/guides/managing-line-items/overview)\n- [Generate and download Structured Data\n Files.](/display-video/api/guides/downloading-sdfs/create)\n\nThis guide describes how to get started with the Display \\& Video 360 API.\n\nPrerequisites\n\nBefore using the Display \\& Video 360 API, you must do the following:\n\n1. **You must have a Google Account.** You need a\n [Google Account](//www.google.com/accounts/NewAccount) in order to [create a project](#create_project)\n in the Google API Console. If you already have an\n account, then you're all set. You may also want a separate Google Account for\n testing purposes.\n\n2. **You must have access to Display \\& Video 360.** You need access to the\n Display \\& Video 360 product in order to work with the API. If your\n organization already has a Display \\& Video 360 contract, ensure a\n [user profile](//support.google.com/displayvideo/answer/2723011) with appropriate permissions has been\n created for your Google Account(s). If not,\n [contact our sales team](//marketingplatform.google.com/about/display-video-360/) for more information.\n\n3. **You should try out Display \\& Video 360.** This API documentation assumes\n that you've used Display \\& Video 360, and that you're familiar with web\n programming concepts and web data formats. If you haven't used\n Display \\& Video 360, then try out the [web UI](https://displayvideo.google.com/) before\n starting to code.\n\nChoose a project\n\nYou need to [create\nor select a project in the Google API Console and enable the API](https://console.cloud.google.com/start/api?id=displayvideo.googleapis.com&credential=client_key).\n\nYou can create a new project, or use an existing one.\n\nCreate a new project\n\nFollow the steps in the [Google API Console](https://console.cloud.google.com/start/api?id=displayvideo.googleapis.com&credential=client_key)\nto create a project and enable the Display \\& Video 360 API automatically.\n\nUse an existing project\n\nHere's how to manually activate the Display \\& Video 360 API for an existing project.\n\nTo enable an API for your project, do the following:\n\n1. [Open the API Library](https://console.cloud.google.com/apis/library) in the Google API Console. If prompted, select a project or create a new one. The API Library lists all available APIs, grouped by product family and popularity.\n2. If the API you want to enable isn't visible in the list, use search to find it.\n3. Select the API you want to enable, then click the **Enable** button.\n4. If prompted, enable billing.\n5. If prompted, accept the API's Terms of Service.\n\nGenerate credentials\n\nAll requests you make to the Display \\& Video 360 API must be authorized. For a brief\noverview of authorization, read about how to [authorize and identify your\napplication to Google](/display-video/api/guides/how-tos/authorizing).\n\nThe following instructions guide you through the process of creating an OAuth\n2.0 client ID to use with the [installed application\nflow](/identity/protocols/OAuth2InstalledApp). For instructions on generating credentials for use\nwith the service account flow, refer to the [Service Accounts](/display-video/api/guides/how-tos/service-account)\nguide.\n\n1. Follow the steps to [configure a Google API Console project](#create_project).\n\n\n2. Open the [Credentials page](https://console.cloud.google.com/apis/credentials) in the API Console.\n3. Click **Create credentials** \\\u003e **OAuth client ID**.\n\n4. Select the most applicable application type when prompted. The Java and\n Python code snippets offered in these guides assume a **Desktop app** , while\n the PHP code snippets assume a **Web application**.\n\n5. Enter any additional required information.\n\n - If this is your first time creating a client ID, besides being able to select your application type, you can configure your consent screen by clicking the **Configure consent screen** button. You won't get a prompt to configure your consent screen again after you do it the first time, although this information can be updated at any time.\n6. Click **Create**.\n\nWhen done, you'll be presented with an OAuth 2.0 client ID and client\nsecret, which you can download in JSON format and save for later use.\n\nConfigure the user consent screen\n\nWhen you use OAuth 2.0 for authentication, your users are authenticated after\nthey agree to terms presented to them on a user consent screen.\n\n\nTo set up your project's consent screen, do the following:\n\n1. Open the [Consent Screen page](https://console.cloud.google.com/apis/credentials/consent) in the Google API Console. If prompted, select a project or create a new one.\n2. Fill out the form and click **Save**."]]