mohsin
03/04/2021, 10:42 PMbingads.exceptions.OAuthTokenRequestException: error_code: invalid_grant, error_description: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.
douwe_maan
03/04/2021, 10:48 PMmeltano config tap-bing-ads
? Is that the exact same config that you're saying works when using the Singer tap by itself?mohsin
03/04/2021, 10:50 PM{
"developer_token": "*****",
"oauth_client_id": "******8",
"oauth_client_secret": "******",
"refresh_token": **************",
"customer_id": "******",
"account_ids": "********",
"start_date": "2021-03-05T00:00:00Z"
}
mohsin
03/04/2021, 10:51 PMmohsin
03/04/2021, 10:51 PMdouwe_maan
03/04/2021, 10:54 PMTrue
, so it being left out should be OK: https://github.com/singer-io/tap-bing-ads/blob/master/tap_bing_ads/__init__.py#L107douwe_maan
03/04/2021, 10:54 PMdouwe_maan
03/04/2021, 10:56 PMmohsin
03/04/2021, 10:57 PMmohsin
03/04/2021, 11:00 PMdouwe_maan
03/04/2021, 11:00 PMmeltano config tap-bing-ads
works when passed directly tap-bing-ads
using --config
, but not when Meltano passes it?
Is there a dollar sign in any of those tokens and secrets, by any chance?douwe_maan
03/04/2021, 11:00 PMmohsin
03/04/2021, 11:01 PMdouwe_maan
03/04/2021, 11:23 PMdouwe_maan
03/04/2021, 11:25 PMaditya_sastry
03/05/2021, 1:12 AMrequire_live_connect: false
in your meltano.yml, I couldn't get the live connect endpoint to work for me when set to true
2. If you're using the code grant flow (refresh token) you should not need a Redirect URI
OAuth Scopes: _`scope=openid%20profile%20https://ads.microsoft.com/ads.manage%20offline_access`_
@mohsin - Happy to hop on a call as well to see if I can helpdouwe_maan
03/05/2021, 1:32 AMmohsin
03/05/2021, 2:06 PM"error_description": "AADSTS70000: The provided value for the 'code' parameter is not valid. The code has expired.\r\nTrace ID: c48a954a-3f49-459a-bd49-3478995d6300\r\nCorrelation ID: a6b615f7-116a-4587-bfa0-93e89a51545e\r\nTimestamp: 2021-03-04 23:12:00Z",
mohsin
03/05/2021, 2:07 PMmohsin
03/05/2021, 2:07 PMmohsin
03/05/2021, 5:42 PMaditya_sastry
03/05/2021, 6:28 PMmohsin
03/05/2021, 6:30 PMdouwe_maan
03/05/2021, 10:30 PMtaylor
04/06/2021, 8:40 PMmohsin
04/06/2021, 9:06 PMmohsin
04/06/2021, 9:09 PMtaylor
04/06/2021, 9:10 PMmohsin
04/07/2021, 6:47 PMFalse
not false
, second the bing-api python doesn’t consider this params. Still consider the requireLiveconnect to True
mohsin
04/07/2021, 7:06 PMrequireLiveconnect
into meltano.yml file, but the change not affect into the package. I debug the bingads package and find out the value of requireLiveconnect
still show me True which produce an error
bingads.exceptions.OAuthTokenRequestException: error_code: invalid_grant, error_description: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.
mohsin
04/07/2021, 7:07 PMmohsin
04/07/2021, 7:07 PMtaylor
04/07/2021, 7:30 PMrequireliveconnect
. Are you saying the documentation needs to be updated here https://meltano.com/plugins/extractors/bing-ads.html#require-live-connect ? Looking at https://github.com/singer-io/tap-bing-ads/blob/master/tap_bing_ads/__init__.py#L107 it’s fetching require_live_connect
so that’s what would need to be passed in.mohsin
04/07/2021, 7:41 PMrequire_live_connect
taylor
04/07/2021, 7:44 PMREQUIRED_CONFIG_KEYS
here which filters and config being passed throughtaylor
04/07/2021, 7:44 PMtaylor
04/07/2021, 7:46 PMmohsin
04/07/2021, 9:11 PMmohsin
04/07/2021, 9:14 PMtaylor
04/07/2021, 9:19 PMguide me how can i raise a request on thisyou can make a pull request on GitHub to update https://github.com/singer-io/tap-bing-ads/blob/master/tap_bing_ads/__init__.py#L27-L35 to include the
require_live_connect
config. it seems they’re fairly unresponsive to PRs though so forking it and fixing it yourself may be a solution.taylor
04/07/2021, 9:20 PMmohsin
04/07/2021, 9:21 PM