You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Thanks for sharing your work.
Technically this is not an issue. More like a suggestion for improvement.
I got a task to pythonize my bash script which is importing some data into Marketo using curl posts.
The script is cloning a program with a campaign and activating new campaign.
I am finding campaign id to activate by program name (since i know the name of a program i just cloned).
Here is my curl (in case you will want to implement something similar in your python client): NewCampaignId=$(curl --silent -X GET "${baseUrl}rest/v1/campaigns.json?access_token=${AccessToken}&programName=${NewProgramName}" | jq '.result | .[].id')
The text was updated successfully, but these errors were encountered:
get campaign by program name: lead = mc.execute(method='get_multiple_campaigns', id=[1170,1262], name=None, programName=None, workspaceName=None, batchSize=None)
instead of scheduling a Campaign and passing in a Program Name, you could also clone the Program, then schedule the campaign: program = mc.execute(method='clone_program', id=1207, name="Program Clone", folderId=28, folderType='Folder', description="this is a description")
That circumvents the limit of 20 calls per day for schedule campaign with cloneToProgramName.
Correct, Activate Campaign is not yet implemented, it's relatively new.
Hi!
Thanks for sharing your work.
Technically this is not an issue. More like a suggestion for improvement.
I got a task to pythonize my bash script which is importing some data into Marketo using curl posts.
The script is cloning a program with a campaign and activating new campaign.
I am finding campaign id to activate by program name (since i know the name of a program i just cloned).
Here is my curl (in case you will want to implement something similar in your python client):
NewCampaignId=$(curl --silent -X GET "${baseUrl}rest/v1/campaigns.json?access_token=${AccessToken}&programName=${NewProgramName}" | jq '.result | .[].id')
The text was updated successfully, but these errors were encountered: