Property | Type | Value |
|---|---|---|
id | integer (read-only) | The internal Invoca id for this Advertiser. |
id_from_network | string (required) | The network id for this Advertiser. Unique within network. Not required when auto-generation is enabled at network level. |
name | string (required) | The name of the Advertiser. Unique within network. |
oauth_refresh_token | string | For internal use only. |
approval_status | string (one of): Applied, Approved (default), Declined, Suspended, Archived | Approval status for this advertiser. |
web_integration_phone_number | string | |
default_creative_id_from_network | integer | |
object_url | string (read-only) | URL for reaching the advertiser in the UI. |
sites | json array of hashes | 1 or more pairs of id_from_network [and name]. |
id_from_network | integer site_id (PID) | The site_id (PID). At least one is required. The first becomes the default. |
name | string | The site name that matches site_id. |
users | JSON array of hashes | 0 or more users for the organization. Each must have first 5 fields below. |
id_from_network | string | The network id for this User. |
email_settings | JSON array of hashes | Each hash has two required fields:
A user must have at least one email address where |
first_name | string (Required) | The user’s first name. |
last_name | string (Required) | The user’s last name. |
contact_phone_number | string in ITU E.164 format or 10-digit US form (no punctuation) | The user’s phone number. |
oauth_refresh_token | string | Not used. Reserved. |
role | One of: Super (default), Manager, Member, Observer | This user’s role in this organization. (A user may have different roles in different organizations) |
notify_on_budgets | boolean, optional, defaults to false | |
notify_on_campaign_applications | boolean, optional, defaults to false | |
notify_on_campaign_expirations | boolean, optional, defaults to false | |
notify_on_creative_duplication_requests | boolean, optional, defaults to false | |
notify_on_network_announcements | boolean, optional, defaults to false | |
notify_on_performance_notifications | boolean, optional, defaults to false | |
notify_on_monthly_campaign_performance_reports | boolean, optional, defaults to false | |
notify_on_weekly_campaign_performance_reports | boolean, optional, defaults to false | |
notify_on_call_activities | boolean, optional, defaults to false | |
can_login_via_platform | boolean (read-only) | Indicates if user can directly login with username and password. If false, the user is managed via SSO. |
Custom Data
Advertisers may have Custom Data Fields applied to them, which will be applied to calls originating through the advertiser. To apply Custom Data Values to an advertiser, the top level parametercustom_data should be assigned a hash with each pair’s key corresponding to a partner name. The value of the pair should be the value to be applied.
For the following example, we would apply the value “Offline newspaper” to the Custom Data Field “channel”.
https://invoca.net/api/2019-05-01/<network_id>/advertisers/<advertiser_id_from_network>.json
Get all Advertisers
Get all Advertisers
Examples
Read all advertisers for this networkEndpoint:https://invoca.net/api/2019-05-01/<network_id>/advertisers.jsonFormat: application/jsonResponse Code: 200Response Body:Get an Advertiser
Get an Advertiser
Examples
Read a single advertiserEndpoint:https://invoca.net/api/2019-05-01/<network_id>/advertisers/cFUyYnFHy.jsonFormat: application/jsonResponse Code: 200Response Body:Delete an Advertiser
Delete an Advertiser
Examples
Delete a single advertiserEndpoint:https://invoca.net/api/2019-05-01/<network_id>/advertisers/cFUyYnFHy.jsonFormat: application/jsonResponse Code: 200Response Body:Create an Advertiser
Create an Advertiser
Examples
Create an advertiser with usersEndpoint:https://invoca.net/api/2019-05-01/<network_id>/advertisers.jsonFormat: application/jsonRequest Body:Update an Advertiser
Update an Advertiser
Examples
Update a user from advertiserEndpoint:https://invoca.net/api/2019-05-01/<network_id>/advertisers/cFUyYnFHy.jsonFormat: application/jsonRequest Body: