Native ads - Native ads are ads that can be configured to better fit the design of you website. Our native ads code contains a variety of configurable options to help customize the ad expierience.
- zone_id - (required) id of the zone.
- container - (required) The id of the dom element that will contain the ads.
- type - (optional, defaults to normal). Can also be dynamic. When set to normal or not set, the zone will only show native ads. If set to dynamic, the ad serving algorithm will fill the ad spots with the best ads.
- itemBackground - (optional, defaults to none) The background of each ad container. Example itemBackground: "#000".
- itemMarginTop - (optional, defaults to 3px) margin in pixels of the ad container. Can be a percentage. Example itemMarginTop:"10%" or itemMarginTop: "10px"
- itemMarginBottom - (optional, defaults to 3px) margin in pixels of the ad container. Can be a percentage. Example itemMarginBottom:"10%" or itemMarginBottom: "10px"
- itemMarginRight - (optional, defaults to 3px) margin in pixels of the ad container. Can be a percentage. Example itemMarginRight:"10%" or itemMarginRight: "10px"
- itemMarginLeft - (optional, defaults to 3px) margin in pixels of the ad container. Can be a percentage. Example itemMarginLeft:"10%" or itemMarginLeft: "10px"
- imageWidth - (optional, defaults to 300px) width of the ad image. Can be a percentage. Example imageWidth:"10%" or imageWidth: "10px"
- imageHeight - (optional, defaults to 300px) width of the ad image. Can be a percentage. Example imageHeight:"10%" or imageHeight: "10px"
- showTitle - (optional, defaults to yes) show the native ad title. Example: showTitle: "no"
- titleFontFamily - (optional, defaults to Arial) font family of title. Example titleFontFamily:"Arial"
- titleFontSize - (optional, defaults to 16px) font size of title. Example titleFontSize:"20px"
- titleFontColor - (optional, defaults to #000000) font color of title. Example titleFontColor:"#FFFFFF"
- titleFontWeight - (optional, defaults to normal) font color of title. Example titleFontWeight:"bold"
- titleBackground - (optional, defaults to none) font color of title. Example titleBackground:"#FFFFFF"
- titleTextAlign - (optional, defaults to left) font color of title. Example titleTextAlign:"center"
- titleTextDecoration - (optional, defaults to none) font color of title. Example titleTextDecoration:"underline"
- titleLineHeight - (optional, defaults to normal) font color of title. Example titleLineHeight:"14px"
- titleTopPadding - (optional, defaults to 8px) margin in pixels of the ad container. Can be a percentage. Example titleTopPadding:"10%" or titleTopPadding: "10px"
- titleRightPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example titleRightPadding:"10%" or titleRightPadding: "10px"
- titleBottomPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example titleBottomPadding:"10%" or titleBottomPadding: "10px"
- titleLeftPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example titleLeftPadding:"10%" or titleLeftPadding: "10px"
- showText - (optional, defaults to yes) show the native ad title. Example: showText: "no"
- textFontFamily - (optional, defaults to Arial) font family of title. Example textFontFamily:"Arial"
- textFontSize - (optional, defaults to 16px) font size of title. Example textFontSize:"20px"
- textFontColor - (optional, defaults to #000000) font color of title. Example textFontColor:"#FFFFFF"
- textFontWeight - (optional, defaults to normal) font color of title. Example textFontWeight:"bold"
- textBackground - (optional, defaults to none) font color of title. Example textBackground:"#FFFFFF"
- textTextAlign - (optional, defaults to left) font color of title. Example textTextAlign:"center"
- textTextDecoration - (optional, defaults to none) font color of title. Example textTextDecoration:"underline"
- textLineHeight - (optional, defaults to normal) font color of title. Example textLineHeight:"14px"
- textTopPadding - (optional, defaults to 8px) margin in pixels of the ad container. Can be a percentage. Example textTopPadding:"10%" or textTopPadding: "10px"
- textRightPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example textRightPadding:"10%" or textRightPadding: "10px"
- textBottomPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example textBottomPadding:"10%" or textBottomPadding: "10px"
- textLeftPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example textLeftPadding:"10%" or textLeftPadding: "10px"
- showBrand - (optional, defaults to yes) show the native ad title. Example: showBrand: "no"
- brandFontFamily - (optional, defaults to Arial) font family of title. Example brandFontFamily:"Arial"
- brandFontSize - (optional, defaults to 16px) font size of title. Example brandontSize:"20px"
- brandFontColor - (optional, defaults to #000000) font color of title. Example brandFontColor:"#FFFFFF"
- brandFontWeight - (optional, defaults to normal) font color of title. Example brandFontWeight:"bold"
- brandBackground - (optional, defaults to none) font color of title. Example brandBackground:"#FFFFFF"
- brandTextAlign - (optional, defaults to left) font color of title. Example brandTextAlign:"center"
- brandTextDecoration - (optional, defaults to none) font color of title. Example brandTextDecoration:"underline"
- brandLineHeight - (optional, defaults to normal) font color of title. Example brandLineHeight:"14px"
- brandTopPadding - (optional, defaults to 8px) margin in pixels of the ad container. Can be a percentage. Example brandTopPadding:"10%" or brandTopPadding: "10px"
- brandRightPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example brandRightPadding:"10%" or brandRightPadding: "10px"
- brandBottomPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example brandBottomPadding:"10%" or brandBottomPadding: "10px"
- brandLeftPadding - (optional, defaults to 0px) margin in pixels of the ad container. Can be a percentage. Example brandLeftPadding:"10%" or brandLeftPadding: "10px"
|
|