Adwords API : OfflineCallConversion

55 views
Skip to first unread message

Daniel Jao

unread,
Jun 5, 2020, 11:10:54 AM6/5/20
to AdWords API and Google Ads API Forum
HI, i would appreciate if anyone can pitch in for help.

I'm using PHP Adwords API to upload Offline Call Conversion to Ad Account automatically.  I confirmed that the phone numbers WHEN manually uploaded  via xls sheet is working.  But if i try to upload it programatically via this code snippet:

                $feed = new OfflineCallConversionFeed();
                $feed->setCallerId($callerId);
                $feed->setConversionName($conversionName);
                //$feed->setConversionTime($conversionTime);
                $feed->setCallStartTime($conversionTime);
                $feed->setConversionValue($conversionValue);
               
                $offlineCallConversionOperation = new OfflineCallConversionFeedOperation();
                $offlineCallConversionOperation->setOperator(Operator::ADD);
                $offlineCallConversionOperation->setOperand($feed);
               
                $offlineCallConversionOperations[] = $offlineCallConversionOperation;

                $result = $offlineCallConversionService->mutate($offlineCallConversionOperations);

it does not work, i was just getting an API ERROR: INVALID_CALL

I already confirmed that the conversionName has the correct value, conversionTime is with the correct format and timezone.  Caller ID is the 10 digit US number.


Can anyone answer why that is happening?


Google Ads API Forum Advisor Prod

unread,
Jun 5, 2020, 3:34:13 PM6/5/20
to dani...@gmail.com, adwor...@googlegroups.com
Hi Daniel,

Thank you for reaching out to us. I see that you're encountering an issue uploading offline conversions. Could you provide us with the request and the response logs for when this error occurs so that I may further investigate this issue? For privacy, you can click "reply privately to author".

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5004Q20WVAJ:ref

Daniel Jao

unread,
Jun 6, 2020, 10:48:46 PM6/6/20
to AdWords API and Google Ads API Forum
Hi,

Another question:

Is it possible for Offline Call Conversion API call to be shown in the "Upload" part in the frontend in Adwords?  

So that the admin can see the feedback from the API call.

let me know.

thanks,
daniel
Reply all
Reply to author
Forward
0 new messages