preface

It is almost a year since I wrote a small program, and 2019 is about to Say goodbye. I could not help opening the wechat developer tool again, looking at those familiar and unfamiliar codes, I thought about it again and again, as if I went back to the days when I was writing small programs in full swing, and compiled and previewed the small programs I had done. Lucky to be able to run! Open my mini program background, to my surprise, the cumulative number of visitors is close to 5000:

Because the job is busy, spare time careless management, can have this number is also very good! See other people’s public account will insert some small ads and so on, so I decided to try to give my small program to add advertising components.

1. Apply to be the traffic master

Low threshold of application traffic master, only need cumulative unique visitors (UV) not less than 1000 and no serious violation record.

If the conditions are met, click open to improve personal information, including ID cards, accounts and so on.

2. Create AD space

  • The following is the advertising space I have created. In fact, the most important part is the ID of the advertising space. After creating it, click to get the code and paste it into your own small program
  • Of course, you can continue to create advertising space, select the type of advertising, and note the name of the advertising space:

3. Add the AD component code

After creation, click “Get Code” button and the following popup window will appear:

No code, just add a component, but look at the development documentation, okay

Banner ads: developers.weixin.qq.com/miniprogram… Incentive video advertising: developers.weixin.qq.com/miniprogram… Plaque advertising: developers.weixin.qq.com/miniprogram… Small program video advertising: developers.weixin.qq.com/miniprogram… Video posted before advertising: developers.weixin.qq.com/miniprogram… For common problems and error codes, see the corresponding documents

###4, my little program

  • GitHub address: github.com/ChessLuo/Bl…

  • Small program code:

Let’s go ^ 0 ^ ~

Support my words can pay attention to my public number, learn Android, small program, cross-platform development ~