Skip to content

Commit

Permalink
Stop to load pv endpoint from AMP stories
Browse files Browse the repository at this point in the history
  • Loading branch information
velichkin committed Oct 23, 2024
1 parent be60054 commit abcc114
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -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;
});
}
Expand Down

0 comments on commit abcc114

Please sign in to comment.