> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# fillPublisherIdsV2()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/fillPublisherIdsV2.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Adds the section, page and widget ids a v2 document, document template or page template as code leaves out, so the YAML written by hand states the ids the stored entity keeps. An id counts as missing when it is absent, null or empty. Comments and the indent width survive, the line break of the first line is applied to the whole file, and the sequence style survives too, except that unindented sequences are kept only at a 2-space indent and the compact `-   ` style is not kept. Block scalars take the indent width of the maps. Content that needs no id, or does not parse, comes back unchanged.

**Signature:**

```typescript
export declare function fillPublisherIdsV2(content: string): {
    content: string;
    changed: boolean;
};
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| content | string |  |

**Returns:**

{ content: string; changed: boolean; }
