O'Reilly logo

Google Advertising Tools by Harold Davis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Navigating the AdWords Objects Hierarchy

In the real world, the most sensible use for the AdWords API is to integrate with systems that manage massive amounts of advertising. It makes sense to create custom AdWords API web service code if you are managing thousands of campaigns, ads, and keywords—on your own account or as an ad agency on behalf of clients.

Complex inventory systems that automatically publish AdWords ads when inventory items meet certain criteria—and revise these ads when an item goes out of stock—are also good candidates for automated interaction with the AdWords API.

In either of these cases, or to program any application that interacts with existing AdWords objects, you need to know how to navigate the hierarchy of existing AdWords objects in code. Starting with the authentication information for an account, you can programmatically access campaigns, ads, and the elements that make up ads (such as keywords).

This chapter shows you how to work your way from account information to campaign to AdGroup level, getting as granular as you’d like, all using C# and Visual Studio.NET .

Tip

C# .NET is appropriate to a technique that is most likely to be used in larger shops and allows a focus on the relationship of the AdWords classes and objects, rather than the XML of the AdWords API web services.

Working with the AdWords API Web Services

Visual Studio.NET provides excellent tools for working with web services. When you reference a web service in Visual Studio, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required