Comments (4)
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.
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.
Yea for now all that class does is expose the valid fields.
from facebook-nodejs-business-sdk.
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)
- You are calling a deprecated version of the Ads API. Please update to the latest version: v15.0.
- Crash Report when trying to createAccessToken HOT 2
- Incorrectly closed Issue #192 - Prototype Pollution in mout HOT 1
- delete and update have wrong returns HOT 1
- Can´t Create ADs via SDK HOT 2
- Can we release v17.0.0? HOT 6
- Missing Advertiser Tracking Enabled Flag even though it is set though setAdvertiserTrackingEnabled HOT 2
- Feature Request: Audience Overlap
- Can't figure out how to create a playable ad using SDK
- Sending wrong params when creating campaign
- Replace Deprecated npm Package 'request' HOT 14
- Server Side Api Parameter Error: Unexpected key "advertiser_tracking_enabled" HOT 8
- AdsPixel Id is not defined HOT 1
- 17.0.3 introduces error: "TypeError: Cannot read properties of undefined (reading 'map')" HOT 5
- Global debug mode flag does not work for EventRequests
- Not receiving specific errors when calling HOT 12
- Boost post to Saved audience
- Creating Product Sets and adding items HOT 1
- Campaign, ad set, ad example
- No permission to access this profile getGeneratePreview() error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-nodejs-business-sdk.