Native广告
一、加载Native广告
调用SDK初始化后,SDK内部自动加载Native广告。
二、展示Native广告
public void Button_ShowNative()
{
HCSDKManager.Instance.ShowNative(nativeImage.rectTransform);
}
API:
void ShowNative(RectTransform pRect, Camera pCam = null, string pAdPos = "");
RectTransform :需要展示原生广告Image的RectTransform。
pCam :如果UI使用相机模式,必须使用正交相机。
pAdPos :展示原生广告的位置打点。
Native位置讲解
需要展示native的位置:
三、移除Native广告
public void Button_RemoveNative()
{
HCSDKManager.Instance.RemoveNative();
}