Skip to content

Add src/config attribute to amp-story-auto-ads element #34192

@WagneRaz18

Description

@WagneRaz18

As a developer I want to pass the JSON configuration object as an external path.
For example:
instead of

<amp-story-auto-ads>
		<script type="application/json">
			{  
                         "ad-attributes": {
                                "type": "doubleclick",
                                "data-slot": "MY DATA SLOT"
                                 }
                        }
		</script>
</amp-story-auto-ads>

I want to be able to write

<amp-story-auto-ads src=URL_TO_JSON>
</amp-story-auto-ads>

Just like amp-analytics element have a config attribute

<amp-analytics
  config="https://example.com/analytics.account.config.json"
></amp-analytics>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions