Hi Pablo,
Thank you for reaching out. You encountered this error as you did not add the Authorized redirect URIs. Please follow these instructions to add in the Authorized redirect URIs in the Google API console and try it again. Let me know if you have any further concerns.
Thanks and regards,
Xiaoming, Google Ads API Team
Fault: errors {
error_code {
authorization_error: DEVELOPER_TOKEN_NOT_APPROVED
}
message: "The developer token is not approved. Non-approved developer tokens can only be used with test accounts."
}
Hi Pablo,
Thank you for reaching out. Yes, your are right. DEVELOPER_TOKEN_NOT_APPROVED errors occurs as you were trying to make API calls against a production account with a developer token that has test access. You would have to either wait for your upgrade approved or make calls to a test account using this developer token.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pablo,
Thank you for reaching out. You could upload the Conversion in your client account given the fact that you use things from different accounts. You could refer to the cross-account conversion tracking for more information. It’s not necessary for you to upload the conversion in a specific conversion action.
Thanks and regards,
Xiaoming, Google Ads API Team
partial_failure_error {
code: 3
message: "The string date time\'s format should be yyyy-mm-dd hh:mm:ss+|-hh:m., at conversions[0].conversion_date_time"
details {
type_url: "type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure"
value: "The string date time\'s format should be yyyy-mm-dd hh:mm:ss+|-hh:m.\032\032*\0302020-05-14 22:52:57+0200\")\022\017\n\013conversions\022\000\022\026\n\024conversion_date_time"
partial_failure_error:
code: 3
message: "This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action"
details {
type_url: "type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure"
value: "\n\307\001\n\003\370\006\t\022dThis customer does not have an import conversion action that matches the conversion action provided.\0322*0customers/DELETED1/conversionActions/DELETED2\"&\022\017\n\013conversions\022\000\022\023\n\021conversion_action"
}
Hi Pablo,
Thank you for reaching out. Please make sure that you use the exact same spelling and capitalization that you did when you created this conversion action in your Google Ads account.
Thanks and regards,
Xiaoming, Google Ads API Team
conversionAction=
resource_name : customers/ABC/conversionActions/123
id : 123
name : "ABCCBA"
status : ENABLED
type : UPLOAD_CLICKS
category : PAGE_VIEW
owner_customer : "customers/ABC"
include_in_conversions_metric : true
click_through_lookback_window_days : 30
view_through_lookback_window_days : 30
default_value : 1.0
default_currency_code : "USD"
always_use_default_value :
counting_type : ONE_PER_CLICK
attribution_model : GOOGLE_ADS_LAST_CLICK
data_driven_model_status : NEVER_GENERATED
phone_call_duration_seconds : 60
Hi Pete and Pablo,
Thank you for reaching out. Could you please share the Conversion Action you were uploading and the complete request and response logs along with the client customer account you were uploading to via the Reply privately to author option for me to further investigate?
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pablo,
Thank you for reaching out. You would need to upload the click conversion to the account that contains the conversion action. If you still have concerns, please share the Conversion Action you were uploading and the complete request and response logs along with the manager account and client customer account you were uploading to via the Reply privately to author option for me to further investigate.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pablo,
Thank you for reaching out. As I said, you are supposed to add in the conversion_action_id rather than the conversion_id in your code. The one you got is the conversion id not the conversion action id. You could log into your customer account and navigate to the TOOLS & SETTINGS -> Conversions, and under the Conversion action tab you could find the existing conversion actions and their ids in your account. In your case, you used the conversion_id as the conversion_action_id but apparently it does not exist in your account.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Michel,
Thank you for reaching out. If you are not able to find the action conversion id, you could log into your customer account and navigate to the TOOLS & SETTINGS -> Conversions, then you can find the existing conversion actions and their ids in your account under the Conversion action tab.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Pablo,
Thank you for reaching out. If that’s the case, please query the conversion_action.id field from the conversion_action resource. You would be able to get all the conversion action ids in your account.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Michel,
Thank you for reaching out. You could also fetch the conversion_action.id by querying the conversion_action resource. Please try using Pete’s solution to match the crossAccountConversionTrackingId value and use that CID as the mccId in the method.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Michel,
Thank you for reaching out. In order for me to further investigate your issue, could you please share the complete request and response logs via the Reply privately to author option?
Thanks and regards,
Xiaoming, Google Ads API Team