Can't add a Funding instrument in Ads API Sandbox


#1

Hello,
I’ve got a ROUTE_NOT_FOUND",“message”:“The requested resource could not be found”} for this request : https://ads-api-sandbox.twitter.com/1/accounts/gq1385/funding_instrument
My App ID is : 12213799
Any help will be great :smile:


#2

Hi, @NewsBlogParis. Thanks for the question. A ROUTE_NOT_FOUND typically means the endpoint has been incorrectly specified. For funding instrument, the request, using twurl, is:

$ twurl -H ads-api-sandbox.twitter.com "/1/accounts/gq1385/funding_instruments"

#3

Hi, juanshishido. Thanks you very much !!!
I got confused by the example request (https://dev.twitter.com/ads/reference/1/post/accounts/%3Aaccount_id/funding_instruments).
have a nice week :slight_smile:


#4

No worries. Glad to help!

If you have any more questions, we’ll be here.


#5

What NewsBlogParis was saying is that there is a typo in the documentation in the example.

In the example you show a post to funding_instrument - it should be funding_instruments (plural is correct).


#6

Thanks for clarifying, @azPHPguru! We’ve updated sandbox POST /1/accounts/:account_id/funding_instruments documentation.