Create a campaign goal

Request URI for Sub Account

POST /accounts/40505/campaigns/7/goals

Request Format

{  
   "goals":{  
      "name":"New goal",
      "type":"visitPage",
      "urls":[  
         {  
            "type":"url",
            "value":"http://wingify.com"
         }
      ]
   }
}

Create a campaign goal

πŸ“˜

Note:

  • valid type includes visitPage, engagement, formSubmit, clickLink, clickElement, revenue, custom-conversion
  • name is a required property
  • for type clickElement, cssSelectors is required
  • for type visitPage, formSubmit, clickLink, revenue, custom-conversion, urls is required
  • valid url type includes url, startsWith, endsWith, contains, pattern, regex, cssSelector
Language
Authentication
Header
Response
Click Try It! to start a request and see the response here!