ahmedkaludi / ads-for-wp

We are innovating in the Ads space by creating a Lightweight, Easy & Feature Rich Ad solution for WP & AMP
http://www.adsforwp.com/
22 stars 2 forks source link

Code Stripped of from Custom ad section #227

Closed ahmedkaludi closed 5 years ago

ahmedkaludi commented 5 years ago

try this:

<amp-ad width="600" height="600" layout="responsive" type="mgid" data-publisher="**********" data-widget="******" data-container="******ScriptRoot******" ></amp-ad>

https://wordpress.org/support/topic/custom-code-being-stripped-off/

santosh8793 commented 5 years ago

Pushed in 1.9.4

encodiaweb commented 5 years ago

Hi there,

I am using 1.9.6

<amp-ad width="300" height="169" type="viralize" layout="responsive" data-zid="xxx"></amp-ad>

You strip away from "viralize", to the end.

<amp-ad width="300" height="250" type="doubleclick" data-slot="/123456789/STRING/STRING_AMP" rtc-config="{ 'vendors': { 'criteo': {'NETWORK_ID': 6988} , 'indexexchange': {'SITE_ID': 123456} }, 'timeoutMillis': 1000}"></amp-ad>

You strip away all rtc-config

Thank you

encodiaweb commented 5 years ago

I temporary fixed "my" issue:

$my_allowed['amp-ad'] = array(
                    'class'                     => array(),
                    'width'                     => array(),
                    'height'                    => array(),
                    'type'                      => array(),
                    'data-slot'                 => array(),
                    'data-ad-client'            => array(),
                    'data-ad-slot'              => array(),
                    'data-tagtype'              => array(),
                    'data-cid'                  => array(),
                    'data-crid'                 => array(),
                    'data-mid'                  => array(),
                    'data-block-id'             => array(),
                    'data-html-access-allowed'  => array(),
                    'data-property'             => array(),
                    'data-zone'                 => array(),
                    'data-json'                 => array(),
                    'fallback'                  => array(),
                    'rtc-config'                => array(),
                    'data-zid'                  => array(),
                    'layout'                    => array(),
            );

...adding the last 3 lines