How i can download or get Budget Performance Report using http request

47 views
Skip to first unread message

RAJKUMAR SHARMA

unread,
Jun 27, 2018, 4:59:59 PM6/27/18
to AdWords API and Google Ads API Forum
hi,
i m not able to find a method which can give budget performance report in client library of java of google adword api.
or can u tell me is there any http request available for get these reports of other user who's person i have a refresh token store.

thanks

Dannison Yao (AdWords API Team)

unread,
Jun 28, 2018, 3:41:51 AM6/28/18
to AdWords API and Google Ads API Forum
Hi Rajkumar,

You could pattern your report on this sample code provided in the documentation that is also available in the Java client library. You just have to make the necessary adjustments on the code to cater the BUDGET_PERFORMANCE_REPORT. You could also see the fields that are supported for that report in the link provided. 

For HTTP POST requests, you may refer to this guide on how to do this when downloading reports.

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team

Dannison Yao (AdWords API Team)

unread,
Jun 28, 2018, 10:57:19 PM6/28/18
to AdWords API and Google Ads API Forum
Hi Rajkumar,

Could you confirm if what you wish is to download reports for other accounts? If yes, you could do this as long as you specify the account's correct clientCustomerId and its OAuth2 Credentials (client Id, client secret, refreshToken). You may use the same approved developer token for this.

Also take note that you can only download reports one account at a time. Feel free to write back for further clarifications or if you need more assistance.

RAJKUMAR SHARMA

unread,
Jun 29, 2018, 8:16:04 AM6/29/18
to AdWords API and Google Ads API Forum
hi,

budget report is working how i can get clientcustomerid and managerclientaid because we are download report using customerclientid 


i have just used this request url ------>  https://adwords.google.com/api/adwords/mcm/v201806/ManagedCustomerService?wsdl for getting a customerClientID and managerCustomerId
   i wanna know how use this request for getting other user data who logged through my client and client secret by that i m getting its refresh token.
  i have used this request
 --header Authorization:Bearer ********************
 --headerdeveloperToken:XXXXXXXX
 --header Content-Type:application/xml
and in xml i used 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/mcm/v201806" soapenv:mustUnderstand="0">
            <ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806">492-330-398</ns2:clientCustomerId>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201806">XXXXXXXXXXXXXXerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201806">unknown (AwApi-Java, AdWords-Axis/3.15.0, Common-Java/3.15.0, Axis/1.4, Java/1.8.0_171, jars, SelectorBuilder, SelectorField)</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201806">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201806">false</ns6:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <serviceSelector>
                <ns7:fields xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201806">CustomerId</ns7:fields>
                <ns8:fields xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201806">Name</ns8:fields>
                <ns9:paging xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201806">
                    <ns9:startIndex>0</ns9:startIndex>
                    <ns9:numberResults>500</ns9:numberResults>
                </ns9:paging>
            </serviceSelector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

that is working only for my account credentials like there should be my account  refresh token and client customer id and developer token 
please tell me how can i get other user details who logged in with clientid and client secret . how i can get other account details like its  managerCustomerId , clientCustomerId  for my api creation

i am stuck in this process .
thanks

Dannison Yao (AdWords API Team)

unread,
Jul 1, 2018, 11:59:36 PM7/1/18
to adwor...@googlegroups.com
Hi Rajkumar,

Could you confirm if you only have access to the refreshToken and developerToken of the said accounts? If yes, then there is no way to dynamically retrieve the other details of the account via AdWords API. You have to individually assign the account details in the ads.properties file.

Let me know if you have further clarifications.

Reply all
Reply to author
Forward
0 new messages