You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to download a custom report made on ads.microsoft.com; which is made up of several clients (n=150) under control of a single Manager Account.
If I want to use request_report.py as a starting point, where can I inject the custom report name or report_id in order to download a single csv file?
looking at auth_helper.py (below), would I use my Manager account_id as the UserId? Also, if my first time running the script I logged into the wrong account, how re-log in to change the account_id its currently using (which is wrong) vs hardcoding the account_id (which is commented in) to one of the accounts under our management?
# Set to an empty user identifier to get the current authenticated Bing Ads user,
# and then search for all accounts the user can access.
user=get_user_response=customer_service.GetUser(
UserId=None
).User
accounts=search_accounts_by_user_id(customer_service, user.Id)
# For this example we'll use the first account.
# authorization_data.account_id=accounts['AdvertiserAccount'][0].Id
# authorization_data.customer_id=accounts['AdvertiserAccount'][0].ParentCustomerId
authorization_data.account_id = '########'
authorization_data.customer_id = accounts['AdvertiserAccount'][0].ParentCustomerId
The text was updated successfully, but these errors were encountered:
I am trying to download a custom report made on ads.microsoft.com; which is made up of several clients (n=150) under control of a single Manager Account.
If I want to use request_report.py as a starting point, where can I inject the custom report name or report_id in order to download a single csv file?
looking at auth_helper.py (below), would I use my Manager account_id as the UserId? Also, if my first time running the script I logged into the wrong account, how re-log in to change the account_id its currently using (which is wrong) vs hardcoding the account_id (which is commented in) to one of the accounts under our management?
The text was updated successfully, but these errors were encountered: