POST api/analytics/saveorupdategoogle

Updates or Creates a Campaign

Request Information

URI Parameters

None.

Body Parameters

Dezrez.Core.DataContracts.External.Api.Agency.Command.Analytics.GoogleAnalyticsCampaignSaveDataContract
NameDescriptionTypeAdditional information
Source

string

None.

Medium

string

None.

Campaign

string

None.

Term

string

None.

Content

string

None.

Name

string

None.

Id

integer

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "Source": "sample string 1",
  "Medium": "sample string 2",
  "Campaign": "sample string 3",
  "Term": "sample string 4",
  "Content": "sample string 5",
  "Name": "sample string 6",
  "Id": 7
}

Response Information

Resource Description

CampaignDataContract for the updated or created campaign

Dezrez.Core.DataContracts.External.Api.Agency.Query.Analytics.CampaignDataContract
NameDescriptionTypeAdditional information
Name

string

None.

CreatedDate

date

None.

CreatedBy

Dezrez.Core.DataContracts.External.Api.People.Query.Get.CreatedByDataContract

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CreatedDate": "2024-10-15T18:41:45.9930468Z",
  "CreatedBy": {
    "Initials": "sample string 1",
    "ContactName": "sample string 2",
    "Gender": {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    "Title": "sample string 3",
    "FirstName": "sample string 4",
    "LastName": "sample string 5",
    "PrimaryTelephone": {
      "Type": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Value": "sample string 1",
      "Notes": "sample string 2",
      "ContactOrder": 3,
      "AllowContact": true,
      "MarketingContactStatus": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Name": "sample string 5",
      "Id": 6
    },
    "PrimaryEmail": {
      "Type": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Value": "sample string 1",
      "Notes": "sample string 2",
      "ContactOrder": 3,
      "AllowContact": true,
      "MarketingContactStatus": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "Name": "sample string 5",
      "Id": 6
    },
    "JobTitle": "sample string 6",
    "Id": 7
  },
  "Id": 3
}