BingAds / BingAds-PHP-SDK

Other
56 stars 45 forks source link

Error: invalid_client Description: AADSTS70002: The provided request must include a 'client_secret' input parameter. (UPDATED) #168

Closed muhammadasfar closed 1 year ago

muhammadasfar commented 2 years ago

Environment:

Problem Description: (UPDATED)

1- After getting a refresh and access token. I am getting the below error when I call ReportRequests.php

Error: invalid_client Description: AADSTS70002: The provided request must include a 'client_secret' input parameter. Trace ID: 45xxxx-3bd4-4890b-8cnb1-1c63xxxxxx00 Correlation ID: fxxxxxd-8vbn5-4axe4-8002-a5sadadadabb6c Timestamp: 2022-08-15 14: 54: 54Z You need to provide consent for the application to access your Microsoft Advertising accounts. Copy and paste this authorization endpoint into a web browser and sign in with a Microsoft account with access to a Microsoft Advertising account:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?scope=https://ads.microsoft.com%2Fmsads.manage+offline_access&client_id=1xxxxxx-xxx-xxxxx&response_type=code&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient

After you have granted consent in the web browser for the application to access your Microsoft Advertising accounts,

Any suggestion or solution to this issue?