Search Ads 360 Reporting API เวอร์ชันใหม่พร้อมให้ใช้งานแล้ว เข้าร่วมกลุ่ม Google
searchads-api-announcements เพื่อติดตามการปรับปรุงและรุ่นที่กำลังจะเปิดตัว
การดึงแอตทริบิวต์และเมตริกของเนื้อหา
แอตทริบิวต์เนื้อหา
คุณดูรายการชิ้นงานและแอตทริบิวต์ของชิ้นงานได้โดยส่งคําค้นหาภาษาคําค้นหาของ Search Ads 360 ไปยัง SearchAds360Service
เนื้อหาจะแสดงโดยเอนทิตี asset
ซึ่งแสดงช่องเฉพาะเนื้อหาจำนวนหนึ่ง
คําค้นหาต่อไปนี้จะแสดงรายการชิ้นงานทั้งหมดในบัญชีของผู้ลงโฆษณา พร้อมกับชื่อและประเภททรัพยากร
SELECT
asset.id,
asset.name,
asset.resource_name,
asset.type
FROM asset
โปรดทราบว่ามีแอตทริบิวต์เฉพาะประเภทที่คุณสามารถเพิ่มลงในข้อความค้นหาข้างต้นเพื่ออ่านพร็อพเพอร์ตี้เฉพาะของชิ้นงาน เช่น SitelinkAsset
หรือ MobileAppAsset
ตัวอย่างเช่น คําค้นหาต่อไปนี้จะแสดงรหัสแอปบนอุปกรณ์เคลื่อนที่สําหรับออบเจ็กต์ MobileAppAsset
ทั้งหมดในบัญชีโดยกรองค่า asset.type
สําหรับ MobileAppAsset
SELECT
asset.id,
asset.name,
asset.resource_name,
asset.mobile_app_asset.app_store
FROM asset
WHERE asset.type = 'MOBILE_APP'
เมตริกชิ้นงาน
เมตริกชิ้นงานจะพร้อมใช้งานผ่านแหล่งข้อมูลต่อไปนี้
ทรัพยากรเหล่านี้ช่วยให้คุณค้นหาเมตริกเนื้อหาในแต่ละระดับที่เกี่ยวข้องได้
ตัวอย่างเช่น เมื่อค้นหาแหล่งข้อมูล ad_group_asset
คุณสามารถใช้ช่อง ad_group.id
เพื่อแบ่งกลุ่มผลลัพธ์ ซึ่งจะดึงข้อมูลเมตริกสําหรับชุดค่าผสม ad_group
และ asset
ที่ไม่ซ้ำกันแต่ละชุดดังนี้
SELECT
ad_group.id,
asset.id,
metrics.clicks,
metrics.impressions
FROM ad_group_asset
WHERE segments.date DURING LAST_MONTH
ORDER BY metrics.impressions DESC
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-23 UTC
[null,null,["อัปเดตล่าสุด 2024-11-23 UTC"],[[["Retrieve a list of assets and their attributes, including resource name and type, using Search Ads 360 Query Language."],["Access type-specific attributes, such as mobile app IDs, by filtering the `asset.type` value in your query."],["Query asset metrics at the ad group, campaign, or customer level through respective resources like `ad_group_asset`, `campaign_asset`, and `customer_asset`."],["Segment asset metric results by fields like `ad_group.id` to analyze performance for specific combinations of assets and ad groups, campaigns, or customers."]]],["Assets and their attributes can be retrieved by sending a Search Ads 360 Query Language query to the SearchAds360Service, using the `asset` entity. Type-specific attributes can be added to queries. Asset metrics are available through `ad_group_asset`, `campaign_asset`, and `customer_asset` resources, enabling queries at various levels. For example, metrics can be retrieved for each unique combination of `ad_group` and `asset` using `ad_group_asset` resource.\n"]]