How to using online-image to create Ad Creative?

2.5k views Asked by At

How to using online-image/image link to create Ad Creative? Such as the http://images.kuaizitech.com/jpg/xxx.jpg

Because at first, our programmatic creative platform system will generate a series of images; then we will use the FB marketing API to push ad.

See the process as the bellow: The Book an AD need creative field, then Create the AdCreative need image_hash field, finally the Ad Creative need @<IMAGE_PATH>.

tags: image_hash ,online-image/a image link ,Creative

show the code snippets

1

There are 1 answers

2
wai On BEST ANSWER

If you check the documentation of Facebook Marketing API for AdCreative (as of time of writing is v2.5):-

https://developers.facebook.com/docs/marketing-api/reference/ad-creative

There is a field image_url. Specify that instead of image_hash.

If you go to the 'Creating->image_url' part of the document:-

"A URL for the image for this creative. You should not use image URLs returned from the FB CDN but instead have the image hosted on your own servers. The image specified at the URL will be saved into the ad account's image library and cannot exceed 8 MB in size. One of these three fields should be specified: image_file, image_hash, or image_url."

Hope this helps. :)