Currently the script doesn't check if the `adConfig.json` file is valid. Add the validation to the start of the script.