facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.27k stars 629 forks source link

API/Function through which I can get the Call to Actions Options #674

Open usama-hameed opened 2 weeks ago

usama-hameed commented 2 weeks ago

Is there any API/Function through which I can get the Call to Actions availible for every objectives. I want to pass the name of the objectives and it return me all the Call to action options available rather then hardcord these values.

Just1B commented 2 weeks ago

Hi Usama:

I think you can find the enum in the adobjects :

EX : https://github.com/facebook/facebook-python-business-sdk/blob/main/facebook_business/adobjects/adcreative.py#L103

usama-hameed commented 2 weeks ago

Hi Justin,

Thanks for your reply, Yeah I alreday know about this enum but if I am not wrong it will return me all the Call to action options. CTAs depend on the Objectives. For example if objectives is awarenes options for Call to actions will be differne and differnet from traffic. What I want is that I can get the CTA options on the basis of objectives not all CTA options