$rootAdUnitId = $networkService->getCurrentNetwork()->getEffectiveRootAdUnitId(); | |
Hello Kamran,
You can remove your filter to get all your Ad units for your report. If you are still getting no results please send your network code and e-mail address of the API user so that I may further investigate? Use the reply privately to author option and I can take a closer look.
Regards,
Michael, Ad Manager API Team
--
You received this message because you are subscribed to the Google Groups "Google Ad Manager API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-doubleclick-for-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-doubleclick-for-publishers-api/SA6RQ000000000000000000000000000000000000000000000PTRXR600Bwoq9chSQZSvLws1FgegPA%40sfdc.net.
Hello Kamran,
If you want to try and match your report from the UI you can run a ReportQuery from the ReportService to generate the reports via API. You can find these available dimensions and columns. You can check these sample codes from the reportservice. There is also an easy way to run the report by running the saved query. For this, you can create and save the query with all the parameters that you would like in the GAM UI and give the query ID in this line 174 of sample code RunSavedQuery.java to pull the data.
You can check out this guide on reporting basics for more information on how to do that.
Regards,
Michael, Ad Manager API Team