نمونه کد
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نمونه کد کمپین برنامه ایجاد کنید
از آنجایی که مراحل و گزینه های زیادی در ایجاد یک کمپین برنامه وجود دارد، ما یک نمونه کد ارائه کرده ایم که ایجاد یک کمپین برنامه را از ابتدا تا انتها نشان می دهد. این مثال بر روی نصبهای بیشتر متمرکز است که برای دو منطقه جغرافیایی و زبان خاص هدفگذاری شدهاند. نوع فرعی APP_CAMPAIGN
است، بنابراین AppAdInfo
با سرفصل ها و توضیحات پر شده است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]