Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Раскрыть
titleПример campaign_InApp_Native


Блок кода
curl --location --request PUT 'https://ui-dev.getintent.com/api/v2/advertisers/9706/campaigns/new?token=<token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ends": "2022-09-28 23:59:59",
    "budget": 1,
    "starts": "2022-09-28 00:00:00",
    "disabled": true,
    "financing": {
        "type": "max_cpm",
        "price": 1
    },
    "fp_switch": "inherit",
    "targeting": {
        "https": true,
        "exclude_anonymous_domains": true
    },
    "landing_page": "https://getintent.com/",
    "budget_pacing": "CAMPAIGN",
    "type_ad_campaign": "CPM",
    "distribution_form": "текст + графика",
    "block_anomaly_click_redirect": "INHERIT",
    "id": 245776,
    "name": "Test_InApp_Native",
    "for_mobile_device": true,
    "for_native_ads": true,
    "for_video_ads": false,
    "for_dooh": false,
    "advertiser_id": 9699,
    "group_id": 22624
}'


Креативы:

Якорь
Креативы
Креативы

Запросы которые не относятся к креативам, но все же будет полезны при работе с креативами.


Раскрыть
titleПолезные запросы при работе с креативами

Запрос всех кампаний, в рекламодателе.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/advertisers/3936/campaigns/list?token=value_token \
--header 'Cookie: session=value_session'


Запрос всех кампаний, с кастомными нодами.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/advertisers/3936/campaigns/list?token=value_token&custom_fields=starts%2Cends%2Ccreatives&token=value_token' \
--header 'Cookie: session=value_session'


Запрос всех креативов, в рекламодателе.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/list?token=value_token' \
--header 'Cookie: session=value_session'


Запрос по конкретной кампании, для получения в том числе и списка прикрепленных креативов.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/campaigns/get/292497?token=value_token' \
--header 'Cookie: session=value_session'



Раскрыть
titleЗапросы работа с креативами

Запрос по конкретному креативу.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/creatives/get/543050?token=value_token \

--header 'Cookie: session=value_session'



Заливаем видео-файл, файл к нам cdn.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/upload?token=value_token&video=1675847157-testovoe_video_GI_-_5_sec.mp4' \
--header 'x-file-name: 1675847157-testovoe_video_GI_-_5_sec.mp4' \
--header 'Cookie: session=value_session\
--form 'creative=@"/Users/mmelekhin/Downloads/11/1675847157-testovoe_video_GI_-_5_sec.mp4"'


Раскрыть
titleОтвет в случае успеха.


Блок кода
{
"url": "cdn.adhigh.net/media/1690211262-1675847157-testovoe_video_GI_-_5_sec.mp4",
"size": "1152x720",
"length": 5
}



Раскрыть
titleСоздание видео крео.


Блок кода
curl --location --request PUT 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/new?token=value_token&lang=en' \
--header 'accept: application/json' \
--header 'X-Auth-Token: value_token' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session;' \
--data '{"name":"Example of AdData simple object","creative_type":"video","distribution_form":"Video","type_ad_campaign":"CPM","length":"5","files":[{"url":"cdn.adhigh.net/media/1675847157-testovoe_video_GI_-_5_sek.mp4","size":"1152x720","length":"5","file_size":"2177100"}]}'





Раскрыть
titleИзменение креатива


Блок кода
curl --location 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/new?token=value_token' \
--header 'accept: application/json' \
--header 'X-Auth-Token: value_token' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session;' \
--data '{
"name":"Example of AdData simple object",
"creative_type":"video",
"distribution_form":"Video",
"type_ad_campaign":"CPM",
"length":"5",
"files":[{
"url":"cdn.adhigh.net/media/1675847157-testovoe_video_GI_-_5_sec.mp4",
"size":"1152x720",
"length":"5",
"file_size":"2177100"}]
}'



Раскрыть
titleДобавление нод в креатив.


Блок кода
curl --location --request PATCH 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/edit/589357?token=value_token' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session;' \
--data '{"landing_page":"https://getintent.com","landing_domain":"https://getintent.com"}'



Раскрыть
titleПервый путь. Регистрация конкретного креатива в офд.


Раскрыть
titleДобавление обязательной ноды.


Блок кода
curl --location --request PATCH 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/edit/589357?token=value_token' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session;' \
--data '{"is_ord_url_autofilled": true}'



Раскрыть
titleРегистрация креатива.


Блок кода
curl --location --request POST 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/creative/register/589357?token=value_token' \
--header 'Cookie: session=value_session;'


Раскрыть
titleОтвет в случае успеха.


Блок кода
{"files":[{"url":"cdn.adhigh.net/media/1675847157-testovoe_video_GI_-_5_sek.mp4","size":"1152x720","length":"5","file_size":"2177100"}],"length":"5","ord_url":"https://getintent.com","landing_page":"https://getintent.com","ord_token_map":[{"url":"https://getintent.com","mode":"auto","token":"Kra23gjH6","deleted":false,"ord_registration_method":"MTS"}],"landing_domain":"https://getintent.com","ord_creative_id":"CR9KQx5lRk1UWXGIld4r2bXg","type_ad_campaign":"CPM","distribution_form":"Video","is_ord_url_autofilled":true,"register_creative_ord":true,"landing_page_after_redirects":"https://getintent.com/","id":589357,"updated_at":"2023-07-25T13:37:46+0000","name":"Example of AdData simple object","created_at":"2023-07-21T10:49:13+0000","creative_type":"video","moderation_status":"APPROVED","advertiser_id":3936}






Раскрыть
titleОбнуление регистрации в орд креатива.


Блок кода
curl --location --request PUT 'https://ui.getintent.com/api/v2/advertisers/3936/creatives/edit/589357?token=value_token' \
--header 'accept: application/json' \
--header 'X-Auth-Token: value_token' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session;' \
--data '{"name":"Example of AdData simple object","creative_type":"video","distribution_form":"Video","type_ad_campaign":"CPM","length":"5","files":[{"url":"cdn.adhigh.net/media/1675847157-testovoe_video_GI_-_5_sek.mp4","size":"1152x720","length":"5","file_size":"2177100"}],"landing_page":"https://getintent.com","landing_domain":"https://getintent.com"}'



Раскрыть
titleВторой путь. Регистрация креативов в орд через кампанию.

Получение нод по кампаниям.

Блок кода
curl --location 'https://ui.getintent.com/api/v2/campaigns/get/292497?token=value_token' \
--header 'Cookie: session=value_session;'


Раскрыть
titleДобавление креативов в кампанию.


Блок кода
curl --location --request PATCH 'https://ui.getintent.com/api/v2/campaigns/edit/292497?token=value_token' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=value_session' \
--data ' {
"creatives": [
71177,
524404,
543050,
589357
]
}'



Раскрыть
titleРегистрация креативов в фод через кампанию.


Блок кода
curl --location --request POST 'https://ui.getintent.com/api/v2/campaigns/creatives/register/292497?token=value_token' \
--header 'Cookie: session=value_session'


Раскрыть
titleОтвет в случае успеха.


Блок кода
[
{
"creative_id": "543050",
"result": "registration_skipped",
"token": "Pb3XmBtztBgmuSDUGtU1NmQDeBeCZiEh4FjLqBe",
"url": "https://getintent.com"
},
{
"creative_id": "524404",
"result": "registration_skipped",
"token": "Kra23XP8k",
"url": "https://getintent.com"
},
{
"creative_id": "71177",
"result": "registration_skipped",
"token": "Pb3XmBtzt88xWjpHWVvRz9ikc6kDwu2LdVBdrmv",
"url": "https://linuxrussia.com"
},
{
"creative_id": "589357",
"result": "token_registered",
"token": "Kra23h6xx",
"url": "https://getintent.com"
}
]