POST
/
gads
/
update_campaign_status
Update Campaign Status
curl --request POST \
  --url https://public.plai.io/gads/update_campaign_status \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "campaignId": "<string>",
  "status": "<string>"
}'
{
  "success": true,
  "results": {
    "success": true,
    "error": "<string>"
  }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
campaignId
string
required
Campaign ID
status
string
required
Status of the campaignStatus Type: PAUSED, ENABLED, REMOVED

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object