For DFP
We need a Slot ID
Set ad code under config - ampStoryDFPAdSlot
For Adsense
We need Slot ID and Pub-ID
Set ad code under config - ampStoryCustomAdSlot
Rule For Adsense
{
"ad-attributes": {
"type": "adsense",
"data-slot": "slot",
"data-ad-client": "pub-id"
}
}
Example For Adsense
{
"ad-attributes": {
"type": "adsense",
"data-slot": "9413909641",
"data-ad-client": "ca-pub-5909878024864044"
}
}