Source Bing Ads: change account id field name #9972
Labels
area/connectors
Connector related issues
area/documentation
Improvements or additions to documentation
community
connectors/source/bing-ads
connectors/sources-api
team/connectors-python
team/documentation
type/bug
Something isn't working
I tried to setup the Bing Ads connector as source. However following the exact steps I got the following error:
"Exception(\"You don't have accounts assigned to this user.\")"
.So I followed the whole setup again step by step and Airbyte requested an Account ID from me. When I went to the docs Microsoft said:
So I thought the Account Id was the aid key/value pair. However: when I inserted it in Airbyte it the gave above error. Well, cue 3 hours later. I thought let's have a look at the JSON request/response of airbyte. And then I saw the following JSON.
So I found out that the field that in Airbyte, which is called Account Id, was send as user_id . On top of that, in the source of the Bing Ads connector I found the following:
airbyte/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/spec.json
Line 97 in 98b5aab
So I dove into it further, and checked the url which microsoft provided. I found three values: cid, aid and uid
https://ads.microsoft.com/cc/Users?cid=12345678&aid=12345678&uid=12345678987 .
Well, what are the chances that this is the user_id that is being send over JSON. I swapped out the values and BAM, miracle happened. It worked!
So I forked the repo and tried to change the value, but I couldn't test it. So I did my best to document the problem and point you all in the right direction.
TLDR
Account Id in the Bing ads connector should be called User Id. The file/line where it should be changed is
airbyte/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/spec.json
Line 97 in 98b5aab
&&
airbyte/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/spec.json
Line 98 in 98b5aab
Account Id should be changed to User Id
The text was updated successfully, but these errors were encountered: