JS Ad Code for Wapka Sites

From UC Union Wiki
Jump to: navigation, search

To better support JS Ad Code for wapka sites, UC Union has updated our JS Ad Code specifically for wapka webmasters.

How to get my Pub?

Fist of all, please choose Cash Ad Code mode when register in UC Union.

a) Please create an account in UC Union

b) Submit a website to register in Cash from Ad Code mode.


Second, get your pub in your Ad code.

a) After your account and website been approved, pls log in our system and visit Promotional Material section.

Wapka2.png


b) Get your unique Ad code

Wapka3.png


c) Your unique pub is marked as red below, for the example below, the pub would be ssr@CashForAdCode.

Wapka4.png


If your wapka site supports PHP, please use the below JS +PHP Ad code


<script src="http://admaster.union.ucweb.com/js/union_html5_sdk.js"></script>
<script>
     try{ 
        Umobi.AdView({
            pub:"ssr@test",
            format_type:Umobi.AdFormatType.BANNER
        });
     }catch(e){}
</script>
<noscript>
<a href="http://click.union.ucweb.com/?pub=ssr@test&tm=:uniqid:">
<img src="http://slot.union.ucweb.com/?pub=ssr@test&format_type=img&tm=:uniqid:"/>
</a></noscript>

Note: Please change the pub to your own pub.

If your wapka site supports only HTML, please use the below JS+HTML Ad code

<script src="http://admaster.union.ucweb.com/js/union_html5_sdk.js"></script>
<script>
     try{ 
        Umobi.AdView({
            pub:"ssr@test",
            format_type:Umobi.AdFormatType.BANNER
        });
     }catch(e){}
</script>
<noscript>
<a href="http://click.union.ucweb.com/?pub=ssr@test">
<img src="http://slot.union.ucweb.com/?pub=ssr@test&format_type=img"/>
</a></noscript>

Note: Please change the pub to your own pub.