Creative
A creative
Fields
| Field | Type | Availability | Notes |
|---|---|---|---|
id | Int! | The record's Refersion id. | |
created | String | Unix timestamp in seconds, not an ISO 8601 date. | |
updated | String | Unix timestamp in seconds, not an ISO 8601 date. | |
category_id | Int | ||
category_name | String | ||
status | String | ||
type | String | ||
filesize | Int | Size in bytes. Only meaningful for image creatives. | |
text_link_content | String | ||
banner_location | String | ||
landing_page_url | String | ||
is_dynamic | Boolean | True for creatives whose destination is resolved per affiliate rather than fixed. | |
creative_name | String | ||
shop | Shop | ||
clicks | [Click] | Takes arguments — see below. |
Sorting
sort accepts id, created, updated, status, type on this type, and sorts descending.
Any other value is ignored without an error.
Field arguments
clicks
| Argument | Type | Notes |
|---|---|---|
id | ID | Returns only the record with this id. |
sub_id | ID | Matches the subid carried on the tracking link. |
created_from | Int | Unix timestamp in seconds. Exclusive — matches rows created strictly after it. |
created_to | Int | Unix timestamp in seconds. Inclusive — matches rows created at or before it. |
offer_id | ID | Returns only records tied to this offer. |
creative_id | ID | Returns only records tied to this creative. |
sort | String | Field to sort by, descending. Each type accepts its own short list — see Sorting on the returned type's page. Anything else is ignored without an error. |
limit | Int | Rows to return. Anything outside 1–200 is replaced by 200. |
before | ID | Returns only rows with an id lower than this. Cursor-style paging. |
after | ID | Returns only rows with an id higher than this. Cursor-style paging. |
offset | Int | Rows to skip before returning results. |
Referenced by
Related
- Queries — the root fields that reach this type.
- Filtering and Sorting — how arguments behave.