Skip to content

Instantly share code, notes, and snippets.

View henriquemeloo's full-sized avatar
🔧

Henrique Melo henriquemeloo

🔧
View GitHub Profile
@henriquemeloo
henriquemeloo / get_bing_ads_refresh_token.sh
Last active November 6, 2024 18:35
Get Bing Ads refresh token
#!/bin/bash
# https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-get-tokens?view=bingads-13
set -e
# check if CLIENT_ID and CLIENT_SECRET variable are set
if [[ -z $CLIENT_ID ]]; then
echo "Environment variable CLIENT_ID is not set" 1>&2
exit 1