GetCampaigns service not returning any response

56 views
Skip to first unread message

Rajat Srivastava

unread,
Jan 12, 2021, 12:55:10 AM1/12/21
to AdWords API and Google Ads API Forum
Hi Team,

I am trying to run GetCampaigns.java to get the campaign details from my test account but there is no response or error on console. I updated the ads.properties file with the details which were generated after executing AuthenticateInDesktopApplication.java. 
I need assistance with debugging this issue. Thanks in advance.

Thanks
Rajat

Google Ads API Forum Advisor Prod

unread,
Jan 12, 2021, 4:24:48 AM1/12/21
to rajat.r.s...@oracle.com, adwor...@googlegroups.com
Hi Rajat,

Since this appears to be a setup issue for the Java client library, I would recommend that you reach out to the Java client library owners via this link, for further assistance.

Should the issue revert back to the API's services, you may write back so our team can help and investigate.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AJX1n:ref

Rajat Srivastava

unread,
Jan 14, 2021, 11:56:56 PM1/14/21
to AdWords API and Google Ads API Forum
Hi Peter,

I have tried to contact the API using .Net this time. While executing the GetKeyword file , I receive below response from the API.
I am not able to understand what it actually means.

1. Is this a success response?
2. How to we access the records from this response.

Method Name: /google.ads.googleads.v6.services.GoogleAdsService/Search
Host: https://googleads.googleapis.com
Headers: {
  "x-goog-api-client": "gl-dotnet/3.0.0 gapic/6.1.0 gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.34.0",
  "developer-token": "REDACTED",
  "x-goog-request-params": "customer_id=7443410547"
}{ "customerId": "7443410547", "query": "SELECT\n                    ad_group.id,\n                    ad_group.status,\n                    ad_group_criterion.criterion_id,\n                    ad_group_criterion.keyword.text,\n                    ad_group_criterion.keyword.match_type\n                FROM ad_group_criterion\n                WHERE ad_group_criterion.type = 'KEYWORD'\n                    AND ad_group.status = 'ENABLED'\n                    AND ad_group_criterion.status IN ('ENABLED', 'PAUSED')\n                LIMIT 50" }Response
--------
Headers: {
  "content-disposition": "attachment",
  "request-id": "LqklIs4mGUiy4_9t-uWE6w",
  "date": "Fri, 15 Jan 2021 04:52:52 GMT",
  "alt-svc": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}{ "fieldMask": "adGroup.id,adGroup.status,adGroupCriterion.criterionId,adGroupCriterion.keyword.text,adGroupCriterion.keyword.matchType" }  


Thanks
Rajat

Google Ads API Forum Advisor Prod

unread,
Jan 15, 2021, 4:53:11 AM1/15/21
to rajat.r.s...@oracle.com, adwor...@googlegroups.com
Hi Rajat,

Thank you for the reply. I work with Peter and let me provide support to your concern.

I can see that this is successful API response but I am afraid that you will not get any data from here. The reason is that you are generating report against a MCC account, however, this is not possible and will not generate report. You can only generate report for customer account by setting its customer ID to login-customer-id of API request.

Please try the provided suggestion and if the issue persists, please provide the latest and complete API request and response logs with request ID.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AJX1n:ref
Reply all
Reply to author
Forward
0 new messages