To create an advertising campaign, you begin by creating a Campaign object. The Campaign object specifies the name and description of the campaign, the time zone where the campaign operates, and the budget that you want to spend daily or monthly. To determine the elements of the Campaign object that you must set when you add a campaign, see the Add column of the campaign object’s Elements table.
Campaigns belong to accounts. Before you can add a campaign, you must know the identifier of the account that you want to add the campaign to. Typically, when you create an account, you store the account identifier locally because you often have to refer to it. However, to get the account identifier if you do not store it locally, call the GetAccountsInfo operation.
To add one or more campaigns, call the AddCampaigns operation. Set the Campaigns element to the list of campaigns that you want to add, and set the AccountId element to the identifier of the account that will own the campaigns. In addition, you must set the UserName, Password, DeveloperToken, and CustomerAccountId header elements. Set the CustomerAccountId header elements to the same value that you set the AccountId element to.
The AddCampaigns operation returns the identifiers of the campaigns that you added. You should store them locally for easy access to the campaigns later. For information about why you should store identifiers locally, see Using Bing Ads Services Efficiently.
After adding a campaign, you can add one or more ad groups to the campaign. An ad group contains ads and biddable entities. For more information about managing ad groups, see Ad Groups. For information about campaign organization, see Entity Hierarchy and Limits.