Hello,
Thank you for writing to us. Please refer to this code sample (available in all the client libraries) to add conversion actions via Google Ads API Beta for reference to create a service client for ConversionUploadService. You could also refer to the examples available in AdWords API for uploading the conversions via API. If you are still having trouble, could you please share the complete request and response logs along with the client customer id for me to take a look into this further and assist you better?
P.S. Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team
How do I make a successful call and how do I authorize and create a ConversionUploadServiceClient? I tried many ways, only get errors like "StatusCode=unavailbale.Detail=failed to connect to all addresses" .What
Hello,
Please find my response to your queries below.
To authorize using a service account, please refer to this guide or detailed steps and information related to the same. We strongly recommend using OAuth2 installed app or web flow instead of service accounts unless you need a domain-specific feature (for example, impersonation). OAuth2 installed app and web flows do require an initial user interaction for granting access to the account, but are much simpler to set up. You need to implement the code set up on your end to make calls using service accounts.
For another issue, could you please share the complete request and response logs along with the client customer id or me to investigate the error on my end and assist you better?
The resource name for the ClickConversion is not required while creating a new ClickConversion and the rest of the fields are required until specified they are optional in the documentation.
Let us know if you need any additional information.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
Please use Reply privately to author option while sharing the details for investigation as requested in my previous email.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
Hello,
From the shared details, it looks like there could be an issue with your OAuth2 Credentials. Could I please request regenerating a new set of credentials by following this guide, update your ads.properties with the newly created credentials and retry the request? Please give this a try and if the issue persists, could you please share the complete request and response logs along with the client customer id and email address used while generating the OAuth2 credentials for me to investigate this further on my end?
P.S. Please use Reply privately to author option for sharing the details for investigation.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
Could you please confirm if you are following the steps mentioned in this guide to access the AdWords API with service accounts. If yes, please refer to this section of the guide which will help you to configure the client library for your service account. The steps for .Net client libraries are mentioned here which will guide you to setup OAuth2 for API access using your own credentials. Please give this a try and let me know if the issue persists. Also, we strongly recommend using installed app or web flows instead of service accounts unless you need domain-specific features (for example, impersonation).
Regards,
Nikisha Patel, Google Ads API Team
Hello,
The error means that the login customer id (the customer id of your manager account) must be specified in your properties file while making an API call against the client customer account. Please refer to this guide for more details related to this. Let me know if you need any additional information.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
Could you please share the complete request and response logs along with the client customer id against which you are trying to make the API call? Also, please share the email address used while generating the OAuth2 credentials and the login customer id specified in the file for me to take a look into this further.
P.S. Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team