Hi Parth,
Thanks for contacting the Ad Manager API support team, this is Yasmin.
You may use the PublisherQueryLanguageService and query the mcm_earnings table. Please take note that the restriction of querying this table is that on each query, an expression scoping the MCM earnings to a single month is required (e.x. "WHERE month = '2020-01'" or "WHERE month IN ('2020-01')").
I'll reference the sample code for this in Java, however, you may navigate to this link if you're using a different client library than Java in order to check for its respective distribution.
That said, let me know if you'd need further assistance with the API.
Regards,
|
||||||
Hi Parth,
Thanks for confirming this, I'm glad to know that. Let us know if you'd have any further questions regarding the API and our team will be more than glad to assist you.