Code Monkey home page Code Monkey logo

fb.old's Introduction

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


fb.old's People

Contributors

meteficha avatar whittle avatar glutamate avatar paulrzcz avatar benclifford avatar stepcut avatar gabrielprioli avatar ddssff avatar snoyberg avatar alanpog avatar hanshoglund avatar tanaka-de-silva avatar tolysz avatar timp avatar

Watchers

 avatar  avatar James Cloos avatar

fb.old's Issues

Ad.getAd should return a Pager

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)

Module imports form a cycle

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

Creating ad sets with conversion pixel objective

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.