@juanshishido
I don’t think the links answer the questions I asked.
- From the post you linked:
The procedure is the same as the previous one except that in the course of the creation of the campaign we create a tweet with the following endpoint
ads/reference/post/accounts/%3Aaccountid/tweet_
In this Endpoint we have the possibility to add images to the tweet which we have also implemented with
ads/reference/post/accounts/%3Aaccountid/account_media_
The problem with this type of images is that we can only use 2 different and very specific sizes, which are:
BANNER: 320x50
INTERSTITIAL: 320 x 480
This is related to the question I raised here, but I don’t see it answered anywhere on the threads linked. My specific questions was:
Since I want to create a Website Card, my w/h image ratio must be 2.5. “creative_type” param from point 2 above takes me to the “Creative Types” on https://dev.twitter.com/ads/basics/enums — here none of the options match the 2.5 image ratio. How does one create a website card with those dimensions there? Am I missing something?
-
I tried executing the steps you mentioned here. This is what I get:
~ ❯❯❯ twurl -X POST -H upload.twitter.com “/1.1/media/upload.json” -f ~/Downloads/f4-good-dimensions-800x320.PNG -F media | jq
{
“media_id”: 800916839568121900,
“media_id_string”: “800916839568121857”,
“size”: 107022,
“expires_after_secs”: 86400,
“image”: {
“image_type”: “image/png”,
“w”: 800,
“h”: 320
}
}
~ ❯❯❯ twurl -H upload.twitter.com “/1.1/media/upload.json?command=STATUS&media_id=800916839568121900” | jq
{
“errors”: [
{
“message”: “Sorry, that page does not exist”,
“code”: 34
}
]
}
Is this endpoint only supposed to be for chunked uploads? Or is this an error on your side?
After this, I executed the following:
~ ❯❯❯ twurl -X POST -H upload.twitter.com "/1.1/media/upload.json" -f ~/Downloads/f4-good-dimensions-800x320.PNG -F media | jq
{
"media_id": 800916839568121900,
"media_id_string": "800916839568121857",
"size": 107022,
"expires_after_secs": 86400,
"image": {
"image_type": "image/png",
"w": 800,
"h": 320
}
}
~ ❯❯❯ twurl -X POST -H ads-api-sandbox.twitter.com "/1/accounts/gq0zn9/cards/website?name=test-website-card&website_title=test-website-title&website_url=https://twitter.com/&image_media_id=800916839568121900" | jq
{
"errors": [
{
"code": "NOT_FOUND",
"message": "800916839568121900 was not found",
"parameter": "image_media_id"
}
],
"request": {
"params": {}
}
}
-
Are images uploaded through upload.twitter.com not available in the sandbox? Or what is the explanation here?
-
If I’m inferring correctly from here — there is no need from step 2 in my original question? Meaning the steps to create a website card with an image is just 1 and 2?