ads

How to detect loading state of a Google Doubleclick for Publishers DFP Ad?

↘锁芯ラ 提交于 2019-12-24 09:48:27
问题 We have a series of DFP ads on a page that get refreshed automatically using the javascript refresh() call each time a user clicks each thumbnail icon on a gallery viewer: googletag.pubads().refresh(); The problem is that if a user clicks through the gallery quickly, the ads keep refreshing for every click so that eventually blank ads can occur as the system is unable to keep up with the user clicks. Hence I'd like to only call refresh only if the ad has completely finished loading. Is there

How to refresh iAd and specify keyword manually?

一曲冷凌霜 提交于 2019-12-24 08:18:54
问题 I successfully integrated iAd into my iPhone app. However, I can't find a way to refresh the ad manually. I couldn't find a way to specify keywords for the ad either. How does iAd work after all? Does it just show some ads randomly? 回答1: iAd is totally controlled by Apple based on keywords, the app type and exclusions that you set when you release or modify the app on Itunes Connect. The ads are served only when you release it via ITunes Connect. 来源: https://stackoverflow.com/questions

How to display banners in live wallpaper preview?

半世苍凉 提交于 2019-12-24 06:51:16
问题 I am working on a live wallpaper and I need to display a banner on top of the preview screen. I have tried several solutions, but none seems to work. I found a similar question here but I think the solution that was proposed there was more to display banners in the settings screen. The toolkit I am using (which seems to be a wrapper of AdMob) has been built for standard android applications (not live wallpapers), and it needs an activity to be able to display the banner. So my questions is:

Null Pointer Exception when referencing main layout

余生颓废 提交于 2019-12-24 06:14:19
问题 I want this relative layout to eventually load an ad at the bottom. public class Main extends Activity { RelativeLayout mLayout; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mLayout = (RelativeLayout) findViewById(R.layout.main); ImageView View = new ImageView(this, null); //example view mLayout.addView(View); Then the Null Pointer occurs below when mLayout is called RelativeLayout.LayoutParams rparams =

admob only sends test ad not real ads

余生颓废 提交于 2019-12-24 03:44:06
问题 I followed instructions on https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start I changed the test code in strings.xml to real code. But the app is still showing test ads.(I have not posted the app on play store) It appears in emulator like this https://drive.google.com/file/d/0B6InEecSXedCNmM4eUVrTzVGaFU/view?usp=sharing Here is activity_main.xml code android:layout_alignRight="@+id/adView" android:layout_alignEnd="@+id/adView" /> <com.google.android.gms.ads.AdView

Greystripe ads with MonoTouch?

限于喜欢 提交于 2019-12-24 03:03:59
问题 Has anybody integrated greystripe ads into their app built with MonoTouch? If so whats the best way to go about it? Greystripe provides and SDK and guide, but it deals with objective-c and editing in xcode. 回答1: Just to let know anyone who finds this questiom You can find MonoTouch Greystrpe Bindings here 回答2: You an use btouch to create the MonoTouch bindings to the ObjC SDK From http://docs.xamarin.com/ios/advanced_topics/binding_objective-c_types The new btouch tool for MonoTouch (and bmac

iOS app's Documents and Data becomes huge

余生颓废 提交于 2019-12-24 02:18:25
问题 I'm using admob mediation for ads on my applications. Normally my app's size is 40 mb, but my app's documents and data becomes 300+ mb. I've noticed that my app's document and data becomes huge after using it regularly. I've made some investigation and I've recovered my app's documents and data (.xcappdata) using xcode. I've noticed that in AppData/Library/Preferences, there were duplicates files of my app default preferences. Some file named such as com.xxx.myappID.plist.ZHxFTUd. In order to

Programmatically turn off Google AdMob Ads (iOS)

依然范特西╮ 提交于 2019-12-24 00:34:30
问题 I am using Google AdMob for iOS: Google AdMob I was wondering whether I'm able to turn off these ads programmatically so they stop displaying. After reading through the SDK I can't see anywhere to toggle the ads on or off. EDIT: This is how I load the Google AdMob code: MainViewController.m - (void) viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. // Create a view of the standard size at the bottom of the screen. // Available AdSize constants

should I make Different id for each banner and Interstitial Ad in Admob

。_饼干妹妹 提交于 2019-12-24 00:34:13
问题 I have multiple activities in my application and so i have multiple banners and interstitial Ads, ** so should I keep **a single publisherID for all the banners and interstitial ads or should I make a different publisher ID for each ad in the application ? 回答1: In the new Admob dashboard publisherId relates to you (your account) and AdUnitId relates to ad spots that you want filled. I'll out my answer in terms of the new dashboard. NB As of Jan-2014 I think the dashboard has been rolled out

Adwhirl for iPad

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:08:08
问题 I'm trying to integrate adWhirl into my iPad app, but I it's doesn't seem to work. It seems like lot's of people encountered the same issue, but I couldn't find a remedy. I tried to stretch the adView to fit the iPad screen, but the ad remains iPhone sized. Is there a known solution to this problem ? 回答1: This requires that you change each adapter that you would like to use. I have written up a tutorial on how to do this with admob, iad, greystripe, and mdotm. Take a look at it here: http:/