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

Fetching preview for ad creative returns broken URL #54

Closed iamricks closed 4 years ago

iamricks commented 6 years ago

I am fetching a preview like so:

FacebookAds::AdCreative.get(creativeId, session).previews(ad_format: adFormat)

Every single preview i fetch the URL comes like this:

"https://www.facebook.com/ads/api/preview_iframe.php...........&t=AQK0********XnH5"

Notice how the "t" param has a ";" instead of a "&"

This is causing the links to return "The parameter t is required"

iamricks commented 6 years ago

Any updates on this?

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.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

jnmcdonald commented 3 years ago

I am using the python sdk but I'm hitting the same error with the following code:

fields = [ ] params = { 'ad_format': 'DESKTOP_FEED_STANDARD', } r = AdCreative(id).get_previews( fields=fields, params=params, )

iamricks commented 3 years ago

@jnmcdonald Yeah... its never been fixed. I think i just replaced the ; with a & as a tempt fix and it just stayed like that after it not being fixed for over a year, i no longer use that endpoint because the feature was removed. Facebook's API can be a pain.

jnmcdonald commented 3 years ago

@iamricks yeah, I did the same thing in my code, it's just frustrating that hasn't been addressed. I'll reach out to a solutions engineer.