Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Oto ogólny proces korzystania z interfejsu Platforms API:
- Utwórz nowy projekt Google Cloud (lub użyj istniejącego).
- Utwórz konto usługi w projekcie Google Cloud i prześlij je do Google za pomocą menedżera konta, aby dodać je do konta AdSense.
- Włącz interfejs AdSense Platform API w projekcie Google Cloud (ta strona jest widoczna tylko dla projektów na liście dozwolonych)
- Tworzenie klucza usługi
- Generowanie tokena dostępu za pomocą bibliotek OAuth Google
- Wywoływanie interfejsów API platformy AdSense za pomocą żądań HTTP
Kroki 1–5 opisano na stronie Uwierzytelnianie wywołań interfejsu API, a interfejsy API – na odpowiednich stronach:
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.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],[],[[["CustomChannel is a resource representing a custom channel, providing a way to segment ad revenue based on specific criteria."],["It has fields like `name`, `reportingDimensionId`, `displayName`, and `active` for identification and configuration."],["You can manage CustomChannels using methods like create, delete, get, list, listLinkedAdUnits, and patch to control their lifecycle and relationships with ad units."],["Refer to the provided links for detailed information on each method and field."]]],["To utilize the Platforms API, first, establish a Google Cloud project and create a service account, sending it to Google. Then, enable the AdSense Platform API for the project and generate a service key. Use Google's OAuth libraries to obtain an access token. Finally, make HTTP requests to call the AdSense Platform APIs. These APIs enable creating, getting accounts, adding event data, adding sites, and requesting site reviews. Steps to generate the service key and authentication are available at [Authenticating API calls](/adsense/platforms/api/authenticating-api-calls).\n"]]