NOTE: If you do not register individual ad units, you should pass unitId = 0. We strongly recommend registering all ad units to get better control over ad display.
There are three ad views you can use in your app or website. Each requires the same steps to display (read "Placing an Ad View" below).
320X50, 320X240, WidthX90, Full Screen Ad, 320x250
320 x 250 ad space tag would be - You need to change values in bold with your website's appId, ad unit Id, tags and ad unit's overlay position on screen
Now you can request for an ad from tapcliq on any page by calling getTqAd function with parameters ("ad_height", "coordinate_from_left", "coordinate_from_bottom", "your_registered_ad_unit_id_for_this_ad_size")
For example if you have registered 3 ad units namely 320 x 50
You can request for them in your page as below :
getTqAd("50","0","0","186") -> This will request for 320 x 50 ad which would be displayed at the bottom of the screen, 20 pixels from the left
Overlay ad will go away after being displayed
For full screen ads - Put below mentioned scripts at the beginning of the <head> tag of the webpage in which you wish to display full screen ad
Here is an example:
<iframe id="tqframe" src="http:// adserver.tapcliq.com/adserver/rest/webUIRMA?appId=YOUR_APP_ID&origin=0&adType=R&test=1&tags=tags_separated_with_comma&unitId=YOUR_ADUNIT_ID" scrolling="no" width="320px" height="50px" align="bottom" frameborder="1"> </iframe>
Depending on the different kind of ad view that needs to be displayed, you would need to place the corresponding code snippet. The example above would work for a 320X50 ad view (AdView320X50). If you would like to place an ad view for a larger mobile device like a tablet, the adType would need to be changed along with the height fields as shown below in an example. This would display an 768X90 ad. This ad will span across the width of your mobile device.
<iframe id="tqframe" src="http:// adserver.tapcliq.com/adserver/rest/webUIRMA?appId=YOUR_APP_ID&origin=0&adType=L&test=1&tags=tags_separated_with_comma&unitId=YOUR_ADUNIT_ID" scrolling="no" width="768px" height="90px" align="bottom" frameborder="1"> </iframe>
Similarly if you would like to place a square ad (AdView320X240), you could use the following snippet. Also, note that the adType would need to be changed to S.
<iframe id="tqframe" src="http://adserver.tapcliq.com/adserver/rest/webUIRMA?appId=YOUR_APP_ID&origin=0&adType=S&test=1&tags=tags_separated_with_comma&unitId=YOUR_ADUNIT_ID" scrolling="no" width="320px" height="240px" align="bottom" frameborder="1"> </iframe>
unitId is a unique Id given to a specific ad view once you register it under adunits