Hello, I am having problems with ads google + scriptmanager. I would
like the google ads to appear in an asp: panel ... Someone knows how to
do?
I tried the code below, but not satisfied ...
string scriptsAds;
scriptsAds = " <script type=\"text/javascript\">";
scriptsAds = " google_ad_client = \"pub-5171562616796034\";";
scriptsAds += "google_ad_width = 728;";
scriptsAds += "google_ad_height = 90;";
scriptsAds += "google_ad_format = \"728x90_as\";";
scriptsAds += "google_cpa_choice = \"CAEaCKx8D4vNnKGYUEdQrgFQBVANUAg\";";
scriptsAds += "</script>";
//scriptsAds += "<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">"; ;
scriptsAds += "<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
ScriptManager.RegisterClientScriptBlock(this.FindControl("MyPanel"), this.GetType(), "AdsGoogle", scriptsAds, true);