This Python script facilitates the creation of Eloqua campaigns in bulk by sending POST requests to the Eloqua API. The script reads campaign data from a CSV file, where each row corresponds to a campaign, and maps CSV columns to API parameters.
- Python 3.x
requests
library (pip install requests
)
- Open the script (
eloqua_campaign_creator.py
) in a text editor. - Replace the following placeholders with your actual Eloqua credentials and information:
your_pod_number
: Update with your Eloqua pod number.your_company_name
: Update with your Eloqua company name.your_username
: Update with your Eloqua username.your_password
: Update with your Eloqua password.path/to/your/csv/file.csv
: Update with the path to your CSV file.
- Ensure the Eloqua account has the necessary permissions access the API and delete syncs.
- Ensure Python and the
requests
library are installed. - Update the script with your Eloqua configuration.
- Open a terminal and navigate to the script's directory.
- Run the script by uncommenting the line
# create_bulk_campaigns(csv_file_path)
and executing the script.
Note: Before running the script, make sure to update the 'elqPod', 'elqCompanyName', 'elqUsername', and 'elqPassword' variables with your actual Eloqua credentials.
python eloqua_campaign_creator.py
The CSV file should have the following columns, mapping to Eloqua API parameters:
name
: Campaign namedescription
: Campaign descriptionregion
: Campaign regionproduct
: Campaign productbudgetedCost
: Budgeted cost for the campaign