Want to integrate Google Ads API to upload offline conversions

55 views
Skip to first unread message

Jeetendra Garg

unread,
Jul 11, 2023, 9:11:39 AM7/11/23
to Google Ads API and AdWords API Forum
Hi Team,

I want to upload upload offline conversions through Google Ads API. But during the Oauth process, it requires some credentials, please help me from where I can get the credentials?
It has to be done server to server, so no user consent will be there.

I'm using "ads.properties" in UploadOfflineConversion.java and getting unautherized error. Please find attached logs for your reference.

Please help me how can I implement the same and way to get the credentials.

Many thanks.


Error.txt

Google Ads API Forum Advisor

unread,
Jul 11, 2023, 1:05:16 PM7/11/23
to jeet...@3sstudio.in, adwor...@googlegroups.com

Hi Jeetendra,

Thanks for reaching out to the Google Ads API Forum.

Based on the error code and message, this appears to be an authorization issue, while using the Java client library. Can you make sure your properties file is configured properly and has all the required credentials? If possible, you may make a fresh new Java client library environment and follow the installation instructions from scratch to resolve said error.

For OAuth credentials, please refer to this page and be sure to add correct Client ID and Client secret in your properties file, and for refresh token, you may refer here. Once you follow the above, you may retry it, and let us know if it still gives out an error. For an API error, please provide the full logs via reply privately to author option. 

This message is in relation to case "ref:_00D1U1174p._5004Q2n6H5S:ref"

Thanks,
 
Google Logo Google Ads API Team

 



Reply all
Reply to author
Forward
0 new messages