Description Usage Arguments Value Examples
Create token object and save it into .RDS file. Return object, if needed. You need to create REST API user in Criteo Marketing account.
1 | criteo_auth(client_id = NULL, client_secret = NULL, save_to_env = F)
|
client_id |
Login (Client ID) of Criteo REST API user. |
client_secret |
Client Secret of Criteo REST API user. |
save_to_env |
by default, False. If TRUE, saving auth data into global environment. |
By default, file "criteo_tokes.RDS" into folder with script and success message.
This is list with 4 parameters:
token: returned token with 300 seconds lifetime.
client_id: your client id from Criteo REST API. It need for future calls.
client_secret: your client secret from Criteo REST API. It need for future calls.
create_time: created time for auto-refresh.
1 2 3 4 5 6 7 8 | # Authentification in first package use
criteo_auth("mapi-41jf7549-fa1r-90af-pt54-o5jfhan91nty",
"D1s1by_X)Dgasd;g!*") # it is not real auth data
# If you want also save all data to global environment.
criteo_auth("mapi-41jf7549-fa1r-90af-pt54-o5jfhan91nty",
"D1s1by_X)Dgasd;g!*",
save_to_env = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.