3

(1) I need to extract the link inside a facebook ad. When creating a facebook ad , we need to fill in destination, where we need to fill website url, how can I get this value from some facebook api. Basically the link where the ad redirects to. (2) Also, is there a way where I can get all attributes/properties of an ad, which were filled in while creating the ad, through some api, such as name, body, website_url.

The input that I can give is the ad_id

I have tried https://graph.facebook.com/v17.0/23855312168950236?fields=name api, wherein I have passed name as a param, and the response is { "name": "Testing fbp cookies", "id": "23855312168950236" } . This response is fine.

As per the documentation, I used object_url, link_url and a few other params as , https://graph.facebook.com/v17.0/23855312168950236?fields=object_url, but then the response changes to , { "error": { "message": "(#100) Tried accessing nonexisting field (object_url) on node type (Ad)", "type": "OAuthException", "code": 100, "fbtrace_id": "AiMmHEZkpParXv9soPnBPCg" } }

api cURL referred from - https://developers.facebook.com/docs/marketing-api/creative query params list referred from - https://developers.facebook.com/docs/marketing-api/reference/ad-creative

also tried - Facebook Ads Insights API - Requesting Website URL Parameter but same error

** NOTE - I AM USING CREATIVE_ID AS THE AD_ID ITSELF**

0 Answers0