Ad View

In general, an Ad View occurs each time an advertisement is downloaded from an ad server on to the viewer's screen.
Ad View allows your application to earn revenue by displaying advertisements to the user. Ad view dedicates a portion on the screen to display advertisements and in turn you receive revenue when users view or click those advertisements.


Configure.IT Ad View supports display of ads from iAd, Flurry, Google AdMob.

    Keywords:
  • ad viewer
  • ad gallery
  • ad display
  • advertising
  • advertisement view

Properties

  • Object
    PARAMETER
    DESCRIPTION
    Xpos

    Sets the X position of the Ad View.

    YPos

    Sets the Y position of the Ad View.

    Width

    Sets the width of the Ad View.

    Height

    Sets the height of the Ad View.

    Object ID

    Sets unique identifier for the control. Control can be referenced with the name, set in this property for configuration.

    Object Parent ID

    Set "Object ID" of View which contains this control or can serve as parent.

    Key Name To Data

    Sets the local JSON file name from which View's data has to be loaded.

  • Display
    PARAMETER
    DESCRIPTION
    Background Color

    Used to set the background color to the Ad View.

  • Layout Setting
    PARAMETER
    DESCRIPTION
    Left

    The padding is expressed in pixels for the left, top, right and bottom parts of the view. Padding can be used to offset the content of the view by a specific amount of pixels.


    For instance, a Left value of 2 will push the view's content by 2 pixels to the right of the left edge.

    Layout Height

    Sets the height of the view
    match_parent/fill_parent : Takes the height as its parent view
    wrap_content : Takes the height as its content’s height

    Layout Width

    Sets the width of the view
    match_parent/fill_parent : Takes the width as its parent view
    wrap_content : Takes the width as its content’s width

    Apply Custom Properties

    If any of the layout setting parameter(s) are selected then this value is selected to indicate user applied custom layout setting parameter(s).

    Vertical

    Group of vertical android default properties.

    Right

    For instance, a Right value of 2 will push the view's content by 2 pixels to the left of the right edge.

    Top

    For instance, a Top value of 2 will push the view's content by 2 pixels to the bottom of the top edge.

    Bottom

    For instance, a Bottom value of 2 will push the view's content by 2 pixels to the top of the bottom edge.

    Center In Parent

    This property centers the child vertically with respect to the bounds of its parent view.

    Default Min Height

    The height of the view cannot be less than the given value.
    If user select “Default Min Height” then android default value is taken otherwise it takes 0dp.

    Default Min Width

    The width of the view cannot be less than the given value.
    If user select “Default Min Width” then android default value is taken otherwise it takes 0dp.

    Horizontal

    Group of horizontal android default properties.

  • Vertical
    PARAMETER
    DESCRIPTION
    Vertical Group

    Group of vertical android default properties.

    Reference Type

    These are the android default properties to set selected view with respect of other view.

    Reference Value

    Reference object that is used for positioning selected object

    Offset Type

    marginTop : Specifies extra space on the top side of this view. This space is outside this view's bounds.
    marginBottom : Specifies extra space on the bottom side of this view. This space is outside this view's bounds.

    Offset Value

    Value defines the extra space value in pixel.

    Center Vertical

    This property centers the child vertically with respect to the bounds of its parent view.

    Apply Vertical Custom Properties

    If any of the vertical layout setting parameter(s) are selected then this value is selected to indicate user applied vertical custom layout setting parameter(s).

  • Horizontal
    PARAMETER
    DESCRIPTION
    Horizontal Group

    Group of horizontal android default properties.

    Reference Type

    Reference type is the the default property to set selected view with respect to other view.

    Reference Value

    Reference object that is used for positioning selected object.

    Offset Type

    marginLeft : Specifies extra space on the left side of this view. This space is outside this view's bounds.
    marginRight : Specifies extra space on the right side of this view. This space is outside this view's bounds.

    Offset Value

    Offset Value defines the extra space value in the pixel.

    Center Horizontal

    This property centers the child horizontally with respect to the bounds of its parent view.

    Apply Horizontal Custom Properties

    If any of the horizontal layout setting parameter(s) are selected then this value is selected to indicate user applied horizontal custom layout setting parameter(s).

  • Display/AdvanceText
    PARAMETER
    DESCRIPTION
    Hide

    Hiding an element can be done by checking ‘Hide’. This property lets you hide the control.


    Advance - Sets auto resizing with respect to superview, for Ad View.

  • CIT Custom Properties
    PARAMETER
    DESCRIPTION
    Ad Type

    This property is for setting type of ad to be displayed on Ad View.

    Display Admob On iAD Fail

    If you check this option, admob will display if iAD fails to load.

Actions

  • Adv Error

    This event is triggered when some error occurs while receiving the ad on Ad View control. Any actions you want perform on failure can be configured in “Adv Error” event listed in ”ACTION(S)” tab of Ad View control.

  • Adv Success

    This event is triggered on receiving ad successfully on Ad View control. Any actions you want perform on success can be configured in “Adv Success” event listed in ”ACTION(S)” tab of Ad View control.

Remarks

  • Ad Type

    This property is for setting type of ad to be displayed on Ad View.
    Following are the available types you can select from:-
    1) IAd - for apple supported ads
    2) AdMob - for google AdMob supported ads
    3) Flurry - flurry supported ads
    4) Tapjoy - Tapjoy supported ads

  • Flurry ads

    For displaying flurry ads in ad view, you need to set “Ad Type” property to “Flurry” and set “Flurry API Key” in “Third Party” tab under “Flurry” and enable it. For creating Flurry API key open this link https://dev.flurry.com/createProjectSelectPlatform.do .
    Sign in with your flurry credentials and then create a new app by selecting platform of your wish.

  • ADMOB ads

    For displaying google admob ads in ad view, you need to set “Ad Type” property to “AdMob” and set “API Key” in “Third Party” tab under “ADMOB” and enable it.
    You need to set AdMob ad unit ID in “API Key” field. For creating AdMob unit ID, follow this link https://support.google.com/admob/answer/3052638 .