Hi,

you can do this with AdGroupCriterionService get method.

Selector should look something like this (in pseudocode):

var selector = new Selector()
{
  fields = new string[]
  {
    "AdGroupId"
  },
  predicates = new Predicate[]
  {
    new Predicate()
    {
      field = "CriterionUse",
      operator = Predicate.Operator.EQUALS,
      values = new string[] { "Biddable" }
    },
    new Predicate()
    {
      field = "KeywordText",
      operator = Predicate.Operator.EQUALS,
      values = new string[] { *keywordText* }
    },
    new Predicate()
    {
      field = "KeywordMatchType",
      operator = Predicate.Operator.EQUALS,
      values = new string[] { *keywordMatchType*.ToString() }
    },
  }
}

*keywordText* and *keywordMatchType* represent the keyword that you are
looking for.

The returned value will contain AdGroupCriterions with specified AdGroupId
property, so ad groups with these ids have the specified keyword.
If there are no AdGroupCriterions returned, then there are no ad groups with
the specified keyword.


On Mon, May 30, 2011 at 1:49 PM, php201101 <google...@hitflip.de> wrote:

> Hi
>
> We are using the php-client-lib for v201101. Is there a way to get all
> AdGroups that dont have a certain keyword? Or do I have to fetch *all*
> Adgroups and check for each of them if they have the keyword we are looking?
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
>



-- 
AdWords API in C# / VB.NET
<http://www.gemboxsoftware.com/Ppc/Overview.htm> adCenter
API in C# / VB.NET <http://www.gemboxsoftware.com/Ppc/Overview.htm> -
GemBox.Ppc component

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