Re: get all placements from my account

2011-06-24 Thread Danial Klimkin
Hello Warren,


There is no way to filter by type at the moment unfortunately. One trick I 
can think of is:

  selector = {
:fields => ['Id', 'PlacementUrl'],
:predicates => [{
  :field => 'PlacementUrl',
  :operator => 'CONTAINS',
  :values => ['.']
}]
  }

which will work if you assume any url contains at least one dot. Officially 
I would recommend pulling all criteria and filtering on user side though as 
it is more reliable.


-Danial, AdWords API Team.

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


get all placements from my account

2011-06-21 Thread Hongyu Li
Do we have a way to get all placement from my account, Currently i dump all
criterion from the account and pick the Placements out.

do we have something like.

Predicate statusPredicate = new Predicate();
statusPredicate.field = "Criterion.Type";
statusPredicate.@operator = PredicateOperator.EQUALS;
statusPredicate.values = new string[] {"Placement"};



Thanks
Warren

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