Permalink
Find file
c00daac Oct 14, 2016
87 lines (65 sloc) 1.98 KB

Webedia Adserver

1. Introduction

Private ad system deployed for all Webedia websites.

2. One call method

This method allow you to call one ad position with a specific configuration.

a. Basic Example

<amp-ad width=300
        height=250
        type="webediads"
        data-site="site_test"
        data-page="amp"
        data-position="middle"
        data-query="">
</amp-ad>

b. Query Example

<amp-ad width=300
        height=250
        type="webediads"
        data-site="site_test"
        data-page="amp"
        data-position="middle"
        data-query="amptest=1">
</amp-ad>

c. Placeholder and Fallback example

<amp-ad width=300
        height=250
        type="webediads"
        data-site="site_test"
        data-page="amp"
        data-position="middle"
        data-query="amptest=1">
    <div placeholder>Loading...</div>
    <div fallback>No ad</div>
</amp-ad>

3. Supported Parameters

"data" Parameters

All parameters are mandatory, only "query" can be empty.

  • data-site (String, non-empty)
  • data-page (String, non-empty)
  • data-position (String, non-empty)
  • data-query (String)

    • key are separated with &
    • value are separted with |

    Example

    • key1=value1|value2|value3&key2=value4&key3=value5|value6

5. Support

/╲/\╭༼ : ❛ ◡ ❛ : ༽╮/\╱\