Hi Neil,

You can filter for just the active keywords by including a predicate for 
Status EQUALS ACTIVE.

Best,
- Eric Koleda, AdWords API Team

On Thursday, April 5, 2012 9:16:15 AM UTC-4, Neil Kirk wrote:
>
> For example, here is a parameter that I tried to set:
> <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="BiddableAdGroupCriterion">
> <adGroupId>715289155</adGroupId>
> <criterionUse>BIDDABLE</criterionUse>
> <criterion xsi:type="Keyword">
> <id>16494201</id>
> <type>KEYWORD</type>
> <Criterion.Type>Keyword</Criterion.Type>
> <text>bulk sms</text>
> <matchType>BROAD</matchType>
> </criterion>
> <AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
> <stats>
> <network>SEARCH</network>
> <Stats.Type>Stats</Stats.Type>
> </stats>
> </entries>
>
> but it returns an error:
> <?xml version="1.0"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Header>
>     <ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201109";>
>       <requestId>0004bce84aefc2400a3464c700001bbe</requestId>
>       <serviceName>AdParamService</serviceName>
>       <methodName>mutate</methodName>
>       <operations>1</operations>
>       <responseTime>111</responseTime>
>       <units>1</units>
>     </ResponseHeader>
>   </soap:Header>
>   <soap:Body>
>     <soap:Fault>
>       <faultcode>soap:Server</faultcode>
>       <faultstring>[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[0].operand; trigger:'AdGroupId = 715289155, CriterionId = 
> 16494201']</faultstring>
>       <detail>
>         <ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/cm/v201109";>
>           <message>[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ 
> operations[0].operand; trigger:'AdGroupId = 715289155, CriterionId = 
> 16494201']</message>
>           
> <ApplicationException.Type>ApiException</ApplicationException.Type>
>           <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="AdParamError">
>             <fieldPath>operations[0].operand</fieldPath>
>             <trigger>AdGroupId = 715289155, CriterionId = 
> 16494201</trigger>
>             
> <errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString>
>             <ApiError.Type>AdParamError</ApiError.Type>
>             <reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason>
>           </errors>
>         </ApiExceptionFault>
>       </detail>
>     </soap:Fault>
>
> this happens to about 50% of my criterion, which is kinda wasteful in 
> terms of API units.
>
> Any help would be massively appreciated.
>
> On Thursday, 5 April 2012 14:09:23 UTC+1, Neil Kirk wrote:
>>
>> Hi,
>>
>> I am setting paramaters for my keywords using the Perl API. When I get 
>> the keywords for a particular ad group, it retrieves all the keywords and 
>> so it trying to set parameters for a lot of keywords that it doesn't need 
>> to/is returning a lot of keywords that it doesn't need to.
>>
>> Is there any way to filter the get so that it returns only keywords that 
>> are in use?
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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