Skip to content

Commit

Permalink
Add deprecation notice for amp-ad-custom (#39631)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq authored Nov 18, 2023
1 parent 45ea04a commit ec655de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/amp-ad-custom/0.1/amp-ad-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export class AmpAdTemplate extends AmpAdNetworkBase {

/** @override */
buildCallback() {
this.user().error(
TAG,
'amp-ad-custom is deprecated, see https://github.com/ampproject/amphtml/issues/39443'
);

this.getContext().size = {
// TODO(levitzky) handle non-numeric values.
width: this.element.getAttribute('width'),
Expand Down

0 comments on commit ec655de

Please sign in to comment.