Access to Bing Ads campaign data by accounts differents from the developers

Joe_770 0 Reputation points
2024-06-13T07:18:13.5333333+00:00

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

Microsoft Advertising API
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.
399 questions
Microsoft Advertising
Microsoft Advertising
A platform for Microsoft's advertising efforts designed to manage all advertising and reporting for partner advertisers. Previously known as Bing Ads and adCenter.
59 questions
0 comments No comments
{count} votes