Od
8 września 2025 r. każdy nowy element zamówienia będzie musiał deklarować, czy będzie wyświetlać reklamy polityczne w Unii Europejskiej (UE). Przesyłanie plików SDF i wywoływanie interfejsu Display & Video 360 API bez deklaracji zakończy się niepowodzeniem. Więcej informacji o tym, jak zaktualizować integrację, aby złożyć to oświadczenie, znajdziesz na naszej
stronie dotyczącej wycofania.
Przegląd
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Elementy zamówienia określają, które reklamy są wyświetlane, kiedy i dla kogo. Jest to spowodowane wieloma ustawieniami skonfigurowanymi na poziomie elementu zamówienia i wymaganymi przez zasoby nadrzędne. Za pomocą interfejsu API Display & Video 360 możesz tworzyć i aktualizować elementy zamówienia oraz inne zasoby programowo, co pozwala szybko dostosowywać wyświetlane kreacje, wykorzystany budżet lub użytkowników docelowych reklam.
Z tego przewodnika dowiesz się, jak tworzyć zasoby Display & Video 360, przypisywać ustawienia kierowania elementom zamówienia i aktywować odpowiednie pola, aby zacząć wyświetlać reklamy.
Wymagania wstępne
Zanim zaczniesz korzystać z interfejsu Display & Video 360 API, musisz wykonać te czynności:
Utwórz i zatwierdź projekt interfejsu API zgodnie z opisem w przewodniku Początkujący.
Upewnij się, że profil użytkownika Display & Video 360, zidentyfikowany na podstawie adresu e-mail konta użytkownika lub konta usługi, ma uprawnienia roli użytkownika „Czytaj i pisz” w przypadku odpowiedniego reklamodawcy lub partnera. W razie potrzeby skontaktuj się z użytkownikiem o roli „Administrator” w Twoim zespole, aby włączyć te uprawnienia.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eDisplay & Video 360 line items control ad serving by dictating which ads are shown, when, and to whom, based on numerous settings.\u003c/p\u003e\n"],["\u003cp\u003eThe Display & Video 360 API enables programmatic creation and updates of line items and other resources, allowing for quick adjustments to creatives, budget, and targeting.\u003c/p\u003e\n"],["\u003cp\u003eThis guide provides instructions on creating Display & Video 360 resources, assigning line item targeting, and activating necessary fields to initiate ad serving.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, you must create and authorize an API project and ensure your Display & Video 360 user profile has "Read & write" permissions for the relevant advertiser or partner.\u003c/p\u003e\n"]]],["Line items manage ad serving, including ad selection, timing, and audience. The Display & Video 360 API enables programmatic creation and modification of line items and other resources, enabling rapid adjustments to creatives, budget, and user targeting. To use the API, you must create and authorize an API project and ensure your user profile has \"Read & write\" permissions for the relevant advertiser or partner, granted by an \"Admin\" user. The API can then be used to assign targeting to line items and fields to enable ads to be served.\n"],null,["# Overview\n\n[Line items](//support.google.com/displayvideo/answer/2891312) control which ads are served, when they are served,\nand to whom they are served. This is dictated by numerous settings configured at\nthe line item level and prescribed by parent resources. Through the\nDisplay \\& Video 360 API, you can create and update line items and other resources\nprogrammatically, allowing you to quickly adjust the creatives shown, budget\nused, or users targeted in the serving of your ads.\n\nThis guide describes how to create Display \\& Video 360 resources, assign line item\ntargeting, and activate appropriate fields to begin serving ads.\n\nPrerequisites\n-------------\n\nBefore you start working with Display \\& Video 360 API services, you'll need to complete the\nfollowing steps:\n\n1. Create and authorize an API project as outlined in our\n [Get Started](/display-video/api/guides/getting-started/overview) guide.\n\n2. Ensure your Display \\& Video 360 user profile, identified by a user or service\n account email address, has \"**Read \\& write** \" user role permissions for the\n necessary advertiser or partner. Contact an existing \"**Admin**\" user on your\n team to have these permissions enabled, if necessary."]]