Java Examples for Bing Ads
The Java code examples for Bing Ads are developed and run within the environment described in Getting Started Using Java with Bing Ads Services. Your custom configuration may vary.
To get started developing Bing Ads applications with Java, Installing the SDK and either start with the provided examples or follow one of the application walkthroughs for a Web or Desktop application.
These examples show how to manage customers, accounts, and users. For related information, see Managing Customer Accounts.
|Link to Client Accounts in Java||Use the Customer Management Service with agency credentials to invite a client, and use client credentials to accept the invitation. Run this sample multiple times to update and observe the status change, for example from LinkPending to LinkAccepted to Active.||AddClientLinks|
|Search Accounts by User in Java||Use the Customer Management Service to search for accounts that can be managed by the current authenticated user.||GetUser|
These examples demonstrate how to setup and manage ads, associate ad extensions, and bid on keywords. For related information, see Campaign Setup and Basics.
These examples demonstrate how to setup and manage ad extensions. For more information, see Ad Extensions.
|Bulk Ad Extensions in Java||Use the Bulk Service to download and upload ad extensions.||The |
|Ad Extensions in Java||Use the Campaign Management Service to add, get, and delete extensions for an account’s ad extension library, set, get, and delete the extension associations with a campaign, and determine why an extension failed editorial review.||AddAdExtensions|
These examples demonstrate how to setup and manage Bing Shopping campaigns with product ads. For more information, see Campaign Setup and Basics.
|Bulk Shopping Campaigns in Java||Use the Bulk Service to apply product conditions for Bing Shopping campaigns.||The |
|Shopping Campaigns in Java||Use the Campaign Management Service to apply product conditions for Bing Shopping campaigns.||AddAdGroups|
These examples demonstrate how to setup and manage targets for campaigns and ad groups. For more information, see Show Ads to Your Target Audience.
|Geographical Locations in Java||Download the comma separated value (CSV) file that contains geographical location information that can be used with Bing Ads location targeting.||Not applicable.|
|Targets in Java||Use the Campaign Management Service to associate targets with a campaign and ad group.||AddTargetsToLibrary|
This example demonstrates how to discover opportunities to improve your ads' performance and increase your return on investment. For related information, see Researching Bid and Budget Opportunities.
|Optimize Budget in Java||Use the Ad Insight Service to get the budget opportunities for the specified account.||GetBudgetOpportunities|
This example demonstrates how to get detailed reports about accounts, campaigns, and ad groups. The information can help you track finances, measure performance, and adjust settings to optimize your budget or campaign. For related information, see Getting Reports.
|Report Requests in Java||Use the Reporting Service to request and retrieve a keyword performance report.||SubmitGenerateReport|