BeautifulDestinations / fb.old

Bindings for Facebook's API.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Creating ad sets with conversion pixel objective #8

Open glutamate opened 8 years ago

glutamate commented 8 years ago

Looks like the promoted_object should be set to pixel_id and custom_event_type (=COMPLETED_REGISTRATION)

somewhat related cURL example in the docs

curl \
-F "name=LifetimeBudgetSet" \
-F "lifetime_budget=100000" \
-F "end_time=1380610800" \
-F "bid_amount=150" \
-F "billing_event=APP_INSTALLS" \
-F "optimization_goal=APP_INSTALLS" \
-F "promoted_object={'application_id': <APP_ID>, 'object_store_url': <APP_STORE_URL>}" \
-F "targeting={'geo_locations': {'countries': ['US']}}" \
-F "campaign_status=ACTIVE" \
-F "campaign_id=<AD_CAMPAIGN_ID>" \
-F "execution_options=['validate_only']" \
-F "access_token=<ACCESS_TOKEN>" \
"https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/adsets"
benclifford commented 8 years ago

n.b what facebook calls "conversion pixels" are deprecated and are replaced by "facebook pixels"

benclifford commented 8 years ago

further reading: https://developers.facebook.com/docs/marketing-api/facebook-pixel/conversion-tracking/v2.7 under the heading "Create an oCPM adset that optimizes for Purchase events:"