Friday, 5 February 2016

Фильтрация значений Cpc Bid в репорте

Здравствуйте. 
Качаю отчёт ADGROUP_PERFORMANCE_REPORT.
Фильтрую его по нескольким Predicates:
array('AdGroupStatus', 'EQUALS', 'ENABLED')
array('CampaignId', 'IN', $campaigns_ids)
(с таким фильтром работает)
Так же в данном отчёте есть следующее поле: 

CpcBid

Cost per click bid. Values can be one of: a) a money amount in micros, b) "auto: x" or "auto" if AdWords is automatically setting the bid via the chosen bidding strategy, or c) "--" if no CPC bid applies to the row.

TypeMoney
Display NameDefault max. CPC
XML AttributedefaultMaxCPC
BehaviorAttribute
FilterableTrue
Supports Zero ImpressionsTrue

Вопрос: как мне отфильтровать это значение, чтоб мне вернулись только значения(цифровые), тоесть пункт a) ?
Так не выходит: 

array('CpcBid', 'NOT_IN', array('--', 'auto', 'auto:x'))

Parameters:
__rdxml: <?xml version="1.0"?>
<reportDefinition>
  <selector>
    <fields>AdGroupId</fields>
    <fields>AdGroupStatus</fields>
    <fields>AveragePosition</fields>
    <fields>CpcBid</fields>
    <fields>CampaignId</fields>
    <predicates>
      <field>AdGroupStatus</field>
      <operator>EQUALS</operator>
      <values>ENABLED</values>
    </predicates>
    <predicates>
      <field>CampaignId</field>
      <operator>IN</operator>
      <values>#</values>
      <values>#</values>
      <values>#</values>
      <values>#</values>
      <values>#</values>
    </predicates>
    <predicates>
      <field>CpcBid</field>
      <operator>NOT_IN</operator>
      <values>--</values>
      <values>auto</values>
      <values>auto:x</values>
    </predicates>
    <dateRange>
      <min>2016-02-05</min>
      <max>2016-02-05</max>
    </dateRange>
  </selector>
  <reportName>56b48d941d9e6</reportName>
  <reportType>ADGROUP_PERFORMANCE_REPORT</reportType>
  <dateRangeType>CUSTOM_DATE</dateRangeType>
  <downloadFormat>XML</downloadFormat>
  <includeZeroImpressions>false</includeZeroImpressions>
</reportDefinition>

Response Code: 400
Error Message: Report download failed. Underlying errors are 
Type = 'SelectorError.INVALID_PREDICATE_VALUE', Trigger = '--', FieldPath = 'selector'. Type = 'SelectorError.INVALID_PREDICATE_VALUE', Trigger = 'auto', FieldPath = 'selector'. Type = 'SelectorError.INVALID_PREDICATE_VALUE', Trigger = 'auto:x', FieldPath = 'selector'. 



--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/33253e45-3694-4e1a-8a41-f9e2079b582a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment