Hi, I'm in the process of upgrading to version 201109 of the API (from 
version 200909), using the .NET client library. We have a method that 
retrieves all keywords for a given AdGroup using AdGroupCriterionService 
and performs some operations using the destinationUrl. After upgrading to 
v201109, we are no longer receiving the destinationUrl field in the 
BiddableAdGroupCriterion objects (it's always null).

The code we're using is this:

Selector selector = new Selector();
selector.fields = new string[] {"AdGroupId","CriterionUse"};

Predicate adGroupPredicate = new Predicate();
adGroupPredicate.field = "AdGroupId";
adGroupPredicate.@operator = PredicateOperator.EQUALS;
adGroupPredicate.values = new string[] {adGroupId.ToString()};

Predicate criterionUsePredicate = new Predicate();
criterionUsePredicate.field = "CriterionUse";
criterionUsePredicate.@operator = PredicateOperator.EQUALS;
criterionUsePredicate.values = new string[] {"BIDDABLE"};

selector.predicates = new Predicate[] 
{adGroupPredicate,criterionUsePredicate};

AdGroupCriterionPage page = this.CriterionService.get(selector);

This works, but does not return the destinationUrl. If I modify the 
selector like so:

Selector selector = new Selector();
selector.fields = new string[] 
{"AdGroupId","CriterionUse","DestinationURL"};

We receive the following exception:

SelectorError.INVALID_FIELD_NAME @ serviceSelector; 
trigger:'DestinationURL'; errorDetails:DestinationURL 

destinationUrl is marked as a selectable field for 
BiddableAdGroupCriterion, but not for NegativeAdGroupCriterion, which I 
assume is why this doesn't work. How can we retrieve the destinationUrl 
field using the AdGroupCriterionService?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to