Hi Mohammad,
Can you confirm if you are trying to download the report via DCM UI interface? If so, I would recommend contacting DCM Product Support Team as they would be better to assist with your concern. If it is related to DCM API, follow the prerequisites section of this guide to get started with DCM API. Please find below the links useful for downloading reports via API. Reports are generated in CSV or EXCEL format via DCM API, you need to post process those reports at your end to load it into the tables.
https://developers.google.com/doubleclick-advertisers/guides/download_reports
https://developers.google.com/doubleclick-advertisers/v3.3/reports
Regards,
Nikisha Patel, DCM API Team
Hi Asif,
You can download the python client libraries from here and follow the steps in the guide to set up the libraries. Once client libraries are installed successfully, you can use the reporting links shared in my previous mail to get started with downloading the reports. You will find this python code sample helpful to find and download the report file. Feel free to reach out if you face any issue or concern while downloading the report via DCM API.
Regards,
Nikisha Patel, DCM API Team
Please find attached the sample client file which I'm using to authenticate the account.
Hi Asif,
Can you confirm if you generated the JSON file for you application type as per the steps mentioned in this guide? The downloaded JSON file will have the following format:
{"installed":{"client_id":"XXXXXXXXXX.apps.googleusercontent.com","project_id":"xxxxxxxxx","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"xxxxxxxxxxxxxxxx","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
Can you please double check your application and the steps you followed while generating the credentials and retry the request after creating the client_secrets.json file from the above guide. Feel free to reach out if the issue still persists.
Also,I had to edit your post to delete the client_secret.json file as it contained private information of your account. Please note, you should not share the sensitive information on forum thread in future.
Regards,
Nikisha Patel, DCM API Team
Hi Nishika,I will again look into my service account file and will update you here.One question here, If I'll use this approach, will this approach suffice my use case to download the data from dcm on the daily basis without manual intervention?Thanks for understanding.Thanks,Asif
TypeError: cannot instantiate ctype 'EVP_MD_CTX' of unknown size
Hi Asif,
The error seems to be related to the client libraries error not the API error. I recommend posting the latest concern in Python client library issue thread. They will be able to assist better with this issue.
Client library GitHub issue thread: https://github.com/googleapis/google-api-python-client/issues
Regards,
Nikisha Patel, DCM API Team
Hi Asif,
As mentioned in the prerequisites section of the start up guide, you must have a user profile with access to your Campaign Manager account before using the DCM/DFA Reporting and Trafficking API. Once you have user profiles associated with the account, this code will generate the list of user profiles associated with the account in the below format.
{ "kind": "dfareporting#userProfileList", "etag": etag, "items": [ userProfiles Resource ] }
Regards,
Nikisha Patel, DCM API Team
Hi Asif,
A Service Account is a type of Google account that can be used by an application to access Google APIs programmatically via OAuth 2.0. Please refer to this guide for more information on Service Accounts and how to implement a service account.
Regards,
Nikisha Patel, DCM API Team
Hi Vipendra,
Please find my response to your queries below.
Is there a way if we can check that the user profile is created and have access to campaign manager account? Please refer this code sample to retrieve the list of all the user profiles for the current authorized user making call to the API using service account.
Also, Please let us know the steps required to add the user profile and providing access to campaign manager account so that we can relay the same to the client. You can refer to the step 2 of this guide to associate the Campaign Manager user profile with the service account email.