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.
- 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.
- 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!