How to use API to MCM childPulisher's report data

254 views
Skip to first unread message

Jay Cho

unread,
Dec 12, 2023, 9:00:11 PM12/12/23
to Google Ad Manager API Forum
Hi. 

I would like to retrieve daily data for the MCM child account set in the account using the information (session) of the parent account. How can I do this?

I tried to get child session to use child network code. but fail. 

Ad Manager API Forum Advisor

unread,
Dec 14, 2023, 8:15:31 AM12/14/23
to j...@adop.cc, google-doubleclick...@googlegroups.com
Hello,

Thank you for reaching out to the Ad Manager API support team.

By reviewing your concern, I understand that you want to get the daily data for the MCM child account. I would like to inform you that if you want to use the child account network then, you should be authorized to use it. Could please confirm how you are using to get the daily data for the MCM child account and please share the following details to investigate further:
  • Network code and Child Network code.
  • Complete SOAP request and response logs (SOAP logging must be enabled).
  • Error screenshots (if any).
  • The user email / service account email used for authenticating the API query.
You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1VRm:ref"

Thanks,
 
Google Logo Ad Manager API Team


Message has been deleted

Ad Manager API Forum Advisor

unread,
Dec 19, 2023, 4:38:28 AM12/19/23
to j...@adop.cc, google-doubleclick...@googlegroups.com
Hi,

Thank you for getting back to us.

Please be informed that I have removed your response from the forums as it contains the PII information.

Yes, it is possible to retrieve child publisher's daily data through the Ad Manager API using the parent publisher's session with appropriate delegation settings. If the delegation type with the child publisher is set to Manager account, ensure that the child publisher has granted the necessary permissions to the parent publisher's manager account. 

As per the provided error logs, I could see that you are getting "AuthenticationError.NO_NETWORKS_TO_ACCESS" error which means that you have not enabled your production account for API access. In order to enable API access to your production environment, you can refer to the Enabling API access documentation for more information.

Jay Cho

unread,
Dec 22, 2023, 2:19:44 AM12/22/23
to Google Ad Manager API Forum
Hi, We've already finished setting up API for both parent publisher and Child publisher on this Tuesday. However, "AuthenticationError.NO_NETWORKS_TO_ACCESS" error is still occurring. Does API access take a long time to apply? And Is there anything else I need to do? Thank you for your help. :)

image1.png

2023년 12월 19일 화요일 오후 6시 38분 28초 UTC+9에 Ad Manager API Forum Advisor님이 작성:

Ad Manager API Forum Advisor

unread,
Dec 22, 2023, 4:11:25 AM12/22/23
to j...@adop.cc, google-doubleclick...@googlegroups.com

Hi,

Thank you for getting back to us.

To analyse the issue further, could you provide the following information:

  • Complete SOAP request and response logs (SOAP logging must be enabled).
  • The user email used for authenticating the Ad Manager API.
  • Error screenshots (if any).
You can send them via Reply privately to the author option or Direct Reply to this email.

김다영 (Dorothy)

unread,
Dec 28, 2023, 12:09:11 AM12/28/23
to Google Ad Manager API Forum
 Hi,

I wrote the code this way to get the Child Publisher's session, can you check if it's the right way?
Get child session.png

And I will share our information. Please check the attached file as well.

Network Code

- Parent Publisher : 223513049 (adop...@gmail.com)
- Child Publisher : 22861800949

We want to import the data of the MA account Child Publisher (22861800949) through the account of Parent Publisher (223513049).Both accounts are API access active. 
However, the error "AuthenticationError.NO_NETWORKS_TO_ACCESS" occurs. What should I do?

Thank you for your help. :)
2023년 12월 22일 금요일 오후 6시 11분 25초 UTC+9에 Ad Manager API Forum Advisor님이 작성:
Error screenshot.png
Debus logging.txt

Ad Manager API Forum Advisor

unread,
Dec 28, 2023, 3:47:46 AM12/28/23
to dor...@adop.cc, google-doubleclick...@googlegroups.com
Hi,

Thank you for getting back to us.

I think you might have missed to see our earlier response, for clarification I am posting it again here.​

Upon reviewing, I could see that you are using a personal email for accessing the API and that is the reason you are facing the issues. Please note that the Ad Manager API supports only two types of authentication types to authenticate with the Ad Manager API i.e, you can use either Service account or Web application OAuth2. You may get all roles in your network with the getAllRoles() method. Please follow the steps outlined in the API documentation to authenticate your Ad Manager API requests. 

Hope this helps.
Reply all
Reply to author
Forward
0 new messages