Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
06/06/12 05:11 PM (13 years ago)

Adding Leadbolt HTML ads to Android apps

There is a thread sort of about my question here: http://www.buzztouch.com/forum/thread.php?tid=29A374FED79C308F406140D&command=isSearching&currentPage=1&topicTitle=leadbolt&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= But, this thread is really specific to Buzztouch V1.4 I am using Buzztouch 2.0, and using Leadbolt HTML ads. The code is pretty simple, you paste into your custom HTML page this code: <script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=XXXXXXXXX"></script> XXXXXXXXX is your specific app ID number within Leadbolt. The problem is, when pasted into a HTML/Text page, the ad shows up perfectly, and looks great. However, when you click the ad, it says" Something's not right Error loading screen? The application had trouble understanding what to display It tries to go to a URL when you click it, but that's where it ends up. It's supposed to take you to the Google Play store. The workaround that raveyd found in Buzztouch 1.4 is this, but it doesn't work in 2.0 I don't think. Any ideas?? (raveyd's solution for Buzztouch 1.4 apps here): In Act_ActivityBase.java in the 'showCustomURL' section, add this: //url contains market:// if(jsonString.contains("market://")){ useMyIntent = 0; } below the soundcloud bit, around line 170. That'll open a market url in the marketplace (google play) app. Example used: market://details?id=com.example.admob.lunarlander
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/07/12 12:45 PM (13 years ago)
I think I found the problem, but I think the problem is within Leadbolt. I think the problem is, when you try to go to the link that opens when you click an ad with your Android (I didn't do it, I watched as someone else did) it gives you that Error message about not knowing what to do. The screen behind the error message is this: market://details? id=com.webprancer.google.garfieldDefense&referrer=clk_id%3D21-XXXXXX You get an error because the phone doesn't know what to do. I think this is because there is a space between the ? id. If the link looked like this, I think it would work: market://details?id=com.webprancer.google.garfieldDefense&referrer=clk_id%3D21-XXXXXX I sent an email to the Leadbolt tech support team to see what they say. What do you think?? To my knowledge, this happens EVERY TIME someone clicks an ad in my Android app.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.