Operacje w ramach eksperymentu
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Po skonfigurowaniu Experiment
i jego ExperimentArm
oraz zmodyfikowaniu grupy eksperymentalnej pod kątem eksperymentu możesz wykonać różne działania, aby przeprowadzić eksperyment i zarządzać nim po jego zakończeniu.
Długo trwające operacje
Niektóre z tych operacji są asynchroniczne, co oznacza, że wywołanie interfejsu Google Ads API rozpocznie proces, ale nie zostanie on od razu ukończony. Zamiast tego musisz sprawdzić, czy proces został zakończony. Więcej informacji znajdziesz w przewodniku na temat obsługi błędów asynchronicznych.
Operacje
Możesz wykonać 4 rodzaje działań w eksperymencie. Wszystkie znajdują się w ExperimentService
.
- Zaplanuj eksperyment. Jest to działanie asynchroniczne. Przekształca kampanie w fazie projektowania w rzeczywiste kampanie, które będą gotowe do wyświetlania po dacie rozpoczęcia eksperymentu.
- Zakończ eksperyment. Jest to normalna operacja synchroniczna. Jeśli eksperyment już trwa, możesz go natychmiast zakończyć, nawet jeśli nie nadeszła jeszcze data zakończenia.
- Promuj eksperyment. Jest to działanie asynchroniczne. Spowoduje to skopiowanie zmian wprowadzonych w kampanii eksperymentalnej do kampanii kontrolnej i zaprzestanie wyświetlania reklam w kampanii eksperymentalnej. Użyj tej opcji, jeśli zmiany Ci się podobają i chcesz je wprowadzić w oryginalnej kampanii.
- Zakończ eksperyment. Jest to normalna operacja synchroniczna. Spowoduje to trwałe skonfigurowanie kampanii eksperymentalnej, która będzie działać poza kontekstem eksperymentu. W kampanii kontrolnej nie zostaną wprowadzone żadne zmiany. Użyj tej opcji, jeśli zmiany Ci się podobają, ale chcesz, aby istniały oddzielnie od oryginalnej kampanii.
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-08-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-26 UTC."],[[["\u003cp\u003eGoogle Ads experiments allow scheduling, ending, promoting, and graduating experiment variations to manage and implement changes.\u003c/p\u003e\n"],["\u003cp\u003eCertain experiment operations like scheduling and promoting are asynchronous, requiring completion checks, while ending and graduating are synchronous, taking effect immediately.\u003c/p\u003e\n"],["\u003cp\u003ePromoting an experiment applies treatment arm changes to the control arm and stops treatment serving, while graduating creates a separate, permanent treatment campaign alongside the original.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eExperimentService\u003c/code\u003e provides the functionalities to manage and control these experiment operations within Google Ads.\u003c/p\u003e\n"]]],[],null,["# Experiment operations\n\nOnce you've set up your `Experiment` and its `ExperimentArm`s, and modified the\ntreatment arm to suit your experiment, there are various operations you can\nperform to actually run the experiment and manage it once it is complete.\n\nLong running operations\n-----------------------\n\nSome of these operations are asynchronous, which means that your Google Ads API call\nwill begin the process, but it won't be complete right away. Instead, you will\nhave to check for completion. For more details on this, see the guide on\nhandling [async errors](/google-ads/api/docs/experiments/async-errors).\n\nOperations\n----------\n\nThere are four kinds of operations you can perform on an experiment. They are\nall housed in the [`ExperimentService`](/google-ads/api/reference/rpc/v21/ExperimentService).\n\n- **Schedule** the experiment. This is asynchronous. Materializes the in design campaigns to actual campaigns, ready to serve once the experiment's start date arrives.\n- **End** the experiment. This is a normal synchronous operation. If the experiment is already in progress, you can end it immediately, even if the end date hasn't been reached.\n- **Promote** the experiment. This is asynchronous. This will copy changes made in the treatment arm to the control arm, and stop the treatment arm from serving. Use this if you liked the changes and want to incorporate them into your original campaign.\n- **Graduate** the experiment. This is a normal synchronous operation. This will permanently set up the treatment campaign to continue to exist, outside of the context of the experiment. No changes will be made to the control campaign. Use this option if you liked the changes, but want them to exist separately from the original campaign."]]