Offline Conversion Upload in cross account conversion tracking

1,116 views
Skip to first unread message

Andrea Cau

unread,
Oct 2, 2020, 10:09:33 AM10/2/20
to AdWords API and Google Ads API Forum
Hi all.

I'm trying to upload offline conversion but I get the following partial error message:

"This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action"

In attachment I share the snippet of code. 

In the method "upload" there is the first parameter "mcc_id" with which I have developer token

The second parameter is "customer_id" with which I have to upload conversion

For clarify I share also the hierarchy in Google Manager Ads

hierarchy_google (2).png 

In the code use mcc_id to upload conversion while I use customer_id to get click_conversion and click_action. Is that correct ? 

My question is if to solve that error I have to upload conversion using the account master MCC(So I have to activate another developer token) or is better to use the conversion action inherited by agency MCC ?

Any help is appreciated.

Best regards,
Andrea


snippet.py

Google Ads API Forum Advisor Prod

unread,
Oct 5, 2020, 3:45:31 AM10/5/20
to a....@doveconviene.com, adwor...@googlegroups.com
Hi Andrea,

Thanks for posting your concern.

With regard to the developer token, you don't need to create/request for a new one. You can use a developer token that is approved or associated to your legal entity/organization.

Moving forward, the error that you've encountered is not related to the developer token hat you are using. In order to avoid encountering the error, please note that you need to use the account wherein conversion action is created. With this, if you are using specific MCC in creating conversion actions, then you should specify the customer ID of the MCC account in customerID field.


"This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action"

Let me know if you have questions with the provided support.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q25Ygom:ref

Andrea Cau

unread,
Oct 5, 2020, 8:31:43 AM10/5/20
to AdWords API and Google Ads API Forum
Hi Ernie

If I use the correct  Master MCC account(where the action conversions were created ) I get the following error:
"Fault: errors {
  error_code {
    authorization_error: USER_PERMISSION_DENIED
  }
  message: "User doesn\'t have permission to access customer. Note: If you\'re accessing a client customer, the manager\'s customer id must be set in the \'login-customer-id\' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id"
}"

I think this is right as the developer token belongs to the child of the master  MCC(Agency MCC) and not the master MCC

What do you advise me to do in this situation?

Regards
Andrea

Google Ads API Forum Advisor Prod

unread,
Oct 5, 2020, 3:38:49 PM10/5/20
to a....@doveconviene.com, adwor...@googlegroups.com

Hi Andrea,

Thank you for reaching out. I'm a colleague of Ernie. This issue is nothing related to the developer token. You encountered the USER_PERMISSION_DENIED error as you are using the OAuth2 credentials generated from the child account to make API calls against the parent account. You could fix it by generating a set of OAuth2 credentials with email user from parent account and also set the login-customer-id to the parent account id.

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q25Ygom:ref

Andrea Cau

unread,
Oct 5, 2020, 6:40:34 PM10/5/20
to AdWords API and Google Ads API Forum
Hi Xiaoming

Can I generate it in another Google api Console project or does it have to be on the same ?

Also if I create a set of OAuth2 credentials am I involved immediately in the Google OAuth verification process as written here ? Does it impact the other set of credentials ?

Thanks and Regards
Andrea 

Andrea Cau

unread,
Oct 6, 2020, 8:22:14 AM10/6/20
to AdWords API and Google Ads API Forum
Hi Xiaoming

I solved the problem with permission: 

"Fault: errors {
  error_code {
    authorization_error: USER_PERMISSION_DENIED
  }
  message: "User doesn\'t have permission to access customer. Note: If you\'re accessing a client customer, the manager\'s customer id must be set in the \'login-customer-id\' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id"
}"

 but I still get error: "This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action"

What could it be ?

Thanks and Regards
Andrea 

Google Ads API Forum Advisor Prod

unread,
Oct 6, 2020, 11:07:05 AM10/6/20
to a....@doveconviene.com, adwor...@googlegroups.com

Hi Andrea,

Thank you for reaching out. This error indicates that the conversation action that you were uploading the clicks to does not exist in your account. You would need to make sure that the conversation action in your API call matches with conversion action in the account that you are making calls against.



Thanks and regards,
Xiaoming, Google Ads API Team


Andrea Cau

unread,
Oct 7, 2020, 8:06:50 AM10/7/20
to AdWords API and Google Ads API Forum
Hi Xiaoming

I believe I have got the right conversion_action.id and other info by GAQL filtering by conversion_action.name 

"""SELECT 
                     conversion_action.id,
                     conversion_action.name,
                     conversion_action.resource_name,
                     conversion_action.status,
                     conversion_action.owner_customer, 
                     conversion_action.type, 
                     conversion_action.category,
                     customer.time_zone,
                     conversion_action.click_through_lookback_window_days,
                     conversion_action.value_settings.default_currency_code,
                     conversion_action.value_settings.default_value,
                     customer.conversion_tracking_setting.conversion_tracking_id,
                     customer.conversion_tracking_setting.cross_account_conversion_tracking_id,
                     customer.auto_tagging_enabled
                 FROM conversion_action
                 WHERE  conversion_action.category = 'PAGE_VIEW'
                 AND conversion_action.name  =  'XXX' """

I recovered the "conversion_action.name" from the Campaign in Google Account Manager where I can see clicks and conversions number
Despite this I almost always get the same error 

Do you have any idea what could be the problem?

Thanks and regards,
Andrea 

Google Ads API Forum Advisor Prod

unread,
Oct 7, 2020, 4:00:17 PM10/7/20
to a....@doveconviene.com, adwor...@googlegroups.com

Hi Andrea,

Thank you for reaching out. Could you please share the complete request and response logs along with the code you used and the screenshots showing that the conversion action name in the API call matches with that in the UI via the Reply privately to the author option?



Thanks and regards,
Xiaoming, Google Ads API Team


Reply all
Reply to author
Forward
0 new messages