サンプルコード
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アプリ キャンペーンの作成コードの例
アプリ キャンペーンの作成には多くの手順とオプションがあるため、アプリ キャンペーンの作成の最初から最後までを示すコードサンプルを用意しました。この例では、2 つの特定の地域と言語をターゲットとして、インストール数の増加に重点を置いています。サブタイプは APP_CAMPAIGN
であるため、AppAdInfo
に広告見出しと説明文が入力されます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-27 UTC。
[null,null,["最終更新日 2025-08-27 UTC。"],[[["\u003cp\u003eThis page provides a code example demonstrating the complete process of creating an app campaign within Google Ads.\u003c/p\u003e\n"],["\u003cp\u003eThe example focuses on an app install campaign, targeting specific geographic locations and languages for increased installs.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes \u003ccode\u003eAPP_CAMPAIGN\u003c/code\u003e subtype and \u003ccode\u003eAppAdInfo\u003c/code\u003e to include headlines and descriptions for the app ads.\u003c/p\u003e\n"]]],[],null,["# Code example\n\nCreate app campaign code example\n--------------------------------\n\nSince there are many steps and options involved in creating an app campaign,\nwe have provided a [code example](/google-ads/api/samples/add-app-campaign) that\nillustrates the creation of an app campaign from beginning to end. This example\nfocuses on getting more installs, targeted to two specific geographies and\nlanguages. The sub type is `APP_CAMPAIGN` so [`AppAdInfo`](/google-ads/api/reference/rpc/v21/AppAdInfo)\nis populated with headlines and descriptions."]]