MCPFerramentas MCP/Anúncios em diretórios/opt_in_publisher_listing

opt_in_publisher_listing

Writelistings:write

Reverse opt_out_publisher_listing: put ONE publisher/directory back into ONE location's listings. The listing becomes visible to the client again — in their portal, in the location's Listings overview and in every count and score — and OS resumes syncing it on the next edit or publish. Its previous status, live link, connection and history were never deleted, so it returns as it was rather than starting from nothing. Nothing is sent to the publisher by this call itself. If the publisher is still excluded by the CLIENT's publisher set, this cannot bring it back — the set is the wider promise and always wins; change the set (update_publisher_set) or move the client to another one (assign_publisher_set) instead. Identify the location by its id (from list_locations), and the publisher either by name (google | facebook | apple | bing) or, for any other directory, by its numeric siteId (from list_sites). Use get_location_directories with includeOptedOut: true to see what is currently excluded. Requires an identified agency user — the change is recorded in the audit trail against the person who made it.

Parâmetros
locationIdstringobrigatório
The location's id (required, from list_locations — the database id, the public loc_ id, or the legacy id). Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
publisher"google" | "facebook" | "apple" | "bing"opcional
Which publisher to exclude, for the big four.
siteIdnumberopcional
Any other directory, by its numeric site id (from list_sites). Use this instead of `publisher` for the long tail.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "opt_in_publisher_listing",
    "arguments": {
      "locationId": "string"
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.