ตัวอย่างโค้ด
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวอย่างโค้ด App Campaign
เนื่องจากการสร้าง App Campaign มีหลายขั้นตอนและตัวเลือก
เราจึงมีตัวอย่างโค้ดที่
แสดงให้เห็นการสร้าง App Campaign ตั้งแต่ต้นจนจบ ตัวอย่างนี้
มุ่งเน้นที่การเพิ่มยอดการติดตั้ง โดยกำหนดเป้าหมายไปยังภูมิศาสตร์และ
ภาษาที่เฉพาะเจาะจง 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."]]