Android embedded ad Problems

Source: Internet
Author: User

We can find a variety of advertising providers online. I only used one of them. I did not consider which one gave me more money and which one had better reputation. Now I am still focusing on learning. Embedding advertisements is just an attempt, not the two cents each click. Next, let me talk about some of the problems I encountered during the advertisement embedding process.

I'm using the ADS provided by micro cloud (http://www.wiyun.com/), I feel this operation is relatively simple. Just add a few lines of code.

1. problems such as "Duplicate apk package names" and "software claimed" were reported during the release of anzhi and Fengfeng networks, the main reason for this is that some developers (such as me) prefer to use the same package name for all software. In fact, I think this is not a developer problem, but it is a problem with the method of detecting the software store, the world is big, there are so many programmers, it is hard to ensure that no one or more developers use the same package name as me. However, I can only give feedback to the software store. It is not something I can control whether to adopt or not. If you encounter such problems in the future, you can consider changing the package name.

2. Embedded advertisements cannot be displayed.

A good suggestion is to test whether the advertisement can be displayed normally before the release. Basically, the sdk provided by the Advertising supplier has a test mode. If it cannot be properly displayed, check the room quickly. Do not wait until it is published and you will not be able to display it. This makes mounting and dismounting very troublesome. When I checked my account yesterday, I found that my ads could not be displayed normally. After a long struggle, I found that this sentence has caused the fault "android: orientation =" horizontal "". I don't know if this is the only problem with micro cloud. I have tried it, vertical can be properly displayed.

3. embedded ad location

At first, I thought that the advertisement would find a proper place to settle down. Later I found that this was not the case at all. We decided the location by ourselves. Generally, we set the android: id = "@ + id/ad_container" is added at the beginning and put below. In fact, a good way is to define a LinearLayout by yourself and then put the advertisement specifically, so that we can determine the position of the advertisement, and the flexibility is greater. In addition, I found that using other layout S (such as ScrollView) will cause program crashes. Can I only use LinearLayout?

Finally, let's look at why we need to embed advertisements. Many people are disgusted with advertisements. I am actually, too. But why do I dislike advertisements? Of course, it's not as hard as it is to live. However, the amount of money that developers earn by embedding advertisements is not enough to buy books. Do developers need to live? Lei Feng also needs to survive ......

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.