Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Windows Live
 CampaignManagementServiceClient.Upd...
Windows Live
CampaignManagementServiceClient.UpdateKeywords Service Operation (V5.1)

Updates the keywords within a specified ad group.

// Syntax when using message contract types.
public UpdateKeywordsResponse UpdateKeywords (
  UpdateKeywordsRequest request
}
// Syntax when not using message contract types.
public void UpdateKeywords (
  int adGroupId,
  Keyword[] keywords
)

Message Contract Parameters

Parameter Description

request

An UpdateKeywordsRequest object that contains the header and parameter information for the service operation.

Non-Message Contract Parameters

Parameter Description

adGroupId

Identifies the ad group whose keywords are updated.

keywords

An array of Keyword objects that contains the new information for the keywords.

The Id element of each of these objects identifies the keyword to update.

This array can contain no more than 1,000 elements.

If an adCenter API error occurs, a FaultException exception is thrown that contains an EditorialApiFaultDetail object. It contains the appropriate error information. For more information about fault detail objects, see Microsoft adCenter API Error Handling. For a list of campaign-management–specific error codes, see Campaign Management Error Codes. For a list of generic error codes, see Common Error Codes.

Message Contract Return Value

An UpdateKeywordsResponse object that contains the response information for the service request.

Set the properties of the Keyword objects in the keywords array to the new values, and then set all the properties to null that should not be updated.

The ExactMatchBid, BroadMatchBid, PhraseMatchBid, ContentMatchBid, and NegativeKeywords elements can be changed without causing the keyword to go through the editorial validation process. However, any change to the Param1, Param2, or Param3 element causes the keyword to go through the editorial validation process.

To update only the bid amounts for a keyword, set the Keyword.ExactMatchBid, Keyword.BroadMatchBid, Keyword.PhraseMatchBid, and/or Keyword.ContentMatchBid properties to the new bid amounts. If there are bids that should not be updated, set their corresponding properties to null.

To remove an existing bid match type, set the corresponding bid amount property to zero (not null), and then call the UpdateKeywords service operation. For example, to remove the phrase match type, set Keyword.PhraseMatchBid to zero, and then call the UpdateKeywords service operation.

Because this service operation accepts an array for an argument, we recommend that you read the Quotas in Microsoft adCenter topic before you use this service operation. Arrays can consume a large percentage of your allocated quota.

WSDL: CampaignManagement.svc in version 5.1.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker