1

I am trying to fetch the data from DV360 (DoubleClick Bid Manager API). I am able to fetch the meta data of the reports but I am unable to get the data of the report. I am trying to use Python but still unsuccessful. So far i am trying to follow documentation from google like this:

def print_queries(response):
  for q in response['queries']:
    print('%s\t%s' % (q['queryId'], q['metadata']['title']))
# Call the API, getting a list of queries.
response = doubleclick_bid_manager.queries().listqueries().execute()

# Print queries out.
print('Id\t\tName')
if 'queries' in response:
  # Starting with the first page.
  print_queries(response)
  # Then everything else
  while 'nextPageToken' in response and response['nextPageToken']:
    response = doubleclick_bid_manager.queries().listqueries(
        pageToken=response['nextPageToken']).execute()
    print_queries(response)
else:
  print('No queries exist.')
s_khan92
  • 969
  • 8
  • 21
  • Make sure you're using right credentials. Can you share the error message? Without that it's not possible to know the exact cause of the problem. – Shivam Sahil Nov 26 '20 at 10:56

0 Answers0