Retrieve a Lead Source of given customer.
Lead Source was retrieved successfully.
medium | string Lead source medium (eg search, display). | ||||||||||||||||||||||||||||
source | string Lead source origin (eg google, yahoo). | ||||||||||||||||||||||||||||
campaign | string Lead source campaign (eg go-big-123). | ||||||||||||||||||||||||||||
term | string Lead source term (eg salt shakers). | ||||||||||||||||||||||||||||
content | string Lead source content (eg smiley faces). | ||||||||||||||||||||||||||||
affiliate | string Lead source affiliate (eg 123, Bob Smith). | ||||||||||||||||||||||||||||
subAffiliate | string Lead source sub-affiliate also called a sub-id or click id in some circles (eg 123456). | ||||||||||||||||||||||||||||
salesAgent | string Lead source sales agent (eg James Bond). | ||||||||||||||||||||||||||||
clickId | string Lead source click id (may come from an ad server). | ||||||||||||||||||||||||||||
path | string Lead source path url (eg www.example.com/some/landing/path). | ||||||||||||||||||||||||||||
referrer | string Lead source | ||||||||||||||||||||||||||||
createdTime | string <date-time> Lead source created time. | ||||||||||||||||||||||||||||
Array of Self (object) or CustomerLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||
|
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
$customer = $client->customers()->load('myCustomerId'); $leadSource = $customer->getLeadSource();
{- "medium": "string",
- "source": "string",
- "campaign": "string",
- "term": "string",
- "content": "string",
- "affiliate": "string",
- "subAffiliate": "string",
- "salesAgent": "string",
- "clickId": "string",
- "path": "string",
- "referrer": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
], - "original": {
- "medium": "string",
- "source": "string",
- "campaign": "string",
- "term": "string",
- "content": "string",
- "affiliate": "string",
- "subAffiliate": "string",
- "salesAgent": "string",
- "clickId": "string",
- "path": "string",
- "referrer": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}