iPhone-是否可以直接与iAd服务器通信? [英] iPhone - Is it possible to communicate with the iAd server directly?

查看:71
本文介绍了iPhone-是否可以直接与iAd服务器通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不认为这是可能的,但是客户认为这是可能的.

I dont this this is possible but the client seams to think it is..

他们希望服务器与iAd服务器进行通信,然后将一些信息发送到App,以告知要加载的广告.

They want their server to communicate with the iAd server then send some information to the App to tell it what advert to load.

我的理解是,只有私有ADBannerView类可以与iAd服务器通信,这是正确的还是可以通过服务器与之集成?

My understanding is that only the private ADBannerView class can communicate with the iAd server, is this correct or is there potential to integrate with it via a server?

推荐答案

我也有一个客户要求这样做,我认为他们误解了iAd的作用.

I had a client request this as well, I think they misunderstand the role of iAds.

在我的方案中,事实证明他们想投放自己的广告(他们采购的,不一定是针对其产品的),因此您可能要考虑使用一种方案,其中服务器上有一些文件包含信息例如"imageurl","image2xurl","linkurl",然后将您的应用设置为在其中查找,如果文件中的某些值为是"(某些Bool开关为开/关),则使用这些规范构建一个UIButton,并采用以下方法链接.它没有iAd框架(除非您的客户将其覆盖在图片上,但出于多种原因,我建议您不要这样做)

In my scenario it turned out that they wanted to serve their own ads (that they'd sourced, not necessarily for their product), so you might want to consider using a scenario where you have some file on their server with information like "imageurl" "image2xurl" "linkurl" and set up your app to look there, and if some value in the file is yes (some on/off Bool), then build a UIButton with those specs, with a method that will follow the link. It won't have the iAd frame (unless your client overlays that onto the images, but I'd suggest against that for a number of reasons)

这篇关于iPhone-是否可以直接与iAd服务器通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆