Conversion: updateAvailability
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aktualizuje dostępność grupy aktywności Floodlight w DoubleClick Search.
Wypróbuj
Żądanie
Żądanie HTTP
POST https://www.googleapis.com/doubleclicksearch/v2/conversion/updateAvailability
Autoryzacja
To żądanie wymaga autoryzacji w tym zakresie:
Zakres |
https://www.googleapis.com/auth/doubleclicksearch |
Więcej informacji znajdziesz na stronie dotyczącej uwierzytelniania i autoryzacji.
Treść żądania
Dane w treści żądania podaj w następującej strukturze:
{
"availabilities": [
{
"agencyId": long,
"advertiserId": long,
"customerId": string,
"segmentationType": string,
"segmentationId": long,
"segmentationName": string,
"availabilityTimestamp": unsigned long
}
]
}
Nazwa usługi |
Wartość |
Opis |
Uwagi |
availabilities[] |
list |
Żądana dostępność. |
|
availabilities[].agencyId |
long |
Identyfikator agencji w DS. |
|
availabilities[].advertiserId |
long |
Identyfikator reklamodawcy DS. |
|
availabilities[].segmentationType |
string |
Typ podziału na segmenty, którego dotyczy ta dostępność (wartość domyślna to FLOODLIGHT ).
Akceptowane wartości:
|
|
availabilities[].segmentationId |
long |
Numeryczny identyfikator podziału na segmenty (np. identyfikator aktywności Floodlight DoubleClick Search). |
|
availabilities[].segmentationName |
string |
Identyfikator łatwego podziału na segmenty (np. nazwa aktywności Floodlight DoubleClick Search). |
|
availabilities[].availabilityTimestamp |
unsigned long |
Godzina przesłania wszystkich konwersji podana w milisekundach czasu UTC od początku epoki. |
|
availabilities[].customerId |
string |
Nowy identyfikator klienta Search Ads 360. Musi to być podrzędne konto menedżera. |
|
Odpowiedź
Jeśli operacja się uda, metoda zwróci odpowiedź o następującej strukturze:
{
"availabilities": [
{
"agencyId": long,
"advertiserId": long,
"customerId": string,
"segmentationType": string,
"segmentationId": long,
"segmentationName": string,
"availabilityTimestamp": unsigned long
}
]
}
Nazwa usługi |
Wartość |
Opis |
Uwagi |
availabilities[] |
list |
Zwracana dostępność. |
|
availabilities[].agencyId |
long |
Identyfikator agencji w DS. |
|
availabilities[].advertiserId |
long |
Identyfikator reklamodawcy DS. |
|
availabilities[].segmentationType |
string |
Typ podziału na segmenty, którego dotyczy ta dostępność (wartość domyślna to FLOODLIGHT ).
Akceptowane wartości:
|
|
availabilities[].segmentationId |
long |
Numeryczny identyfikator podziału na segmenty (np. identyfikator aktywności Floodlight DoubleClick Search). |
|
availabilities[].segmentationName |
string |
Identyfikator łatwego podziału na segmenty (np. nazwa aktywności Floodlight DoubleClick Search). |
|
availabilities[].availabilityTimestamp |
unsigned long |
Godzina przesłania wszystkich konwersji podana w milisekundach czasu UTC od początku epoki. |
|
availabilities[].customerId |
string |
Nowy identyfikator klienta Search Ads 360. Musi to być podrzędne konto menedżera. |
|
Wypróbuj
Użyj poniższego eksploratora interfejsów API, aby wywołać tę metodę na bieżących danych i wyświetlić odpowiedź.
Możesz też wypróbować
samodzielna
Eksplorator.
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: 2024-08-20 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-20 UTC."],[[["\u003cp\u003eUpdates the availability status for a batch of floodlight activities in DoubleClick Search.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/doubleclicksearch\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes an array of \u003ccode\u003eavailabilities\u003c/code\u003e with details like agencyId, advertiserId, segmentation details, and availability timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe response returns an array of \u003ccode\u003eavailabilities\u003c/code\u003e mirroring the request structure, confirming the updated status.\u003c/p\u003e\n"]]],["This API endpoint, accessed via a POST request to `https://www.googleapis.com/doubleclicksearch/v2/conversion/updateAvailability`, updates the availabilities of multiple floodlight activities in DoubleClick Search. The request body requires authorization and includes a list of `availabilities`. Each entry needs `agencyId`, `advertiserId`, `customerId`, `segmentationType` (default `FLOODLIGHT`), `segmentationId`, `segmentationName`, and `availabilityTimestamp`. The response mirrors the request structure, returning the updated `availabilities` with the same fields.\n"],null,["# Conversion: updateAvailability\n\n| **Note:** Requires [authorization](#auth).\n\nUpdates the availabilities of a batch of floodlight activities in DoubleClick Search.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/doubleclicksearch/v2/conversion/updateAvailability\n```\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/doubleclicksearch` |\n\nFor more information, see the [authentication and authorization](/search-ads/v2/authorizing) page.\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```text\n{\n \"availabilities\": [\n {\n \"agencyId\": long,\n \"advertiserId\": long,\n \"customerId\": string,\n \"segmentationType\": string,\n \"segmentationId\": long,\n \"segmentationName\": string,\n \"availabilityTimestamp\": unsigned long\n }\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|------------------------------------------|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `availabilities[]` | `list` | The availabilities being requested. | |\n| availabilities[].`agencyId` | `long` | DS agency ID. | |\n| availabilities[].`advertiserId` | `long` | DS advertiser ID. | |\n| availabilities[].`segmentationType` | `string` | The segmentation type that this availability is for (its default value is `FLOODLIGHT`). \u003cbr /\u003e Acceptable values are: - \"`FLOODLIGHT`\" | |\n| availabilities[].`segmentationId` | `long` | The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). | |\n| availabilities[].`segmentationName` | `string` | The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). | |\n| availabilities[].`availabilityTimestamp` | `unsigned long` | The time by which all conversions have been uploaded, in epoch millis UTC. | |\n| availabilities[].`customerId` | `string` | New Search Ads 360 customer ID. This must be a sub-manager account. | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"availabilities\": [\n {\n \"agencyId\": long,\n \"advertiserId\": long,\n \"customerId\": string,\n \"segmentationType\": string,\n \"segmentationId\": long,\n \"segmentationName\": string,\n \"availabilityTimestamp\": unsigned long\n }\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|------------------------------------------|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `availabilities[]` | `list` | The availabilities being returned. | |\n| availabilities[].`agencyId` | `long` | DS agency ID. | |\n| availabilities[].`advertiserId` | `long` | DS advertiser ID. | |\n| availabilities[].`segmentationType` | `string` | The segmentation type that this availability is for (its default value is `FLOODLIGHT`). \u003cbr /\u003e Acceptable values are: - \"`FLOODLIGHT`\" | |\n| availabilities[].`segmentationId` | `long` | The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). | |\n| availabilities[].`segmentationName` | `string` | The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). | |\n| availabilities[].`availabilityTimestamp` | `unsigned long` | The time by which all conversions have been uploaded, in epoch millis UTC. | |\n| availabilities[].`customerId` | `string` | New Search Ads 360 customer ID. This must be a sub-manager account. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/doubleclicksearch/v2/doubleclicksearch.conversion.updateAvailability)."]]