Native
Native advertising is based on the user's own business layout and functions to build the layout, and then fill and display the advertising content in accordance with the native advertising rules so that the advertising and application style and elements can be adapted to achieve a seamless effect.
The current guide function shows how to use native ad controls and the rules and usage of related supporting templates.
Before you begin
You should finish the step of the Guide first.
Add the View in Layout
In the user layout, add a native advertising view and internal display controls, and the current components use basic TextView
, ImageView
and Video
controls.
app: united - current ad slot id, which is currently configured for native ad slots, users can fill in the XML page or set it after the interface controls are initialized, refer to the following.
If the ad slot configuration is not completed in the XML or code, it will cause the ad to fail to load and affect the display effect of the ad
Full example
Ok, so far, the native ad has been added. After executing the load ad loading method, the ad will be automatically filled into the control, so that the control can adapt to the theme and style of the application.
Remark
Currently, native ads only support three elements: text, image, and video by default.
Last updated