POST api/analytics/saveorupdategoogle

Request Information

URI Parameters

None.

Body Parameters

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/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
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GoogleAnalyticsCampaignSaveDataContract'.

Response Information

Resource Description

CampaignDataContract
NameDescriptionTypeAdditional information
Name

string

None.

CreatedDate

date

None.

CreatedBy

CreatedByDataContract

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "CreatedDate": "2018-11-14T02:13:30.4816435Z",
  "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
}