GithubHelp home page GithubHelp logo

Comments (4)

michaelwclark avatar michaelwclark commented on April 19, 2024

AdCreativeObjectStorySpec is a function that creates a class. If you are trying to set object_story_spec param in AdCreative it's expecting params similiar to the below. note that the right side are just variable names, you'd need to fill in your data appropriatly or not use that line.

const object_story_spec = {
   [adsSdk.AdCreativeObjectStorySpec.instagram_actor_id]: instagram_actor_id,
   [adsSdk.AdCreativeObjectStorySpec.link_data]: link_data,
   [adsSdk.AdCreativeObjectStorySpec.photo_data]: photo_data,
   [adsSdk.AdCreativeObjectStorySpec.template_data] : template_data,
   [adsSdk.AdCreativeObjectStorySpec.text_data]: text_data,
   [adsSdk.AdCreativeObjectStorySpec.video_data]: video_data
}

from facebook-nodejs-business-sdk.

thierryjacoel avatar thierryjacoel commented on April 19, 2024

So that class only exists for the Fields lookup ? It's not supposed to be used as a value to pass in to an AdCreative, nor to be expected in the field adCreative.object_story_spec ?

from facebook-nodejs-business-sdk.

michaelwclark avatar michaelwclark commented on April 19, 2024

Yea for now all that class does is expose the valid fields.

from facebook-nodejs-business-sdk.

codytwinton avatar codytwinton commented on April 19, 2024

It seems like this issue has been open for more than a few months now. We have made many changes in the SDK since then, including releasing a new version. If you can repro your specific issue with the latest version of the SDK, please create a new issue or comment here with further details.

from facebook-nodejs-business-sdk.

Related Issues (20)

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.