简体   繁体   English

iAd和Admob集成国家/地区已添加到App Store

[英]iAd and Admob integration countries added to App Store

I am creating an app that requests iAds and uses Admob in cases where no iAd is received. 我正在创建一个请求iAds的应用,并在没有收到iAd的情况下使用Admob。

I have free and paid versions and use preprocessor macros to differentiate between these versions. 我有免费和付费版本,并使用预处理器宏来区分这些版本。

There are 2 possible scenarios: 有两种可能的情况:

  1. Country supports iAds and Admob (Use iAds code and revert to Admob where no iAd is received) 国家/地区支持iAd和Admob(使用iAds代码并恢复到没有收到iAd的Admob)
  2. Country supports Admob only (Use Admob code only) 国家/地区仅支持Admob(仅限使用Admob代码)

I understand how to deal with these scenarios (using preprocessor macros). 我理解如何处理这些场景(使用预处理器宏)。 However, if a country that is currently not supported by iAds is then added to the list of supported countries, is there any easy way to move them on to use iAds? 但是,如果当前不支持iAds的国家/地区被添加到受支持的国家/地区列表中,是否有任何简单的方法可以将其移至使用iAd?

I understand from reading Apple documentation that they do not want developers to request iAds for countries where iAds are unsupported. 我从阅读Apple文档中了解到,他们不希望开发人员为不支持iAd的国家/地区请求iAd。

My plan is to create 2 free versions (1 for each of the scenarios above). 我的计划是创建2个免费版本(上述每个场景都有1个版本)。 However, I'm not sure how to move a country from scenario 2 to scenario 1. Is there a better way to do this? 但是,我不确定如何将一个国家从方案2转移到方案1.有没有更好的方法来做到这一点?

Have you considered using an ad mediation solution, such as AdMob Mediation ? 您是否考虑过使用广告中介解决方案,例如AdMob Mediation You get the following benefits: 您将获得以下好处:

  1. You don't have to write up the mediation fallback logic in your own code. 您不必在自己的代码中编写中介回退逻辑。
  2. Server-side traffic allocation - it's simple to move traffic from one network to another without having to re-release your app. 服务器端流量分配 - 无需重新发布应用即可将流量从一个网络移动到另一个网络。
  3. Country-level targeting. 国家/地区定位。 No need for two free versions. 不需要两个免费版本。 Just set up your trafficking to a default allocation that serves only AdMob, and set up country level targeting (which will override the default targeting) to serve up iAd first, and then AdMob if iAd fails. 只需将广告投放管理设置为仅投放AdMob的默认分配,然后设置国家/地区级定位(将覆盖默认定位)以首先提供iAd,然后在iAd失败时设置AdMob。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM