make getLastChangeTimestamp readable

7 views
Skip to first unread message

ken...@blvnp.com

unread,
Dec 8, 2017, 3:09:50 AM12/8/17
to AdWords API Forum
This function:
echo "Most recent change: ".$accountChanges->getLastChangeTimestamp()

will displays:
"Most recent change: 20171207 234008 PST8PDT"


How do I make it readable? Like for example:
Most recent change: Dec 6, 2017 1:30pm

Peter Oliquino

unread,
Dec 8, 2017, 3:30:41 AM12/8/17
to AdWords API Forum
Hi Ken,

There is currently no feature in the AdWords API that converts the timestamp format. You may have to implement this manually on your end.

Best regards,
Peter
AdWords API Team

ken...@blvnp.com

unread,
Dec 8, 2017, 3:50:39 AM12/8/17
to AdWords API Forum
Can you tell me what it is?

 20171207 234008 PST8PDT


I tried date('y-m-d', $accountChanges->getLastChangeTimestamp);

it doesn't work

Peter Oliquino

unread,
Dec 8, 2017, 4:04:13 AM12/8/17
to AdWords API Forum
Hi Ken,

This appears to be client library specific. I would recommend that you get in touch with the PHP client library owners via this link for further assistance.
Reply all
Reply to author
Forward
0 new messages