uploading conversion by fractions

105 views
Skip to first unread message

Osman Seçmen

unread,
Jul 28, 2022, 7:21:57 AM7/28/22
to Google Ads API and AdWords API Forum
Hello there,

We have created a process to upload our conversions to Google using this tutorial: 


For the validation, we use All Conversion Value by  Conversion Date and All Conversion by Conversion Date metrics are being used.

On our side, each conversion value has a conversion number as well. Because we have different channels and we divide the number like 0.5 or 0.3333 or 0.25 and so on.

We expect to see the All Conversion by Conversion Date value as the sum of these fraction numbers. But there's no place to give this number and Google just counts 1 for each of the conversions. At the end we end up on different numbers.

Could you please give us some idea on how to handle this?
Thanks in advance,
Regards

Google Ads API Forum Advisor

unread,
Jul 28, 2022, 11:39:01 AM7/28/22
to adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API Forum.

With regard to your concern, you may try this implementation regarding import externally attributed conversions. It says that Externally attributed conversion imports allow you to upload conversions with fractional credit assigned to each click. Let me know if this is what you are looking for.

Best regards,
Google Logo
Jinky
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2d2QAg:ref

Osman Seçmen

unread,
Aug 1, 2022, 4:24:06 AM8/1/22
to Google Ads API and AdWords API Forum
Thanks a lot for your answer. It helped me to understand the difference and yes, it is most probably what we are looking for. So I try to set this field when I upload the data using the API. 

click_conversion = client.get_type("ClickConversion")
external_attribution_data = client.get_type("ExternalAttributionData")

# get the conversion_action in resource format
click_conversion.conversion_action = conversion_action_dict[
conversion_action_name
]

click_conversion.conversion_value = float(conversion_action_value)
click_conversion.conversion_date_time = conversion_date_time
click_conversion.currency_code = "EUR"
click_conversion.external_attribution_data = external_attribution_data

And on the last line, I get this error: 
Error on uploading conversion action Assignment not allowed to field "external_attribution_data" in protocol message object..

I guess I need to set it somewhere else, but where?
Getting closer, seems to be the last step :) 
Looking forward to hearing from you,

Google Ads API Forum Advisor

unread,
Aug 1, 2022, 6:50:05 AM8/1/22
to adwor...@googlegroups.com

Hi Osman,

Thanks for getting back to us.

I understand that you are receiving the error "external_attribution_data" in protocol message object..” while trying to add the in your specific client library example. However, I would recommend you to reach out to the specific client library you’re using for the implementation of your code to specify the external_attribution_model and external_attribution_credit attributes for the ExternalAttributionData when creating the ClickConversion in order to upload fractional credits. That said, for us to direct you to a specific client library owner to seek assistance to implement external_attribution_data, could you provide what client library you are using?

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d2QAg:ref

Osman Seçmen

unread,
Aug 2, 2022, 3:58:05 PM8/2/22
to Google Ads API and AdWords API Forum
Hello again,
This was how I set it at the end:

# set the externally attirubted data -> fraction of the conversion
click_conversion.external_attribution_data.external_attribution_credit = conversion_action_number
click_conversion.external_attribution_data.external_attribution_model = "Data-driven"

And it solved the problem.
Thanks for your support.

Reply all
Reply to author
Forward
0 new messages