แค็ตตาล็อกและคุณภาพของสัญญาณ

เรามี 2 ตัวเลือกในการรับความเห็นเกี่ยวกับคุณภาพและประสิทธิภาพขององค์ประกอบสำหรับโฆษณาแค็ตตาล็อก Advantage+ ต่างๆ ของคุณ ดังนี้

ความคิดเห็นเกี่ยวกับพิกเซลและเหตุการณ์ในแอพสำหรับแค็ตตาล็อก

หากต้องการระบุประเด็นปัญหาเกี่ยวกับพิกเซลหรือการติดตั้งแอพ คุณสามารถตรวจสอบสถิติรวมเกี่ยวกับเหตุการณ์ที่ตรงและไม่ตรงกันที่ได้รับจากพิกเซล แอพ และอุปกรณ์ที่แตกต่างกัน

สืบค้น API เหตุการณ์เพื่อรับข้อมูลสถิติเกี่ยวกับเหตุการณ์ที่เกิดจากแหล่งเหตุการณ์ที่ลิงก์ไปที่แค็ตตาล็อกของคุณ โปรดดูรายละเอียดที่ API เหตุการณ์ในข้อมูลอ้างอิง

สถิติของเหตุการณ์

คุณสามารถรับข้อมูลนี้ได้ที่ระดับแค็ตตาล็อก

curl -X GET \ -d 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v19.0/<PRODUCT_CATALOG_ID>/event_stats
'use strict'; const bizSdk = require('facebook-nodejs-business-sdk'); const ProductCatalog = bizSdk.ProductCatalog; const ProductEventStat = bizSdk.ProductEventStat; const access_token = '<ACCESS_TOKEN>'; const app_secret = '<APP_SECRET>'; const app_id = '<APP_ID>'; const id = '<PRODUCT_CATALOG_ID>'; const api = bizSdk.FacebookAdsApi.init(access_token); const showDebugingInfo = true; // Setting this to true shows more debugging info. if (showDebugingInfo) { api.setDebug(true); } const logApiCallResult = (apiCallName, data) => { console.log(apiCallName); if (showDebugingInfo) { console.log('Data:' + JSON.stringify(data)); } }; let fields, params; fields = [ ]; params = { }; const event_statss = (new ProductCatalog(id)).getEventStats( fields, params ); logApiCallResult('event_statss api call complete.', event_statss);
require __DIR__ . '/vendor/autoload.php'; use FacebookAds\Object\ProductCatalog; use FacebookAds\Object\ProductEventStat; use FacebookAds\Api; use FacebookAds\Logger\CurlLogger; $access_token = '<ACCESS_TOKEN>'; $app_secret = '<APP_SECRET>'; $app_id = '<APP_ID>'; $id = '<PRODUCT_CATALOG_ID>'; $api = Api::init($app_id, $app_secret, $access_token); $api->setLogger(new CurlLogger()); $fields = array( ); $params = array( ); echo json_encode((new ProductCatalog($id))->getEventStats( $fields, $params )->getResponse()->getContent(), JSON_PRETTY_PRINT);
from facebook_business.adobjects.productcatalog import ProductCatalog from facebook_business.adobjects.producteventstat import ProductEventStat from facebook_business.api import FacebookAdsApi access_token = '<ACCESS_TOKEN>' app_secret = '<APP_SECRET>' app_id = '<APP_ID>' id = '<PRODUCT_CATALOG_ID>' FacebookAdsApi.init(access_token=access_token) fields = [ ] params = { } print ProductCatalog(id).get_event_stats( fields=fields, params=params, )
import com.facebook.ads.sdk.*; import java.io.File; import java.util.Arrays; public class SAMPLE_CODE_EXAMPLE { public static void main (String args[]) throws APIException { String access_token = \"<ACCESS_TOKEN>\"; String app_secret = \"<APP_SECRET>\"; String app_id = \"<APP_ID>\"; String id = \"<PRODUCT_CATALOG_ID>\"; APIContext context = new APIContext(access_token).enableDebug(true); new ProductCatalog(id, context).getEventStats() .execute(); } }
require 'facebook_ads' access_token = '<ACCESS_TOKEN>' app_secret = '<APP_SECRET>' app_id = '<APP_ID>' id = '<PRODUCT_CATALOG_ID>' FacebookAds.configure do |config| config.access_token = access_token config.app_secret = app_secret end product_catalog = FacebookAds::ProductCatalog.get(id) event_statss = product_catalog.event_stats({ fields: { }, })

วิธีนี้จะส่งคืนอาร์เรย์ขององค์ประกอบต่างๆ 1 อาร์เรย์ต่อประเภทเหตุการณ์ แหล่งข้อมูล และวันที่ในเดือนที่ผ่านมา

{
  "data": [
    {
      "date_start": "2017-03-16",
      "date_stop": "2017-03-16",
      "event": "AddToCart",
      "event_source": {
        "id": "<PIXEL_ID>",
        "source_type": "PIXEL"
      },
      "total_matched_content_ids": 1086,
      "total_content_ids_matched_other_catalogs": 10024,
      "total_unmatched_content_ids": 13024,
      "unique_matched_content_ids": 285,
      "unique_content_ids_matched_other_catalogs": 102,
      "unique_unmatched_content_ids": 2132
    },
    {
      "date_start": "2017-03-16",
      "date_stop": "2017-03-16",
      "event": "ViewContent",
      "event_source": {
        "id": "<APP_ID>",
        "source_type": "APP"
      },
      "total_matched_content_ids": 1007,
      "total_content_ids_matched_other_catalogs": 504,
      "total_unmatched_content_ids": 20206,
      "unique_matched_content_ids": 507,
      "unique_content_ids_matched_other_catalogs": 402,
      "unique_unmatched_content_ids": 8037
    },
    ...
  ]
}

ช่องที่ส่งคืนสำหรับประเภทเหตุการณ์ แหล่งที่มา และวันที่แต่ละรายการมีดังนี้

จำนวน คำอธิบาย

total_matched_content_ids

จำนวนรวมของ ID เนื้อหาจากเหตุการณ์ที่ได้รับซึ่งตรงกับรายการในแค็ตตาล็อก จำนวนนี้ไม่ได้ลบ ID เนื้อหาที่ซ้ำกันออกไป

total_content_ids_matched_other_catalogs

จำนวนรวมของ ID เนื้อหาจากเหตุการณ์ที่ได้รับซึ่งตรงกับรายการในแค็ตตาล็อกอื่นที่เชื่อมโยงกับพิกเซลหรือแอพนั้นๆ จำนวนนี้ไม่ได้ลบ ID เนื้อหาที่ซ้ำกันออกไป

total_unmatched_content_ids

จำนวนรวมของ ID เนื้อหาจากเหตุการณ์ที่ได้รับซึ่งไม่ตรงกับรายการในแค็ตตาล็อก จำนวนนี้ไม่ได้ลบ ID เนื้อหาที่ซ้ำกันออกไป

unique_matched_content_ids

จำนวนของ ID เนื้อหาที่ไม่ซ้ำกันจากเหตุการณ์ที่ได้รับซึ่งตรงกับรายการในแค็ตตาล็อก

unique_content_ids_matched_other_catalogs

จำนวนของ ID เนื้อหาที่ไม่ซ้ำกันจากเหตุการณ์ที่ได้รับซึ่งตรงกับรายการในแค็ตตาล็อกอื่นที่เชื่อมโยงกับพิกเซลหรือแอพที่แสดงเหตุการณ์

unique_unmatched_content_ids

จำนวนของ ID เนื้อหาที่ไม่ซ้ำกันจากเหตุการณ์ที่ได้รับซึ่งไม่ตรงกับรายการในแค็ตตาล็อก

ข้อมูลแยกย่อยประเภทอุปกรณ์

แยกย่อยผลลัพธ์โดยการส่ง device_type:

use FacebookAds\Api;
use FacebookAds\Http\RequestInterface;

$data = Api::instance()->call(
  '/' . <CATALOG_ID> . '/event_stats',
  RequestInterface::METHOD_GET,
  array(
    'breakdowns' => array('device_type'),
  ))->getContent();
curl -G \
  -d 'breakdowns=["device_type"]' \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.11/<CATALOG_ID>/event_stats

วิธีนี้จะส่งคืนผลลัพธ์ที่จัดกลุ่มตามอุปกรณ์ที่เกิดผลลัพธ์นั้น ยกตัวอย่างเช่น desktop, mobile_iphone, mobile_android_phone และอื่นๆ

{
  "data": [
    {
      "date_start": "2017-03-10",
      "date_stop": "2017-03-10",
      "event": "AddToCart",
      "event_source": {
        "id": "<PIXEL_ID>",
        "source_type": "PIXEL"
      },
      "device_type": "desktop",
      "total_matched_content_ids": 282,
      "total_content_ids_matched_other_catalogs": 524,
      "total_unmatched_content_ids": 4965,
      "unique_matched_content_ids": 102,
      "unique_content_ids_matched_other_catalogs": 402,
      "unique_unmatched_content_ids": 1427
    },
    ...
  ]
}

ความเห็นเกี่ยวกับพิกเซลและเหตุการณ์ในแอพ

ตัวอย่าง: ใช้การตรวจสอบเพื่อช่วยให้คุณตรวจสอบยืนยันได้ว่าเหตุการณ์ที่พิกเซลของคุณส่งนั้นมีปัญหาหรือไม่

use FacebookAds\Api;
use FacebookAds\Http\RequestInterface;

$data = Api::instance()->call(
  '/' . <PIXEL_ID> . '/da_checks',
  RequestInterface::METHOD_GET)->getContent();
curl -G \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.11/<PIXEL_ID>/da_checks

ตัวอย่าง: การตอบสนอง

{
  "data": [
    {
      "description": "Pixel hasn't sent some or any events for Advantage+ catalog ads (ex: ViewContent, AddToCart, Purchase) at least once in the last 24 hours.",
      "key": "pixel_missing_dpa_event",
      "result": "failed",
      "title": "Pixel is not sending DPA events"
    },
    {
      "description": "Pixel events might be missing parameters some or all of the time.",
      "key": "pixel_missing_param_in_events",
      "result": "passed",
      "title": "Pixel missing parameter in DPA events"
    },
    {
      "action_uri": "https://www.facebook.com/ads/manage/pixels/?pixel_id=<PIXEL_ID>&amp;m2w=1",
      "description": "The number of pixel events has dropped to less than half of the weekly average.",
      "key": "pixel_decline",
      "result": "passed",
      "title": "Decline in number of pixel events"
    }
  ]
}

คุณสามารถใช้การตรวจสอบต่อไปนี้ได้

การตรวจสอบ คำอธิบาย

pixel_missing_dpa_event

ตรวจสอบว่ามีเหตุการณ์ของพิกเซลนี้ขาดหายไปหรือไม่ ดังที่ระบุไว้ในโฆษณาแค็ตตาล็อก Advantage+

pixel_missing_param_in_events

ตรวจสอบว่ามีเหตุการณ์ที่พารามิเตอร์ที่จำเป็นขาดหายไปหรือไม่ ดังที่ระบุไว้ในโฆษณาแบบไดนามิก

pixel_decline

ตรวจสอบว่าจำนวนเหตุการณ์ที่ได้รับสำหรับพิกเซลนั้นมีจำนวนลดลงในช่วง 24 ชั่วโมงที่ผ่านมาหรือไม่

โปรดดูรายละเอียดที่การตรวจสอบโฆษณาแบบไดนามิกจากพิกเซลในข้อมูลอ้างอิง

ค่าที่ใช้ได้สำหรับช่อง result:

สถานะ คำอธิบาย

ผ่าน

พิกเซลของคุณผ่านการตรวจสอบนี้

ไม่ผ่าน

พิกเซลของคุณไม่ผ่านการตรวจสอบนี้

ใช้งานไม่ได้

การตรวจสอบนี้ไม่สามารถใช้งานกับพิกเซลนี้ได้ในตอนนี้ โปรดลองอีกครั้งในภายหลัง

เราส่งคืนการตรวจสอบทั้งหมดตามค่าเริ่มต้น แต่คุณสามารถระบุการตรวจสอบที่ต้องการใช้ได้ตามนี้:

use FacebookAds\Api;
use FacebookAds\Http\RequestInterface;

$data = Api::instance()->call(
  '/' . <PIXEL_ID> . '/da_checks',
  RequestInterface::METHOD_GET,
  array(
    'checks' => array(
      'pixel_decline',
      'pixel_missing_dpa_event',
      'pixel_missing_param_in_events',
      ),
  ))->getContent();
curl -G \
  --data-urlencode 'checks=[ 
    "pixel_decline", 
    "pixel_missing_dpa_event", 
    "pixel_missing_param_in_events" 
  ]' \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.11/<PIXEL_ID>/da_checks

สำหรับเหตุการณ์ในแอพ

คุณสามารถตรวจสอบยืนยันได้ว่าเหตุการณ์ที่แอพของคุณส่งนั้นมีปัญหาหรือไม่:

use FacebookAds\Api;
use FacebookAds\Http\RequestInterface;

$data = Api::instance()->call(
  '/' . <APP_ID> . '/da_checks',
  RequestInterface::METHOD_GET)->getContent();
curl -G \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.11/<APP_ID>/da_checks

ตัวอย่างการตอบกลับ:

{
  "data": [
    {
      "description": "App hasn't sent some or any events for dynamic ads (ex: ViewContent, AddToCart, Purchase)...",
      "key": "app_missing_dpa_event",
      "result": "failed",
      "title": "App is not sending DPA events"
    },
    {
      "description": "App events might be missing parameters some or all of the time.",
      "key": "app_missing_param_in_events",
      "result": "passed",
      "title": "App missing parameter in DPA events"
    }
  ]
}
การตรวจสอบ คำอธิบาย

app_missing_dpa_event

ตรวจสอบว่ามีเหตุการณ์ของแอพขาดหายไปหรือไม่ ดังที่ระบุไว้ในโฆษณาแบบไดนามิก

app_missing_param_in_events

ตรวจสอบว่ามีเหตุการณ์ที่พารามิเตอร์ที่จำเป็นขาดหายไปหรือไม่ ดังที่ระบุไว้ในโฆษณาแบบไดนามิก

โปรดดูข้อมูลเพิ่มเติมที่การตรวจสอบโฆษณาแบบไดนามิกจากแอพในข้อมูลอ้างอิง

ค่าที่เป็นไปได้ซึ่งส่งคืนสำหรับ result:

สถานะ คำอธิบาย

ผ่าน

แอพของคุณผ่านการตรวจสอบนี้

ไม่ผ่าน

แอพของคุณไม่ผ่านการตรวจสอบนี้

ใช้งานไม่ได้

การตรวจสอบนี้ไม่สามารถใช้งานกับแอพนี้ได้ในตอนนี้ โปรดลองอีกครั้งในภายหลัง

คุณสามารถร้องขอค่าสำหรับการตรวจสอบเฉพาะได้ เราส่งคืนรายการทั้งหมดตามค่าเริ่มต้น แต่คุณสามารถระบุการตรวจสอบที่ต้องการใช้ได้ โดยการส่งการตรวจสอบในคำขอต่อไปนี้:

use FacebookAds\Api;
use FacebookAds\Http\RequestInterface;

$data = Api::instance()->call(
  '/' . <APP_ID> . '/da_checks',
  RequestInterface::METHOD_GET,
  array(
    'checks' => array('app_missing_dpa_event', 'app_missing_param_in_events'),
  ))->getContent();
curl -G \
  -d 'checks=["app_missing_dpa_event","app_missing_param_in_events"]' \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.11/<APP_ID>/da_checks