facebook / facebook-ruby-business-sdk

Ruby SDK for Meta Marketing API
https://developers.facebook.com/docs/business-sdk
Other
208 stars 161 forks source link

Cannot able to create AdsCreative in development mode #83

Closed menporulporiayalan closed 4 years ago

menporulporiayalan commented 4 years ago

Which SDK version are you using?

4.0.7

What's the issue?

I cannot able to create an adcreatives in development mode

Steps/Sample code to reproduce the issue

ad_image = ad_account.adimages.create({
  'logo1.png' => File.open('logo1.jpg')
})

print 'ad_image',ad_image[0][:hash]

creative = ad_account.adcreatives.create({
 name: 'Sample Creative',
object_story_spec: {'page_id': page_id,'link_data':{'image_hash': ad_image[0][:hash],'link': ad_image[0][:url],'message':'try it out'}},

})

Observed Results:

It is throwing below error

var/lib/gems/2.5.0/gems/facebookbusiness-0.4.0.7/lib/facebook_ads/api_request.rb:67:in `create_response': Invalid parameter: Ads creative post was created by an app that is in development mode (fbtrace_id: ARkwQk8SXEfVIS9ku2OtU_d) (FacebookAds::ClientError)

Expected Results:

stale[bot] commented 4 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

itsmeurbi commented 1 day ago

Same issue here Yes, my application is still under development mode, but how am I supposed to build and test an integration with Meta if I can't create certain resources(ad creatives)? 🤔

@menporulporiayalan did you find any workaround?