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

Cheers,
Peter Laurence
Google Ads API Team

On Thursday, June 23, 2022 at 12:28:31 PM UTC-4 [email protected] wrote:

> The Documentation for uploading conversions 
> <https://developers.google.com/google-ads/api/docs/conversions/upload-calls>, 
> tells me I need to set the owner customer ID on the request, but it's not 
> clear to me exactly where I need to set the owner customer, and I haven't 
> been able to make it work.
>
> Here are logs from things I've tried:
> * First, to make sure I know who the owner_customer is:
> ---
> Method: /google.ads.googleads.v10.services.GoogleAdsService/Search
> Host: googleads.googleapis.com
> Headers: 
> {
>     "developer-token": "REDACTED",
>     "login-customer-id": "xxxx5550",
>     "x-goog-api-client": "gl-python/3.8.13 grpc/1.46.3 gax/2.8.1 
> gccl/16.0.0",
>     "x-goog-request-params": "customer_id=xxxx9442"
> }
>
> Request: customer_id: "xxxx9442"
> query: "SELECT
>   customer.resource_name,
>   customer.conversion_tracking_setting.google_ads_conversion_customer,
> FROM customer
> WHERE customer.id = xxx9442"
>
> Response
> results {
>   customer {
>     resource_name: "customers/xxx59442"
>     conversion_tracking_setting {
>       google_ads_conversion_customer: "customers/xxx5550"
>     }
> }
> * Next, see what conversion are available for this customer id
> ---
> Method: /google.ads.googleads.v10.services.GoogleAdsService/Search
> Host: googleads.googleapis.com
> Headers: 
> {
>     "developer-token": "REDACTED",
>     "login-customer-id": "xxx5550",
>     "x-goog-api-client": "gl-python/3.8.13 grpc/1.46.3 gax/2.8.1 
> gccl/16.0.0",
>     "x-goog-request-params": "customer_id=xxx9442"
> }
>
> Request: customer_id: "xxx9442"
> query: "SELECT conversion_action.id, conversion_action.type, 
> conversion_action.status, conversion_action.category,
>  conversion_action.owner_customer, conversion_action.counting_type, 
> conversion_action.primary_for_goal, 
> customer.conversion_tracking_setting.conversion_tracking_id
> FROM  conversion_action
> WHERE conversion_action.status = 'ENABLED' 
> AND conversion_action.owner_customer = 'customers/xxx5550'"
> -------
> Response: results {
>   customer {
>     resource_name: "customers/xxx9442"
>     conversion_tracking_setting {
>       conversion_tracking_id: xxxx88142
>     }
>   }
>   conversion_action {
>     resource_name: "customers/xxx9442/conversionActions/xxx7242"
>     status: ENABLED
>     type_: UPLOAD_CALLS
>     category: PHONE_CALL_LEAD
>     counting_type: MANY_PER_CLICK
>     id: xxx7242
>     owner_customer: "customers/xxx5550"
>     primary_for_goal: false
>   }
> }
> ---
> Method: 
> /google.ads.googleads.v10.services.ConversionUploadService/UploadCallConversions
> Host: googleads.googleapis.com
> {
>     "developer-token": "REDACTED",
>     "login-customer-id": "xxxx5550",
>     "x-goog-api-client": "gl-python/3.8.13 grpc/1.46.3 gax/2.8.1 
> gccl/16.0.0",
>     "x-goog-request-params": "customer_id=xxxx5550"
> }
>
> Request: customer_id: "xxx5550"
> conversions {
>  caller_id: "+14405555555 <(440)%20555-5555>"
>  call_start_date_time: "2022-06-08 07:50:55-07:00"
>  conversion_action: "customers/xxxx9442/conversionActions/xxxx7242"
>  conversion_date_time: "2022-06-08 07:50:55-07:00"
> }
> partial_failure: true
> ---
> Response: 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.v10.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/xxx9442/conversionActions/xxx7242\"&\022\017\n\013conversions\030\000\022\023\n\021conversion_action"
>  }
> }
> ---
> * So maybe the resource ID should also use the owner customer?
> ---
> Method: 
> /google.ads.googleads.v10.services.ConversionUploadService/UploadCallConversions
> Host: googleads.googleapis.com
> {
>     "developer-token": "REDACTED",
>     "login-customer-id": "xxx5550",
>     "x-goog-api-client": "gl-python/3.8.13 grpc/1.46.3 gax/2.8.1 
> gccl/16.0.0",
>     "x-goog-request-params": "customer_id=6xxx5550"
> }
>
> Request: customer_id: "xxx5550"
> conversions {
>  caller_id: "+14407247702 <(440)%20724-7702>"
>  call_start_date_time: "2022-06-08 07:50:55-07:00"
>  conversion_action: "customers/xxx5550/conversionActions/xxx7242"
>  conversion_date_time: "2022-06-08 07:50:55-07:00"
> }
> partial_failure: true
> ---
> Response: 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.v10.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/xxx5550/conversionActions/xxx7242\"&\022\017\n\013conversions\030\000\022\023\n\021conversion_action"
>  }
> }
> results
> {}
> ---
>
> So what am I missing?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9d1471f7-d422-41cc-b9f9-594961edde3en%40googlegroups.com.

Reply via email to