This topic is locked
[SOLVED]

  How to add Google AdWords code?

4/23/2010 9:39:39 PM
PHPRunner General questions
author

Hello,
I tried to add Google AdWords code to a test app I am developing. I first added it to the header, and then added it to the List page. In both cases the Google Ads did not display.
Can someone share the technique for adding Google AdWords to a page?
Thanks in advance.

Sergey Kornilov admin 4/26/2010

You should be able to add Adwords code to header/footer or to any specific page in Visual Editor. You'll need to switch to HTML mode in order to do so.

5900 5/10/2010

Thanks. That worked.
I also tried entering it on the JavaScript OnLoad event, and it consistently generates a "Syntax error on line 1" message for this code:
<script type="text/javascript"><!--

google_ad_client = "pub-xxxxxxx";

/ 468x60, created 5/10/10 /

google_ad_slot = "xxxxxxxxxx";

google_ad_width = 468;

google_ad_height = 60;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">;

</script>



You should be able to add Adwords code to header/footer or to any specific page in Visual Editor. You'll need to switch to HTML mode in order to do so.

Sergey Kornilov admin 5/11/2010

You can only insert pure Javascript code there without <script type="text/javascript"> tags.
If you need to refer to external javascript file you better insert it into header/footer files.

5900 5/11/2010

great, got it.
thanks



You can only insert pure Javascript code there without <script type="text/javascript"> tags.
If you need to refer to external javascript file you better insert it into header/footer files.

S
siro 5/18/2010

Can you show me google code