Uwaga: przeglądasz dokumentację interfejsu REST interfejsu API. Większość oficjalnych bibliotek klienta używa gRPC. Więcej informacji znajdziesz we wprowadzeniu do REST.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Mutate, Search i SearchStream to najpopularniejsze metody w interfejsie Google Ads API, ale istnieje wiele innych, które służą do konkretnych celów. Wszystkie usługi i ich interfejsy API są udokumentowane w dokumentacji referencyjnej.
Na przykład plik customer_service.proto definiuje metodę ListAccessibleCustomers oprócz standardowej metody Mutate. Jego adnotacja google.api.http opisuje, jak metoda jest mapowana na HTTP. Używa on żądania HTTP GET z niestandardowym czasownikiem listAccessibleCustomers:
Innym przykładem z customer_service.proto jest metoda CreateCustomerClient. Jego adnotacja google.api.http opisuje protokół HTTP POST przy użyciu niestandardowego czasownika createCustomerClient:
[[["Ł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"]],["Ostatnia aktualizacja: 2025-09-05 UTC."],[],["The Google Ads API includes various methods beyond `Mutate`, `Search`, and `SearchStream`, all detailed in REST documentation. Service endpoints are defined in `.proto` files using proto3. `ListAccessibleCustomers` is a GET method, mapped using the `google.api.http` annotation in the `customer_service.proto` file, and uses custom verb `listAccessibleCustomers`. Similarly, `CreateCustomerClient`, a POST method, uses custom verb `createCustomerClient`, also defined in the same file.\n"],null,[]]