Skip to Content
Google Advertising Tools
book

Google Advertising Tools

by Harold Davis
January 2006
Beginner to intermediate
366 pages
11h 42m
English
O'Reilly Media, Inc.
Content preview from Google Advertising Tools

Chapter 14. Programming the AdWords API

In this chapter you’ll learn how to use the AdWords API web services to program a web application that allows users to create a campaign, an ad, and keywords in their Google AdWords account.

From a high level, you’ll need to:

Get Google’s ID for a campaign

One way to accomplish this (shown in this chapter) is to successfully create a new campaign; the ID is part of the return value when the campaign is created.

Use the campaign’s ID to create an ad group, and get the ID for the ad group

When you create a new ad group, its ID is part of the return value from the call to the web service that creates the ad group.

Add a creative (a creative is a text or graphical ad) to the ad group

You need the ad group ID to do this.

Add keywords, used for contextual targeting, to the ad

This also requires the Ad Group ID.

Along the way, add various optional and required pieces of information

For example, you can’t create a campaign without providing a budget for the campaign, and you can’t create an ad group without providing the maximum CPC (cost per click) you are willing to pay for the keywords in the ad group.

Tip

It’s a good idea to understand how AdWords works before attempting to program with the AdWords API. See Part III for more information about working with AdWords.

If you think these steps sound like a lot of trouble for re-creating functionality that you can find in the Google AdWords application, you are right. There’s not much reason for creating ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Truth About Pay-Per-Click Search Advertising

The Truth About Pay-Per-Click Search Advertising

Kevin Lee
Google Advertising Tools, 2nd Edition

Google Advertising Tools, 2nd Edition

Harold Davis, David Iwanow
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 0596101082Errata Page