Follow

How to create an offer with logo or creatives?

Time to read: 3 min

topic.pngThe article covers the following topics:

General Info

First of all, to get started with API, you need to find your API-key. To do it, just navigate to 'Users' Tab - > 'Users management' -> 'User edit page':

Screenshot_36.png

 import.png Only the General manager has permission to get the 'User edit page'. 

Next thing you need is API URL, you can find it in 'Settings' Tab -> 'Settings' -> 'Tracking domains' -> 'URLs' section:

Markup_2020-06-16_at_17.55.35.png

click__1_.pngFind out more about where you can find your/Affiliate's API-key and API URL here

API Request Structure: GET/POST + api domain + path + ? + api-key=189471975956279174174.

It should be noted that header content-type - multipart/form-data is used for uploading files (logo, creative files) and content-type - application/x-www-form-urlencoded is used on an ongoing basis

[POST] Add offer

To create new offer via API, you need to navigate to the 'Offers' section in the API Doc and choose the 'Add offer' method (follow the link):

chrome-capture__15_.gif

Here you may see a lot of parameters that can be used to create a new offer.

These parameters are required:

  • title - Offer title
  • advertiser - Advertiser ID
  • url - Tracking URL

Example on how to add new offer with logo and creatives via API:

1) First of all, make sure that headers are entered correctly: 

Screenshot_62.png

 import.png If you create an offer manually via API and want to add a logo or creative files/downloads, make sure that header content-type - multipart/form-data is used. 

2) Enter required and all needed parameters in body section: 

Screenshot_77.png

Here you may see a little demo on how to add file: 

_______2020_03_09_14_34_17_483.gif

cURL Request

The example of offer creation with logo and creatives via cURL request:

curl --location --request POST 'https://api-rocketcompany.affise.com/3.0/admin/offer' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Content-Type: multipart/form-data' \
--header 'api-key: bf09c801ff9b95b14ac8e17d6e4904b6' \
--form 'title=OFFER WITH LOGO AND CREATIVES' \
--form 'advertiser=5e39279bac611cda7e5765ab' \
--form 'url=https://track.gjane.com/hc/click?afclick={clickid}&afpid={pid}&afoffer={offer_id}' \
--form 'logo=@/C:/Users/37525/Downloads/api.png' \
--form 'creativeFiles[0]=@/C:/Users/37525/Downloads/api.png' \
--form 'creativeUrls[1]=https://google.drive' \
--form 'creativeDownloads=https://google.drive/download' \

 

article.pngYou may also find the following articles helpful:

 If you have more questions on how to create an offer with logo or creatives via API, feel free to contact the Affise Support Team via support@affise.com or your Dedicated Account Manager.

Written by Anastasia Deryugina 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.