when trying to uploads clicks via API I'm getting the above error, is
someone able to decipher it please? code is below:
client_id, client_secret, developer_token = settings.CLIENT_ID,
settings.CLIENT_SECRET, settings.DEVELOPER_TOKEN
credentials = oauth2.GoogleRefreshTokenClient(
client_id,
client_secret,
login_user.refresh_token
)
client = GoogleAdsClient(credentials, settings.DEVELOPER_TOKEN)
click_conversion = client.get_type("ClickConversion")
conversion_action_service = client.get_service("ConversionActionService")
click_conversion.conversion_action = (
conversion_action_service.conversion_action_path(
client_id, company.conversion_name
)
)
click_conversion.gclid = deal.gclid
click_conversion.conversion_value = float(deal.deal_value if
deal.deal_value else 0)
click_conversion.conversion_date_time =
make_aware(datetime.now()).strftime('%Y%m%d %H%M%S %z')
conversion_upload_service = client.get_service("ConversionUploadService")
request = client.get_type("UploadClickConversionsRequest")
request.customer_id = client_id
request.conversions.append(click_conversion)
request.partial_failure = True
conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=request,
)
)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/20eefcce-dae6-470d-a0ff-c7a1576b13e0n%40googlegroups.com.