广告联盟网

 找回密码
 注册
查看: 543|回复: 7
打印 上一主题 下一主题

推介代码是否可以iframe调用? 是否可以ASP输出代码?

[复制链接]
跳转到指定楼层
1#
发表于 2006-3-4 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有两个问题需要请教:

1. 从论坛上看了,adsense for content 是可以通过Iframe调用的那么推介的代码是否也可以使用iframe调用呢?

2. 请问如果使用iframe调用代码,是否可以使用如下函数输出代码?

Sub ShowContent(ParameterList)
  Dim Parameter
  Parameter = Split(ParameterList, "|")
  Response.Write &quot;<script type=&quot;&quot;text/javascript&quot;&quot;><!--&quot; & VbCrlf
  Response.Write &quot;google_ad_client = &quot;&quot;&quot; & Parameter(0) & &quot;&quot;&quot;;&quot; & VbCrlf
  '是否替换广告
  If Parameter(1) <> &quot;&quot; Then
    Response.Write &quot;google_alternate_ad_url = &quot;&quot;&quot; & Parameter(1) & &quot;&quot;&quot;;&quot; & VbCrlf
  End If
  '是否替换颜色
  If Parameter(2) <> &quot;&quot; And Parameter(1) = &quot;&quot; Then
    Response.Write &quot;google_alternate_color = &quot;&quot;&quot; & Parameter(2) & &quot;&quot;&quot;;&quot; & VbCrlf
  End If
  Response.Write &quot;google_ad_width = &quot; & Parameter(3) & &quot;;&quot; & VbCrlf
  Response.Write &quot;google_ad_height = &quot; & Parameter(4) & &quot;;&quot; & VbCrlf
  Response.Write &quot;google_ad_format = &quot;&quot;&quot; & Parameter(5) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_ad_type = &quot;&quot;&quot; & Parameter(6) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_ad_channel =&quot;&quot;&quot; & Parameter(7) & &quot;&quot;&quot;;&quot; & VbCrlf
  '是否框架式网页代码
  If Parameter(8) = &quot;document.location&quot; Then
    Response.Write &quot;google_page_url = document.location;&quot; & VbCrlf
  End If
  Response.Write &quot;google_color_border = &quot;&quot;&quot; & Parameter(9) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_color_bg = &quot;&quot;&quot; & Parameter(10) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_color_link = &quot;&quot;&quot; & Parameter(11) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_color_url = &quot;&quot;&quot; & Parameter(12) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;google_color_text = &quot;&quot;&quot; & Parameter(13) & &quot;&quot;&quot;;&quot; & VbCrlf
  Response.Write &quot;//--></script>&quot; & VbCrlf
  Response.Write &quot;<script type=&quot;&quot;text/javascript&quot;&quot;&quot; & VbCrlf
  Response.Write &quot;  src=&quot;&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&quot;>&quot; & VbCrlf
  Response.Write &quot;</script>&quot; & VbCrlf
End Sub

比如在需要显示广告的页面使用<iframe src= google_ad.asp></iframe>调用adsense而上述的函数就包含在google_ad.asp中经过自己测试,执行google_ad.asp后输出的代码和google Adsense完全一致不知道这样方法允许么?

主要希望能通过这种方法,根据不同情况显示不同形式的代码以适应页面要求。
2#
发表于 2006-3-4 | 只看该作者
没有看到禁止使用iframe调用推介的规定,所以我想就应该视为允许。
3#
 楼主| 发表于 2006-3-4 | 只看该作者
请问小龙第二个问题能说明一下么?
4#
发表于 2006-3-4 | 只看该作者
对于第二个问题我认为使用的是js而不是asp,这样的问题你还是问Google Adsense比较合适,虽然我认为这样做是没有问题的。
5#
 楼主| 发表于 2006-3-4 | 只看该作者
这个Response.Write 是ASP的页面输出不是JS的document.Write
6#
发表于 2006-3-4 | 只看该作者
原帖由 Xemal 于 2006-3-4 17:49 发表这个Response.Write 是ASP的页面输出不是JS的document.Write
这是不是传说中的SSI?我不是很懂,如果是的话就属于Google Adsense推荐的方式
7#
 楼主| 发表于 2006-3-4 | 只看该作者
多谢小龙了,还是听你的建议先问问google,这样最保险了
有消息给大家汇报
8#
发表于 2006-3-4 | 只看该作者
应该没问题的。
因为输出来就是标准的 HTML代码,GOOGLE应该无法判别是否是由程序生成。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-9-25 , Processed in 0.085210 second(s), 20 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表