The owner of the client library on Github directed me to Google Ads API
Direct Support, who has now directed me back here.
Can somebody please tell me how to get the snippet code from a newly
created ConversionAction? Even just the Google Tag ID would do fine.
Here is my code:
final ConversionAction conversionAction = ConversionAction.
newBuilder()
.setName("ConversionAction " + new Date())
.setCategory(ConversionActionCategory.DEFAULT)
.setType(ConversionActionType.WEBPAGE)
.setStatus(ConversionActionStatus.ENABLED)
.setViewThroughLookbackWindowDays(2)
.setValueSettings(ValueSettings.newBuilder()
.setDefaultValue(conversionValue)
.setAlwaysUseDefaultValue(true)
.build())
.build();
final ConversionActionOperation operation =
ConversionActionOperation.newBuilder()
.setCreate(conversionAction).build();
final MutateConversionActionsResponse response =
conversionActionServiceClient
.mutateConversionActions(adAccountId, Collections.
singletonList(operation));
final MutateConversionActionResult result = response.
getResultsList().get(0);
final List<TagSnippet> tagSnippets = reloadedConversionAction.
getTagSnippetsList();
At this point, tagSnippets is an empty List. What am I missing here?
On Thursday, 20 July 2023 at 14:10:45 UTC+2 Google Ads API Forum Advisor
wrote:
> Hello Marc,
>
> With regards to ConversionAction.getTagSnippetsList(), for clarification,
> is this from the client library? If yes, I recommend reaching out to the
> respective client library owner by filing an issue on the issue tracker on
> the *Issues* tab of your chosen *client library*
> <https://developers.google.com/google-ads/api/docs/client-libs> on the
> github, so that they can provide guidance.
>
> With regards to retrieving and configuring Google Tag ID via API, can you
> please provide us with an uncropped screenshot of this view in the Google
> Ads UI?
> This message is in relation to case "ref:_00D1U1174p._5004Q2n9Sfa:ref"
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/05616402-45d2-42e9-a3bf-d85c0cff3229n%40googlegroups.com.