0

私は現在音楽アプリケーションを持っており、アプリの広告ウォールにリードボルトを広告しようとしていますが、これについては何の助けにもなりません。彼らが入れるのは

LeadBolt アプリ ウォールを表示するアプリの Web ビューまたはモバイル Web ページの iframe にこのリンクを配置します。

http://ad.leadboltads.net/show_app_wall?section_id=97 * *

プログラミングに関しては初心者です

私は質問し、何時間も調査しましたが、解決策を見つけることができませんでした。

私が実際に行っているのは、そのアドレスを呼び出すiframeを備えたWebブラウザーを備えた単純な時間指定のポップアップであり、閉じられるまで広告を実行し、x時間後に再びポップアップします。これがこれを解決する最良の方法ですかまたは別の方法があります

失礼なことを言うつもりはありませんが、私が初心者だと言ったように、前もって感謝しているので、誰が答えるか、詳細に答えることができます

編集*

私はちょうどそこのサイトでこれを見つけました XAMLファイルに次の行を追加します webview height="50" width="320" x:name="webview">

次に、xaml.cs ファイルに次のコードを追加して、HTML バナーまたは HTML アプリ ウォール webview.NavigateToString("http://ad.leadboltads.net/show_app_ad.js?section_id=xxxxxxxxx\">");

// App Wall の場合、次のコードを使用します。 // webview.Navigate(new Uri(" http://ad.leadboltads.net/show_app_wall?section_id=xxxxxxxx "));

私の新しい質問は、ユーザーがそれを閉じるまで、他の何よりも頻繁に表示する方法です

4

1 に答える 1

0

質問を投稿していただきありがとうございます。LeadBolt の技術チームは、次のような提案を提供しました。

さらにサポートが必要な場合は、アカウント マネージャーに直接お問い合わせいただくか、サポート チームにメールでお問い合わせください。

To Add a simple auto-refreshing HTML Banner:

1.       In your xaml file, add a WebView object like so: <WebView x:Name="banner"     Width="320" Height="50" />
2.       Add the following code in your xaml.cs file. Please note this is just a sample code, please modify the class and method names as suited to your App’s xaml.cs file:

namespace HTMLAdDemo
{
            public sealed partial class MainPage : Page
            {
                            private DispatcherTimer timer = new DispatcherTimer();
                            String bannerHtml = “&lt;html><body style=\”margin:0;padding:0\”&gt;<script type=\"text/javascript\" src=\"http://ad.leadboltads.net/show_app_ad.js?section_id=YOUR_LB_SECTION_ID\"></script></body></html>”;

                            public MainPage()
{
            this.InitializeComponent();
            banner.NavigateToString(bannerHtml);

                                            // now setup timer to refresh banner every 30s
                                            timer.Tick += (sender, e) => { bannerWebview.NavigateToString(bannerHtml); };
                                            timer.Interval = new TimeSpan(00, 0, 30); //change this number to modify the refresh time
timer.Start();
}
                            // Your other App Specific functions here
            }
}

閉じるボタンのある App Wall を追加するには。注: これは単なるサンプル コードです。実際の実装は、アプリの要件に合わせてアプリによって異なる場合があります (つまり、アプリの要件に基づいて、色、テキスト、およびスタイルを変更する必要があります)。

1.       In your xaml file, add the following objects:


<WebView x:Name="appWall" Width="400" Height="300" />
<Button x:Name="closeButton" Width="400" Height="40" Content="Close"     HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="Button_Click"/>

2.       Add the following code in your xaml.cs file. Please note this is just a sample     code, please modify the class and method names as suited to your App’s xaml.cs file

namespace HTMLAdDemo
{
            public sealed partial class MainPage : Page
            {
                            public MainPage()
{
            this.InitializeComponent();

            appWall.Navigate(new Uri("http://ad.leadboltads.net/show_app_wall?section_id=YOUR_LB_SECTION_ID"));

}

private void Button_Click(object sender, RoutedEventArgs e)
{
        appWall.Visibility = Visibility.Collapsed;
        closeButton.Visibility = Visibility.Collapsed;
}

                            // Your other App Specific functions here
                }
}

敬具、

リードボルトのサポート

于 2013-11-14T06:34:26.347 に答える