How can I get the current width of a macro in a connect dynamicContentMacros callback?

I define a dynamic content macro in atlassian-connect.json:

"dynamicContentMacros": [
    {
        "key": "iframe-some-app",
        "name": {
            "value": "Some app IFrame"
        },
        "url": "/app/managed-form?macroId={macro.id}&pageId={page.id}&pageVersion={page.version}&outputType={output.type}&iFrame={iframe}&url={url}&iHeight={iheight}",
        "description": {
            "value": "Some App IFrame"
        },
        "width": "10000px",
        "height": "0px",

I need to know which option the user clicked of the width options:
image

Is this possible?

The only way I know is to look into the storage format of the page and read the data-layout attribute of your macro tag:

<ac:structured-macro
    ac:name="your-macro"
    ac:schema-version="1"
    data-layout="wide|default|full-width"
    ...
>...</ac:structured-macro>

Thanks …

So it’s only accessible with Rest API?