Skip to main content

Hi !

I want to schedule a campaign using an API call in PHP without the smart sending option but with the UTM tracking option and it does not seem to work.

 

I am able to create and schedule the campaign, but no matter the value I provide for parameters use_smart_sending and add_google_analytics, the first one always ends upTRUE and the second one always FALSE.

 

Everything else works as expected and I have been able to schedule test mailing to the list I want with the template I want, but impossible to set correctly these 2 parameters.

 

Any idea of what the problem could be ?

 

Thanks! 

Hi @jocallier,

One issue I notice arises sometimes is the formatting for smart sending and google analytics. You’ll want to make sure that both the -d use_smart_sending=False \ -d add_google_analytics=True do not have quotations around them. Curious if this has been formatted properly?

Best,

Julie


Hi Julie !

You were right, it was exactly the problem.

The system was trying to send ‘true’ or ‘false’ as boolean but sending True or False as you said did the trick.

 

I have been able to create and schedule the campaign with the correct parameters.

 

Thanks for your help !

 


Reply