Hello everyone!
I'm migrating a PHP application from Adwords API to Google ADS API and I'm
facing a partial failure message when trying to upload offline conversions.
"*This customer does not have an import conversion action that matches the
conversion action provided*."
The accounts structure looks like this:
[image: google-ads-accounts-structure.jpeg]
CONSIDERATIONS:
- The conversions are not managed by the Master MCC account, all
sub-accounts manage their own conversions.
- Using the Master MCC account credentials allows me to manage all the
sub-accounts as expected, except upload offline conversions.
- The implementation is in PHP (googleads/google-ads-php v10.0.0)
- I don't have this issue using Adwords.
Unlike Adwords, Google ADS requires setting the conversion action id of the
respective conversion so I'm obtaining it with GAQL and it seems right. I
compared the obtained conversion_action.id with the id that appears
in(Conversions -> Lead) URL's param ctId=CONVERSION-ACTION-ID and I can
confirm they do match.
Below is an example of how the ClickConversion object is being created.
$conversion = new ClickConversion();
$conversion->setConversionAction('customers/{SUB-ACCOUNT-ID}/conversionActions/{CONVERSION-ACTION-ID}');
$conversion->setConversionDateTime('2021-12-08 20:30:40-05:00');
$conversion->setGclid('REDACTED');
$conversion->setConversionValue(0);
$service->uploadClickConversions('SUB-ACCOUNT-ID', [$conversion], true);
I also tried to upload using the MASTER-MCC-ID as customerId and many other
ids combinations but the same error occurs.
Can someone help me? Any advice would help!
Thank you!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/CAKN5DQSUVCNmOoQBN7xR%3Dyo0RsmKDg4nVPen92hnwdS%3DRDN%2Bvw%40mail.gmail.com.