Register an event source for an advertiser. The eventSourceId is referenced by optimization goals on performance campaigns.
API key or access token
Unique identifier for the advertiser
1"12345"
Request body for creating an event source
Identifier for this event source, referenced by optimization goals
1 - 255"retailer_sales"
Human-readable name for this event source
1 - 255"Retailer Sales Pixel"
Event types this source handles. When omitted, accepts all event types.
1IAB ECAPI event type to optimize for
page_view, view_content, select_content, select_item, search, share, add_to_cart, remove_from_cart, viewed_cart, add_to_wishlist, initiate_checkout, add_payment_info, purchase, refund, lead, qualify_lead, close_convert_lead, disqualify_lead, complete_registration, subscribe, start_trial, app_install, app_launch, contact, schedule, donate, submit_application, custom ["purchase", "add_to_cart"]Domains authorized to send events for this source
1["shop.example.com", "checkout.example.com"]Create event source
Response containing a single event source
Event source resource representation