Re: Conversion Claims To Be Successful But Fails To Reflect In Google Ads

2021-06-05 Thread Austin Pena
I think I found the internal issue that caused it. Thank you but I've got
it now!

On Fri, Jun 4, 2021 at 7:12 AM Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> wrote:

> Hello,
>
> Thanks for your patience on this. Can you please provide us with your
> complete request and response logs so that we can have a closer look at the
> issue?
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo]
> Matt
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2I03Hl:ref
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> 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 a topic in the
> Google Groups "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/PCHbrZSPR-o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> adwords-api+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/nHWvm0QU6KSN00IbOcLpqtQsK4juKyq7tlsQ%40sfdc.net
> 
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CA%2BtyRW%3DOHm2qYHzej3Uvn-aCt3LwCQqV5B7xphOvh3m9skhVWw%40mail.gmail.com.


RE: Conversion Claims To Be Successful But Fails To Reflect In Google Ads

2021-06-04 Thread Google Ads API Forum Advisor Prod
Hello,

Thanks for your patience on this. Can you please provide us with your complete 
request and response logs so that we can have a closer look at the issue?

Thanks,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2I03Hl:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/nHWvm0QU6KSN00IbOcLpqtQsK4juKyq7tlsQ%40sfdc.net.


Re: Conversion Claims To Be Successful But Fails To Reflect In Google Ads

2021-06-03 Thread AdWords API and Google Ads API Forum
 

Reposting the last inquiry 
(https://groups.google.com/g/adwords-api/c/PCHbrZSPR-o/m/L4rpb5tqBwAJ) from 
the forum as it wasn't routed to our support queue.


Cheers,

Aryeh Baker

Google Ads API Team

On Monday, May 31, 2021 at 4:17:08 PM UTC-4 m...@austinpena.com wrote:

> How do I diagnose this? Using the Google Adwords API I am submitting a 
> lead via a GCLID. 
>
> After I submit, Google Ads says that it is successful with the correct 
> date recorded. However, in my campaign, I don't see it come in at that date.
>
> Here's the message I get when the API says it's successful:
> 2021-05-19 07:15:38-04:00 
> CjwKCAjwy42FBhB2EiwAJY0yQpsGB5GRsz7x7sC6X0BFqXKk1y6ElAi5yBh7PnWUXqXVneySC02MjhoCtTQQAvD_(redacted)
>  
> customers/2874(redacted)500/conversionActions/561122077
>
> The conversion Action ID is the same ID as the one I am using for the 
> campaign.
>
> Somehow Callrail, where this lead is recorded, has it verified that the 
> lead campaign from my campaign. 
>
> How can I debug this? Google Ads is saying the conversion is received, can 
> I query the data associated with a gclid?
>
> When I query the gclid I do get the correct campaign and keyword back so I 
> know at least that part is right.
>
> *Guess*
>
> 1. I'm trying to assign a value to an already existing conversion, should 
> I just send it to a new conversion?
> 2. Could the conversion date be assigned to the wrong time? How can I 
> debug that?
>
> Here's my ugly code:
>
> @app.route('/upload_offline_conversion', methods=['POST'])
> def upload_offline_conversion():
> conversions = request.json['conversions']
> # Creates click conversions with a default currency of USD.
> click_conversion = client.get_type("ClickConversion")
> conversion_action_service = client.get_service("ConversionActionService")
> click_conversion_dict = []
> for conversion in conversions:
> customer_id = conversion['customer id']
> conversion_action_id = conversion['conversion action id']
> gclid = conversion['gclid']
> conversion_date_time = conversion['conversion date time']
> conversion_value = conversion['conversion value']
>
> click_conversion.conversion_action = (
> conversion_action_service.conversion_action_path(
> customer_id, conversion_action_id
> )
> )
> # Set the click conversion attributes
> click_conversion.gclid = gclid
> click_conversion.conversion_value = float(conversion_value)
> click_conversion.conversion_date_time = conversion_date_time
> click_conversion.currency_code = "USD"
> click_conversion_dict.append(click_conversion)
>
> # Get the conversion upload service
> conversion_upload_service = client.get_service("ConversionUploadService")
> req = client.get_type("UploadClickConversionsRequest")
> req.customer_id = customer_id
> req.conversions = click_conversion_dict
> req.partial_failure = True
> conversion_upload_response = (
> conversion_upload_service.upload_click_conversions(
> request=req,
> )
> )
> print(conversion_upload_response)
>
> report = ""
> failed = False
> # Return any partial errors returned.
> if conversion_upload_response.partial_failure_error.message:
> report += conversion_upload_response.partial_failure_error.message
> failed = True
>
> for result in conversion_upload_response.results:
> print(result.conversion_date_time,
> result.gclid,
> result.conversion_action)
>
> if failed:
> return jsonify({'report': report}), 400
> else:
> return jsonify({'report': report}), 200
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2dce6f48-6341-4909-ae8c-bc7ae415164bn%40googlegroups.com.


Conversion Claims To Be Successful But Fails To Reflect In Google Ads

2021-05-31 Thread Austin Pena
How do I diagnose this? Using the Google Adwords API I am submitting a lead 
via a GCLID. 

After I submit, Google Ads says that it is successful with the correct date 
recorded. However, in my campaign, I don't see it come in at that date.

Here's the message I get when the API says it's successful:
2021-05-19 07:15:38-04:00 
CjwKCAjwy42FBhB2EiwAJY0yQpsGB5GRsz7x7sC6X0BFqXKk1y6ElAi5yBh7PnWUXqXVneySC02MjhoCtTQQAvD_(redacted)
 
customers/2874(redacted)500/conversionActions/561122077

The conversion Action ID is the same ID as the one I am using for the 
campaign.

Somehow Callrail, where this lead is recorded, has it verified that the 
lead campaign from my campaign. 

How can I debug this? Google Ads is saying the conversion is received, can 
I query the data associated with a gclid?

When I query the gclid I do get the correct campaign and keyword back so I 
know at least that part is right.

*Guess*

1. I'm trying to assign a value to an already existing conversion, should I 
just send it to a new conversion?
2. Could the conversion date be assigned to the wrong time? How can I debug 
that?

Here's my ugly code:

@app.route('/upload_offline_conversion', methods=['POST'])
def upload_offline_conversion():
conversions = request.json['conversions']
# Creates click conversions with a default currency of USD.
click_conversion = client.get_type("ClickConversion")
conversion_action_service = client.get_service("ConversionActionService")
click_conversion_dict = []
for conversion in conversions:
customer_id = conversion['customer id']
conversion_action_id = conversion['conversion action id']
gclid = conversion['gclid']
conversion_date_time = conversion['conversion date time']
conversion_value = conversion['conversion value']

click_conversion.conversion_action = (
conversion_action_service.conversion_action_path(
customer_id, conversion_action_id
)
)
# Set the click conversion attributes
click_conversion.gclid = gclid
click_conversion.conversion_value = float(conversion_value)
click_conversion.conversion_date_time = conversion_date_time
click_conversion.currency_code = "USD"
click_conversion_dict.append(click_conversion)

# Get the conversion upload service
conversion_upload_service = client.get_service("ConversionUploadService")
req = client.get_type("UploadClickConversionsRequest")
req.customer_id = customer_id
req.conversions = click_conversion_dict
req.partial_failure = True
conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=req,
)
)
print(conversion_upload_response)

report = ""
failed = False
# Return any partial errors returned.
if conversion_upload_response.partial_failure_error.message:
report += conversion_upload_response.partial_failure_error.message
failed = True

for result in conversion_upload_response.results:
print(result.conversion_date_time,
result.gclid,
result.conversion_action)

if failed:
return jsonify({'report': report}), 400
else:
return jsonify({'report': report}), 200

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/44367347-433d-44d2-998d-979c3e6ad905n%40googlegroups.com.