suggestSmartCampaignAd gives 200 but returns empty object

86 views
Skip to first unread message

Paypal Poc

unread,
May 20, 2022, 6:36:12 AM5/20/22
to Google Ads API and AdWords API Forum
Hi,
to make REST calls for fetching Smart Campaign Ad Suggestion. Got a 200 response code but with empty object in response.

method: 'POST',
headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer {accessToken}`,
      'developer-token': '{developer token}',
      'login-customer-id': '{customerId}',
},
body: {
     "suggestionInfo": {
          "finalUrl": "https://www.paypal.com",
          "languageCode": "en",
          "keywordThemes": [
               {
                    "freeFormKeywordTheme": "payment"
               },
          ],
     }
}

Response : {}

We were anticipating a response like the one mentioned in doc ;-
{ "adInfo": { object (SmartCampaignAdInfo) } }

We are sending all the required fields as mentioned in above mentioned docs, namely:  finalUrl, languageCode, keywordThemes. 
Thanks,

Google Ads API Forum Advisor

unread,
May 20, 2022, 11:27:50 AM5/20/22
to paypal...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Could you provide us with the complete request and response logs with the request-id, so our team can better check?If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bBdyc:ref

Paypal Poc

unread,
May 20, 2022, 3:34:50 PM5/20/22
to Google Ads API and AdWords API Forum
Hi,

Currently, we are making direct REST API calls for testing using postman. We haven't integrated with any client libraries yet. Is there any header we can use when making the rest call so that the response contains additional debugging information? Currently, we only get an empty object back.

I'll DM you the response headers for the request we are sending (which includes the request id). The request url, body and headers are similar to the one posted in the original post. 

Thanks.
Reply all
Reply to author
Forward
0 new messages