beautifuldestinations / fb.old Goto Github PK
View Code? Open in Web Editor NEWThis project forked from prowdsponsor/fb
Bindings for Facebook's API.
License: BSD 3-Clause "New" or "Revised" License
This project forked from prowdsponsor/fb
Bindings for Facebook's API.
License: BSD 3-Clause "New" or "Revised" License
To run marketing tests: stack build set these, with XX replaced by appropriate values: export FB_APP_ID=XXX export FB_APP_SECRET=XXX export FB_ACCESS_TOKEN=XXX export FB_USER_ID=XXX export FB_PAGE_ID=266533256797995 export FB_URL=https://www.facebook.com/BeautifulDestinations/faceebook-marketing-test get an mp4 and call it tomn.mp4 Now run the tests with: stack exec facebook-marketing-test
This should be minor and mostly done by changing a bunch of "2.6" strings in the code with "2.7"
at least I think so. There could in principle be 0 or more than one Ads inside an AdSet (although we prefer to keep exactly one)
Two parts:
We may have most or all of the code to do this because we already have interest search and targeting.
More tutorial: https://developers.facebook.com/docs/marketing-api/buying-api/targeting/tutorial
Building fb-1.0.11...
Preprocessing library fb-1.0.11...
Module imports form a cycle:
module ‘Facebook.Object.Marketing.Types’ (src/Facebook/Object/Marketing/Types.hs)
imports ‘Facebook.Object.Marketing.TargetingSpecs’ (src/Facebook/Object/Marketing/TargetingSpecs.hs)
which imports ‘Facebook.Object.Marketing.Types’ (src/Facebook/Object/Marketing/Types.hs)
cabal: Error: some packages failed to install:
beautilytics-0.1.0.0 depends on fb-1.0.11 which failed to install.
fb-1.0.11 failed during the building phase. The exception was:
ExitFailure 1
make: *** [cabaltasks] Error 1
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"
Can I please have some equivalent of
maybe just example code.
To be used in:
https://github.com/BeautifulDestinations/beautilytics/blob/master/lib/Beautilytics/Fetch/Ads.hs#L95
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.