StartAppNativeAd

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

A Native Ad is a raw representation of an ad without any pre-defined wrapping UI, which gives you the freedom to design and control the ad exactly as you want. Using Native Ads, you can design an ad experience that perfectly fits your application's scene, content and functionality.



Methods

You can set the below method blocks in the blocks section of the builder.

GetAdCampaignActionType

Returns the Ad Campaign Type, if it will open the app or the store

callStartAppNativeAd.GetAdCampaignActionTypenativeAd
GetAdCategory

Returns the Ad Category

callStartAppNativeAd.GetAdCategorynativeAd
GetAdDescription

Returns the Ad Description

callStartAppNativeAd.GetAdDescriptionnativeAd
GetAdImageUrl

Returns the Ad Image Url

callStartAppNativeAd.GetAdImageUrlnativeAd
GetAdInstalls

Returns the Ad Install in the Store

callStartAppNativeAd.GetAdInstallsnativeAd
GetAdRating

Returns the Ad Rating in PlayStore

callStartAppNativeAd.GetAdRatingnativeAd
GetAdSecondaryImageUrl

Returns the Ad Secondary Image Url

callStartAppNativeAd.GetAdSecondaryImageUrlnativeAd
GetAdTitle

Returns the Ad Title

callStartAppNativeAd.GetAdTitlenativeAd
IsSdkInitialized

Check if the StartApp SDK Is Initialized

callStartAppNativeAd.IsSdkInitialized
LoadAd

Load a Native Ad. numberOfAds is the number of ads to load, primary and secondary Image Sizes can be the following:0 – for image size 72px X 72px 1 – for image size 100px X 100px 2 – for image size 150px X 150px 3 – for image size 340px X 340px 4 – for image size 1200px X 628px 5 – for image size 320px X 480px 6 – for image size 480px X 320px. Note: Size 5-6 can't be used together with sizes 0-4. Also 0 - 3 are the allowed ad Sizes for Secondary Image Size

callStartAppNativeAd.LoadAdnumberOfAdsprimaryImageSizesecondaryImageSize
RegisterContainerForClick

Set a Container to listen for Interaction from the User

callStartAppNativeAd.RegisterContainerForClicknativeAdcontainer

Events

You can set the below event blocks in the blocks section of the builder.

AdFailedToLoad

Ad Failed To Loaded

whenStartAppNativeAd.AdFailedToLoad errorMessage do
AdLoaded

Ad Loaded

whenStartAppNativeAd.AdLoaded nativeAds do
ErrorOccurred

Ad Error Occurred

whenStartAppNativeAd.ErrorOccurred errorMessage do