Dear API support team,

  1. The tweet response data (by GET accounts/:account_id/tweets, filtered by tweet_ids = “tweet_id”) returns a card_uri = “card://1011853017404997632”.
  • Request
twurl -H ads-api.twitter.com "/11/accounts/18ce540j0aj/tweets?tweet_type=PUBLISHED&count=200&timeline_type=ALL&trim_user=true&tweet_ids=1012229112151171072" | jq .
  • Response
{
    "request": {
        "params": {
            "count": 200,
            "timeline_type": "ALL",
            "tweet_ids": [
                "1012229112151171072"
            ],
            "account_id": "18ce540j0aj",
            "trim_user": true,
            "tweet_type": "PUBLISHED"
        }
    },
    "next_cursor": null,
    "data": [
        {
            "coordinates": null,
            "retweeted": false,
            "name": null,
            "conversation_settings": "EVERYONE",
            "source": "<a href=\"https://ads-api.twitter.com\" rel=\"nofollow\">Twitter for Advertisers.</a>",
            "entities": {
                "hashtags": [],
                "symbols": [],
                "user_mentions": [],
                "urls": []
            },
            "display_text_range": [
                0,
                94
            ],
            "favorite_count": 68,
            "in_reply_to_status_id_str": null,
            "geo": null,
            "id_str": "1012229112151171072",
            "scopes": {
                "followers": false
            },
            "in_reply_to_user_id": null,
            "truncated": false,
            "retweet_count": 5,
            "scheduled_status": null,
            "id": 1012229112151171072,
            "in_reply_to_status_id": null,
            "nullcast": true,
            "created_at": "Thu Jun 28 07:00:01 +0000 2018",
            "place": null,
            "scheduled_at": null,
            "tweet_type": "PUBLISHED",
            "favorited": false,
            "card_uri": "card://1011853017404997632",
            "full_text": "マーケティングデータの分析、出来ていますか?\n\nデバイス・ブラウザを横断した態度変容を可視化することで、CVまでのカスタマージャーニーを正しく捉えることが可能に!!\n\nまずは資料請求⇒⇒⇒",
            "lang": "ja",
            "contributors": null,
            "in_reply_to_screen_name": null,
            "in_reply_to_user_id_str": null,
            "user": {
                "id": 97446933,
                "id_str": "97446933"
            },
            "tweet_id": "1012229112151171072"
        }
    ]
}
  1. But I cannot find this card_uri in GET accounts/:account_id/cards, filtered by card_uris = “card_uri”
  • Request
twurl -H ads-api.twitter.com "/11/accounts/18ce540j0aj/cards?card_uris=card%3A%2F%2F1011853017404997632&count=200&include_legacy_cards=true&with_deleted=true" | jq .
  • Response
{
    "request": {
        "params": {
            "count": 200,
            "include_legacy_cards": true,
            "account_id": "18ce540j0aj",
            "card_uris": [
                "card://1011853017404997632"
            ],
            "with_deleted": true
        }
    },
    "next_cursor": null,
    "data": []
}

Is it a normal case? How can I get the meta data for this card_uri?

I hope to receive your response as soon as possible.
Thank you very much.
David.

Hello,

Are you able to verify how the card is created? Is it through the POST accounts/:account_id/cards endpoint or is it a summary card -Known as an ‘organic’ type of card?

If its the latter, do note that those cards are not in ad format and hence, the card endpoint will not return information on those cards

Hi @jaredtcy ,

When I check this card_uri by Card validator, the result is “Unable to render Card preview”

David.

Hello,

From what I understand, the GET accounts/:account_id/cards endpoint only return cards that are being created from the POST accounts/:account_id/cards endpoint

As for your case, I saw the tweet was created in 2018, do you happen to know which endpoint they use to create the website card? Did they use the POST accounts/:account_id/cards/website endpoint?

Hi @jaredtcy ,

As I thought, the GET accounts/:account_id/cards endpoint still returns the website card if we specify parameter: include_legacy_cards = true. In request to GET accounts/:account_id/cards, I has already specified this parameter, but the response data still did not return “card://1011853017404997632”

David.

Hello,

Yes you are correct. I am checking with the team on this. I will update again when they respond to me.

1 Like

Hi @jaredtcy

Is there any updates for this issue?

Hi, still waiting for the team to respond. I will update accordingly.

Hello,

It seems like this card belongs to the account_id 18ce54q9ay0

twurl -H ads-api.twitter.com  "/11/accounts/18ce54q9ay0/cards?card_uris=card://1011853017404997632&include_legacy_cards=true" | jq .
{
  "request": {
    "params": {
      "account_id": "18ce54q9ay0",
      "include_legacy_cards": true,
      "card_uris": [
        "card://1011853017404997632"
      ]
    }
  },
  "next_cursor": null,
  "data": [
    {
      "name": "TW_FF_AI",
      "components": [
        {
          "media_key": "19_1011852073938243584",
          "media_metadata": {
            "19_1011852073938243584": {
              "type": "IMAGE",
              "url": "https://pbs.twimg.com/ad_img/1011852073938243584/Iz9G1kAz?format=jpg&name=orig",
              "width": 800,
              "height": 419
            }
          },
          "type": "MEDIA"
        },
        {
          "title": "デバイスやアプリに依存しない新しい効果測定",
          "destination": {
            "url": "https://ac.ebis.ne.jp/tr_set.php?argument=C3gYuyB5&ai=a5b33275cee10f",
            "type": "WEBSITE"
          },
          "type": "DETAILS"
        }
      ],
      "id": "1011853017404997632",
      "created_at": "2018-06-27T06:05:33Z",
      "card_uri": "card://1011853017404997632",
      "updated_at": "2021-10-19T17:50:12Z",
      "deleted": false,
      "card_type": "IMAGE_WEBSITE"
    }
  ]
}

Hi @jaredtcy ,

Thank you very much for your reply.

As you show me, the card_uri = “card://1011853017404997632” is belonged to the account_id 18ce54q9ay0.

So:

  1. Why does it also included in response data of tweet_id = 1012229112151171072 of account_id 18ce540j0aj?
  2. And why I cannot check it in Card validator?

Thank you very much.
David

Hello,

So i verified with the team. Tweet data belongs to twitter account (handle id), not ads account so it’s normal that tweets data are available for multiple ads account as far as handle name is the same.

As such, the tweetID 1012229112151171072 returns for both 18ce54q9ay0 and 18ce540j0aj

However, for card endpoint, it only returns the card that was created by the ads account. In this case, 18ce54q9ay0.

Regarding your second question on card validator, it will only return organic cards (i.e. summary cards). As such, you cant find the card (card://1011853017404997632) using the validator

Hi @jaredtcy ,

I’m having the same issue fetching card data, I see a card_uri used for tweets in different accounts, but I cannot get the card data using any of the account ids. Is there a way to figure out which account a certain card belongs to?

Thanks in advance.
Yueting

Hello,

Thanks for reaching out. Currently, almost all the API endpoints requires an Account ID to retrieve data. As such, by having the card_uri, there is no endpoints that can be used to figure out which account a certain card belongs to. You will still need the AccountID to retrieve the relevant data of the card.

Could you send the card_uri that you are having issues with? We can try to check internally.

Thanks for the response! I’ve found the owner account for that card, but it would be very helpful to have some way to figure out the owner account id, maybe something like having an account_id in Tweet and Card APIs? Just a suggestion, I’m going to work around this by getting all Card info and join with Tweets by card_uri, but it’s not very efficient for only retrieving certain Cards.