facebook-python-business-sdk icon indicating copy to clipboard operation
facebook-python-business-sdk copied to clipboard

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

Open usama-hameed opened this issue 1 year ago • 2 comments

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.

usama-hameed avatar Jun 20 '24 08:06 usama-hameed

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

Just1B avatar Jun 20 '24 08:06 Just1B

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

usama-hameed avatar Jun 20 '24 08:06 usama-hameed