Hi Tommy,

Thank you for your reply.

It seems that your latest question is the same with the one you've sent in
your private reply. Please check my answer to this question on the private
thread.

Regards,
Ejay
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/09/19 21:07:38 adcenterinar...@gmail.com wrote:

Hi,
    is there a way to filter criterions in order to pickup only the one
with ParentCriterionId = NULL?

// Create predicates.
    $selector->setPredicates([
        new Predicate('AdGroupId', 'EQUALS', array($adGroupId)),    // <==
ok
        new Predicate('CriterionUse', 'EQUALS', array('BIDDABLE')),     //
<== ok
        new Predicate('PartitionType', 'EQUALS', array('SUBDIVISION')),
    // <== NOT ok
        ]);

The statement above doesn't work because I get:

[SelectorError.INVALID_PREDICATE_FIELD_NAME @ ; trigger:'PartitionType']

Where can I find the list of fields I can use in Predicate?
By reading
https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.Predicate
I should see somewhere that selector fields are filterable or not. Perhaps
only these fields
https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.AdGroupCriterion
can be filterable?

When fetching Criterions is it guaranteed that the first returned result is
the root? so I can stop at the first and request only 1 record.

Thank you,
Tom

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c746d37b-758f-49b9-aada-1d2806d88f74%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/c746d37b-758f-49b9-aada-1d2806d88f74%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ijlio1685o000001895j50000p4jl0y6cmj4d1h60o30c1g68qjie9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Add an ... TommyTek
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... TommyTek
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... TommyTek
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... TommyTek
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to