ชิ้นงานอัตโนมัติ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Google Ads API รองรับชิ้นงานอัตโนมัติ
ที่จัดการโดยตรงโดย
Google Ads โดยมีขอบเขตของ API จำกัดไว้ที่การหยุดชั่วคราวหรือการนำชิ้นงานแต่ละรายการออก และการดึงข้อมูลสถิติ คุณเลือกใช้หรือไม่ใช้ชิ้นงานอัตโนมัติได้ผ่าน
อินเทอร์เฟซเว็บของ Google Ads
การสร้างและการอัปเดต
เมื่อเลือกใช้ฟีเจอร์นี้แล้ว Google Ads จะสร้างชิ้นงานอัตโนมัติดังนี้
- สร้างชิ้นงานแล้ว
- ระบบจะสร้างออบเจ็กต์
CampaignAsset
AdGroupAsset
หรือ
CustomerAsset
เพื่อ
เชื่อมโยงชิ้นงานกับแคมเปญ กลุ่มโฆษณา หรือแหล่งข้อมูลลูกค้า
ตามลำดับ
คุณไม่สามารถสร้างหรืออัปเดตชิ้นงานอัตโนมัติโดยใช้ Google Ads API และไม่สามารถสร้าง
CampaignAsset
AdGroupAsset
หรือ
CustomerAsset
สําหรับชิ้นงานอัตโนมัติโดยใช้
Google Ads API
คุณสามารถหยุดชั่วคราวหรือนำเอนทิตี CampaignAsset
AdGroupAsset
หรือ
CustomerAsset
ที่เชื่อมโยง
ชิ้นงานอัตโนมัติกับแหล่งข้อมูลที่เกี่ยวข้องออกได้
หยุดชั่วคราวหรือนำการเชื่อมโยงออก
การหยุดการเชื่อมโยงชั่วคราวจะปิดใช้ไม่ให้เนื้อหาแสดงต่อเอนทิตีที่เกี่ยวข้องชั่วคราว เมื่อหยุดการเชื่อมโยงชั่วคราว Google Ads จะไม่เปิดใช้ซ้ำหรือแสดงชิ้นงานที่เกี่ยวข้องกับแหล่งข้อมูลนั้นโดยอัตโนมัติจนกว่าจะมีการเปิดใช้ซ้ำผ่านอินเทอร์เฟซเว็บหรือ API หากต้องการปิดใช้
การเชื่อมโยงระหว่างชิ้นงานกับแหล่งข้อมูลอย่างถาวร ให้นำการเชื่อมโยงออก
Google Ads กำหนดขีดจํากัดจํานวนชิ้นงานอัตโนมัติประเภทหนึ่งๆ ที่เชื่อมโยงกับเอนทิตีหนึ่งๆ ได้ เช่น จํานวน
ไซต์ลิงก์อัตโนมัติต่อแคมเปญ การเชื่อมโยงที่หยุดชั่วคราวจะนับรวมในขีดจำกัดนี้ แต่
การเชื่อมโยงที่นำออกจะไม่นับรวม ชิ้นงานอัตโนมัติจะไม่นับรวมในขีดจํากัด
สําหรับชิ้นงานที่เพิ่มด้วยตนเอง
ดึงข้อมูลชิ้นงานอัตโนมัติ
คุณสามารถดึงข้อมูลชิ้นงานอัตโนมัติได้โดยกรองตาม
AssetSource = AUTOMATICALLY_CREATED
สําหรับชิ้นงานที่ลิงก์กับโฆษณาได้ ให้ตรวจสอบ
source
ดูAssetType
เพื่อดูรายการประเภทชิ้นงาน
ที่ลิงก์กับโฆษณาได้
ต่อไปนี้คือตัวอย่างคําค้นหาชิ้นงานในโฆษณา
SELECT
ad_group.name,
ad_group_ad_asset_view.asset,
ad_group_ad_asset_view.ad_group_ad
FROM ad_group_ad_asset_view
WHERE asset.source = 'AUTOMATICALLY_CREATED'
สำหรับชิ้นงานประเภทอื่นๆ ให้ค้นหาทรัพยากร Asset
โดยตรง
SELECT
asset.id,
asset.name
FROM asset
WHERE asset.source = 'AUTOMATICALLY_CREATED'
รายงาน
คุณขอสถิติประสิทธิภาพของชิ้นงานได้จากรายงาน
asset_field_type_view
รายงานนี้
ประกอบด้วยสถิติรวมของชิ้นงานทั้งที่เพิ่มโดยอัตโนมัติและเพิ่มด้วยตนเอง
คุณสามารถดึงสถิติประสิทธิภาพของชิ้นงานแต่ละรายการได้จากรายงาน
campaign_asset
customer_asset
และ
ad_group_asset
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eThe Google Ads API allows you to manage automated assets (created by Google Ads) by pausing, removing, or retrieving their performance data.\u003c/p\u003e\n"],["\u003cp\u003eYou can opt in or out of using automated assets through the Google Ads web interface, but cannot create or update them directly via the API.\u003c/p\u003e\n"],["\u003cp\u003ePausing an automated asset's association with a campaign, ad group, or customer temporarily disables it, while removing the association permanently disables it.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve data for automated assets using specific queries and filters within the Google Ads API.\u003c/p\u003e\n"],["\u003cp\u003ePerformance statistics for automated assets are available through various reporting features within the Google Ads API, including aggregated and individual asset data.\u003c/p\u003e\n"]]],[],null,["# Automated assets\n\nThe Google Ads API supports [automated\nassets](//support.google.com/google-ads/answer/7175034) managed directly by\nGoogle Ads, with the scope of the API limited to pausing or removing individual\nassets and retrieving stats. You opt in or out of automated assets through the\nGoogle Ads web interface.\n\nCreation and update\n-------------------\n\nOnce an account is opted in to this feature, Google Ads creates automated assets as\nfollows:\n\n1. Assets are created.\n2. [`CampaignAsset`](/google-ads/api/reference/rpc/v21/CampaignAsset), [`AdGroupAsset`](/google-ads/api/reference/rpc/v21/AdGroupAsset), or [`CustomerAsset`](/google-ads/api/reference/rpc/v21/CustomerAsset) objects are created to associate the asset with campaign, ad group, or customer resources, respectively.\n\nYou cannot create or update automated assets using the Google Ads API, nor can you\ncreate [`CampaignAsset`](/google-ads/api/reference/rpc/v21/CampaignAsset),\n[`AdGroupAsset`](/google-ads/api/reference/rpc/v21/AdGroupAsset), or\n[`CustomerAsset`](/google-ads/api/reference/rpc/v21/CustomerAsset) for the automated assets using\nthe Google Ads API.\n\nYou can pause or remove [`CampaignAsset`](/google-ads/api/reference/rpc/v21/CampaignAsset),\n[`AdGroupAsset`](/google-ads/api/reference/rpc/v21/AdGroupAsset), or\n[`CustomerAsset`](/google-ads/api/reference/rpc/v21/CustomerAsset) entities that associate the\nautomated asset with the corresponding resource.\n\nPause or remove the association\n-------------------------------\n\nPausing the association disables the asset from serving against the\ncorresponding entity temporarily. Once you pause the association, Google Ads won't\nautomatically re-enable or serve the corresponding asset against that resource\nuntil it is re-enabled through the web interface or API. To disable the\nassociation between asset and resource permanently, remove the association.\n\nGoogle Ads enforces a limit on the number of automated assets of a given type that\ncan be associated with a given entity, for example, the number of automated\nsitelinks per campaign. A paused association counts against this limit, whereas\na removed association doesn't. Automated assets don't count towards the limits\nfor manually added assets.\n\nRetrieve automated assets\n-------------------------\n\nYou can retrieve automated assets data by filtering for\n[`AssetSource = AUTOMATICALLY_CREATED`](/google-ads/api/reference/rpc/v21/AssetSourceEnum.AssetSource#automatically_created).\nFor assets that can link to ads, check its\n[`source`](/google-ads/api/reference/rpc/v21/AdGroupAdAssetView#source). Refer to\n[`AssetType`](/google-ads/api/reference/rpc/v21/AssetTypeEnum.AssetType) for a list of asset types\nthat can be linked to ads.\n\nHere is a sample query for assets in an ad: \n\n SELECT\n ad_group.name,\n ad_group_ad_asset_view.asset,\n ad_group_ad_asset_view.ad_group_ad\n FROM ad_group_ad_asset_view\n WHERE asset.source = 'AUTOMATICALLY_CREATED'\n\nFor other types of assets, query the [`Asset`](/google-ads/api/reference/rpc/v21/Asset) resource\ndirectly: \n\n SELECT\n asset.id,\n asset.name\n FROM asset\n WHERE asset.source = 'AUTOMATICALLY_CREATED'\n\nReports\n-------\n\nAsset performance statistics can be requested from the\n[`asset_field_type_view`](/google-ads/api/fields/v21/asset_field_type_view) report. This report\nincludes the aggregated stats for both automated and manually added assets.\n\nPerformance stats for individual assets can be retrieved from the\n[`campaign_asset`](/google-ads/api/fields/v21/campaign_asset),\n[`customer_asset`](/google-ads/api/fields/v21/customer_asset), and\n[`ad_group_asset`](/google-ads/api/fields/v21/ad_group_asset) reports."]]