Hi,
How can we fetch all cards both WEB and APP, in version 9.
This end point https://ads-api.twitter.com/9/accounts/:account_id/cards
returns 400 response code (The request was invalid or cannot be otherwise served. An accompanying error message will explain further. Requests without authentication are considered invalid and will yield this response.)
Below end point, required either ‘card_uris’ or ‘card_id’ parameter
https://ads-api.twitter.com/9/accounts/:account_id/cards/all
Can you please suggest me.
Thanks,
Sandeep.S
Could you provide an example request that fails to help us investigate?
Hi @osowskit1
I had created new website and app cards in Twitter Ads UI and how can I fetch them in version 9, what is the end point for it please. Previous we had below end points for website and app (image and video) seperately
https://ads-api.twitter.com/8/accounts/:account_id/cards/website
https://ads-api.twitter.com/8/accounts/:account_id/cards/image_app_download
As per version 9, Its https://ads-api.twitter.com/9/accounts/:account_id/cards
and it does not return any cards list as response, it returns 400 error code.
Account Id : 18ce54sj2ha
Request :
twurl -H “https://ads-api.twitter.com” “/9/accounts/18ce54sj2ha/cards”
{“request”:{“params”:{“account_id”:“18ce54sj2ha”}},“next_cursor”:null,“data”:}
can you please guide me if I am wrong anywhere please.
We plan to migrate previously-created website cards and app cards to this new format in 2021, so no functionality should be lost during the transition to the new endpoints.
The cards announcement mentions that cards created using the deprecated cards endpoints aren’t yet supported via https://ads-api.twitter.com/9/accounts/:account_id/cards. These will get migrated this year and become available. We’ll update that announcement with more information on timing.
For now, applications will need to use both the v9 and v8 endpoints to fetch all cards.
I was also unable to reproduce a 400 response. Could you provide a request that reproduces this and include the transaction ID in the return header.
when I have a card_uri how do I distinguish it is what kind of card it is? I need to distinguish because fetching carousel cards is different from other cards