Does anyone know why I would be getting an `Invali...
# announcements
n
Does anyone know why I would be getting an
Invalid selections for field(s)
error using the bing ads tap?
d
@nevin_morgan Is there anything more to the error message? Judging by https://github.com/singer-io/tap-bing-ads/blob/master/tap_bing_ads/__init__.py#L487, the actual invalid selections would also be printed in JSON format
n
yup. I just didn't know if it was something simple like I had set the wrong capabilities in my meltano.yml file.
```CRITICAL Invalid selections for field(s) - { FieldName: [IncompatibleFields] }: { "DeviceOS": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "ImpressionSharePercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "ImpressionLostToBudgetPercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "TopVsOther": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "BidMatchType": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "BudgetName": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "BudgetStatus": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "BudgetAssociationStatus": [ "AbsoluteTopImpressionSharePercent", "ClickSharePercent", "ExactMatchImpressionSharePercent", "ImpressionLostToBudgetPercent", "ImpressionSharePercent", "TopImpressionRatePercent", "TopImpressionShareLostToBudgetPercent", "TopImpressionShareLostToRankPercent", "TopImpressionSharePercent" ], "ExactMatchImpressionSharePercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "ClickSharePercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "AbsoluteTopImpressionSharePercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "TopImpressionShareLostToRankPercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "TopImpressionShareLostToBudgetPercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "TopImpressionSharePercent": [ "BidMatchType", "DeviceOS", "TopVsOther", "BudgetAssociationStatus", "BudgetName", "BudgetStatus" ], "TopImpressionRatePercent": [ …
relevant meltano.yml section
Copy code
extractors:
  - name: tap-bing-ads
    namespace: bingads
    pip_url: -e tap-bing-ads
    executable: tap-bing-ads
    capabilities:
    - catalog
    - discover
    - state
    settings:
    - name: start_date
    - name: customer_id
    - name: account_ids
    - name: oauth_client_id
    - name: oauth_client_secret
    - name: refresh_token
    - name: developer_token
d
The readme states:
fieldExclusions
- Indicates which other fields may not be selected when this field is selected. If you invoke the tap with selections that violate fieldExclusion rules, it is likely that the tap will fail.
So it seems like there's some Bing-specific rules about which fields can(not) be used together
The default selection pattern is
*.*
, which bing-ads clearly doesn't like.
n
I had a solid RTFM moment here. I honestly keep missing things on the homepage because I expect them to be under the documentation link
probably would have avoided the question if I had read https://meltano.com/#selecting-entities-and-attributes-for-extraction
d
That's my bad 😞 Details like that should be in the docs, as well, but the CLI docs are still pretty rough in general and I've kind of been putting off giving them a good rewrite in favor of just making sure the homepage content is great
n
I work for a marketing agency, so I honestly don't expect so much valuable information on the homepage lol
I keep expecting marketing wank on the homepage and instead find actually valuable information on yours
d
😄
n
thanks for the help and reminding me to do some reading 🙂
d
Thanks for reminding me it's time to start moving some of the additional details from the homepage back to the docs 🙂