I'm trying to add a CreativeApprovalStatus Predicate to only include
approved ads. This looks something like the following:

// Create predicates.
Predicate creativeApprovalStatusPredicate =
        new Predicate("CreativeApprovalStatus", PredicateOperator.IN, new
String[] {"APPROVED"});
selector.setPredicates(new Predicate[]
{creativeApprovalStatusPredicate});

When I add this to an Ad Performance report, I end up with no results
returned. I'm using the Java Client Library. Here's the soap request:

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
adwords/cm/v201101"><ns1:authToken xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v201101">******</
ns1:authToken><ns1:clientEmail>******</
ns1:clientEmail><ns1:developerToken>******</
ns1:developerToken><ns1:userAgent>AdWords API Java Client Library -
v8.3.0 - ROI Revolution</ns1:userAgent><ns1:validateOnly>false</
ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></
ns1:RequestHeader></soapenv:Header><soapenv:Body><mutate
xmlns="https://adwords.google.com/api/adwords/cm/
v201101"><operations><operator>ADD</
operator><operand><selector><fields>CampaignStatus</
fields><fields>AdGroupStatus</fields><fields>Status</
fields><fields>AdGroupId</fields><fields>Id</
fields><fields>CampaignName</fields><fields>AdGroupName</
fields><fields>Headline</fields><fields>Description1</
fields><fields>Description2</fields><fields>DisplayUrl</
fields><fields>Url</fields><predicates><field>CreativeApprovalStatus</
field><operator>IN</operator><values>APPROVED</values></
predicates><dateRange><min>20110314</min><max>20110314</max></
dateRange></selector><reportName>Ad Performance Report #1300127624311</
reportName><reportType>AD_PERFORMANCE_REPORT</
reportType><dateRangeType>CUSTOM_DATE</
dateRangeType><downloadFormat>TSV</downloadFormat></operand></
operations></mutate></soapenv:Body></soapenv:Envelope>

Jeremy Aube
ROI Revolution

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to