From d7f39d44357e78c7c846b00729eed9a3346dec46 Mon Sep 17 00:00:00 2001 From: Oleksandr Velychkin Date: Wed, 23 Oct 2024 17:07:02 +0300 Subject: [PATCH 1/2] Stop to load pv endpoint from AMP stories --- .../0.1/amp-ad-network-mgid-impl.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js b/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js index 755620a92c39..65322aa593dd 100644 --- a/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js +++ b/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js @@ -15,7 +15,6 @@ import {AmpA4A} from '../../amp-a4a/0.1/amp-a4a'; const TAG = 'amp-ad-network-mgid-impl'; const BASE_URL_ = 'https://servicer.mgid.com/'; -const PV_URL_ = 'https://c.mgid.com/pv/'; export class AmpAdNetworkMgidImpl extends AmpA4A { /** @@ -74,19 +73,6 @@ export class AmpAdNetworkMgidImpl extends AmpA4A { params.forEach((result) => data.push(result.value)); const joinedParams = '?' + data.join('&'); servicerUrl += joinedParams; - - if (!hasOwn(this.win, '_mgAmpStoryPV')) { - this.getAmpDoc() - .getBody() - .appendChild( - createElementWithAttributes(this.win.document, 'amp-pixel', { - 'src': PV_URL_ + joinedParams, - }) - ); - - this.win['_mgAmpStoryPV'] = 1; - } - return servicerUrl; }); } From e35c884b5a897f2066cb7bf7a960f45e9662f46d Mon Sep 17 00:00:00 2001 From: Oleksandr Velychkin Date: Tue, 7 Jan 2025 11:22:43 +0200 Subject: [PATCH 2/2] Stop to load pv endpoint from AMP stories --- .../amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js b/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js index 65322aa593dd..6831c85312c0 100644 --- a/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js +++ b/extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js @@ -2,8 +2,7 @@ import { CONSENT_POLICY_STATE, CONSENT_STRING_TYPE, } from '#core/constants/consent-state'; -import {createElementWithAttributes, removeElement} from '#core/dom'; -import {hasOwn} from '#core/types/object'; +import {removeElement} from '#core/dom'; import {Services} from '#service';