facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.29k stars 635 forks source link

not able to retrieve creative image #488

Closed flyfj closed 6 years ago

flyfj commented 6 years ago

i'm trying to get image url of an ad creative, used the code below:

fields = [
        AdCreative.Field.title, AdCreative.Field.name,
        AdCreative.Field.image_url, AdCreative.Field.image_hash,
        AdCreative.Field.link_url
    ]
ad_obj = Ad(ad_id)
data = ad_obj.get_ad_creatives(fields=fields)

the data object only contains id, name and creative_id, not even title. what did i do wrong to achieve this?

FrancYescO commented 6 years ago

having similar issue with PHP api... lot of fields are not populated also if i'm requesting it... actually falled on the the thumbnail url that is correctly readed, taking the final part of the string and urldecoding will allow to get the fullsize image

flyfj commented 6 years ago

@FrancYescO could you describe how you are able to get the thumbnail image?

FrancYescO commented 6 years ago

In the php api Simply i have the THUMBNAIL_URL field

jingping2015 commented 6 years ago

We've been unable to reproduce this bug since it is totally work fine for my test ad, and are unable to investigate further. We are closing the issue for now, if you identify a test case we can use to reproduce your bug feel free to re-open or go https://developers.facebook.com/support/bugs/ to report it.