开发者

Settings Admob Parameters- Android

开发者 https://www.devze.com 2023-02-28 16:00 出处:网络
I\'ve set Admob in my android app,and I notice开发者_StackOverflowd the option of sending a request with parameters(like gender and birthday)

I've set Admob in my android app,and I notice开发者_StackOverflowd the option of sending a request with parameters(like gender and birthday) How do I set those?

Also, how can I set key words?

Does it even help? Did anyone see changes in their profitis/ads contents after setting parameters?

I can't find any information about this subject anywhere.

Thanks


Except for the Location info, I haven't seen any improvement by setting those parameters. Rather, users tend to be afraid and uninstall the app.

In the case of your specific question for Gender, there's an enum AdManager.GENDER with the MALE and FEMALE values.

You should use AdRequest instead of AdManager in the new SDK version, but the idea is the same. From http://code.google.com/mobile/ads/docs/android/intermediate.html#targeting :

AdRequest request = new AdRequest();

request.setGender(AdRequest.Gender.FEMALE);
request.setLocation(location);
request.setBirthday("20000101");


This is updated code for using latest AdMob in android.

AdRequest request = new AdRequest.Builder()
    .setLocation(location)
    .setGender(AdRequest.GENDER_FEMALE)
    .setBirthday(new GregorianCalendar(1985, 1, 1).getTime())
    .tagForChildDirectedTreatment(true)
    .build();
adView.loadAd(request);

From https://developers.google.com/admob/android/targeting#loading_an_ad_with_targeting

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号