C # procedure for adding a web reference to a Windows application or C # console application

Source: Internet
Author: User
Tags adwords api

Recently, Google adwords editor APIs need to be called in the project. Therefore, you have created a solution for testing!

When I added web references to the console application in Visual Studio 2008, I did not find the "add web reference" menu at the moment. Later I found it in advanced. I don't have to forget something! As follows:

 

1. In Solution Explorer, right-click the name of the project to add a service, and click Add service reference ".
The "add service reference" dialog box appears.

2. In the "add service reference" dialog box, click the "advanced" button.
The "service reference Settings" dialog box appears.

3. In the "service reference Settings" dialog box, click "add web reference ". The "add web reference" dialog box appears.

4. Enter the URL of the Web service to be used in the URL box. If you do not know the URL, use the link in the browsing pane to find the required web service.

Image Description:

1. In the console application project, right-click the project and no menu item "add web reference..." is found.

2. There is a menu item "add web reference..." In webapp.

3. In fact, there are corresponding references, as long as you follow the steps below, OK

Enter the URL of the advertisement series in the Google adwords API:

Https://adwords.google.com/api/adwords/v13/CampaignService? WSDL

You can rename the reference, for example:

Then you can use it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.