Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
424 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am using bingads python library in order to create an application that allows users to get Campaigns data.
Right now the user logged can get this data only if the user account (account-1) who does the OAuth flow is the same as the one who has been granted the developer token.
If I use the developer token assigned to account-1, it works. But I clearly want that external users can use the application. How can I fix it?
I am using GetCampaignsByAccountId and the following authorization lines:
oauth_web_auth_code_grant = OAuthWebAuthCodeGrant(
client_id=client_id,
client_secret=client_secret,
env=env,
redirection_uri=redirection_uri )
# Autorizzazione
authorization_data = AuthorizationData(
developer_token=developer_token,
authentication=oauth_web_auth_code_grant,
customer_id=app_customer_id
)
authorization_data.state = state
authorization_data.authentication.request_oauth_tokens_by_refresh_token(refresh_token)
Thanks,
Joe