Friday, 31 July 2015

Google Wallet Offers Expiry Dates

I've been working with Google Wallet API for the last week and it's been interesting, but also a little frustrating.

 If you're reading this then you've probably come to the realisation that setting up Google Wallet Offers is not a simple task, especially when compared to setting up Apple's Passbook Coupons.

I'm on the last leg of this project now and one of the final tasks is to roll expiry dates into the Google Offers I've created.

There's a handy snippet of code found at which suggests it should be no big deal...

$validTimeInterval = new Google_TimeInterval();
$startDateTime = new Google_DateTime();
$endDateTime = new Google_DateTime();

and then during the Offer creation:


Unfortunately there's a little wrinkle there - the Google_TimeInterval and Google_DateTime classes were not included in any of the API libraries I couldn't find, and I couldn't find anything useful about where to get them.


What you should be looking for is Google_Service_Walletobjects_TimeInterval and Google_Service_Walletobjects_DateTime so your code will be like this:

$validTimeInterval = new Google_Service_Walletobjects_TimeInterval();
$startDateTime = new Google_Service_Walletobjects_DateTime();
$endDateTime = new Google_Service_Walletobjects_DateTime();


  1. Superb i really enjoyed very much with this article here. Really its a amazing article i had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.

    Digital Marketing Company in Chennnai

  2. This blog is really informative. I gained more knowledge by reading your post. Thanks for providing us the useful information with us. Your blog is really helpful for me in attaining my knowledge in a right way.

    Seo Training in Chennai

  3. This comment has been removed by a blog administrator.

  4. Good one, very informative.. thanks for sharing your views and ideas.. it is very useful to me.. thanks once again.

    Android Training in chennai|
    IOS Training in chennai

  5. Good and nice information, thanks for sharing your views and ideas.. keep rocks and updating

    Java Training in chennai

    Software Testing Training in chennai

  6. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    Oracle training in Chennai

    Java training in Chennai | Java training in Annanagar

    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

  7. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
    Python training in bangalore
    Python course in pune
    Python training in bangalore

  8. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.

    rpa training in chennai
    rpa training in bangalore
    rpa course in bangalore
    best rpa training in bangalore
    rpa online training

  9. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Best Devops Training in pune
    excel advanced excel training in bangalore
    Devops Training in Chennai

  10. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.
    Best AWS Training in Chennai | Amazon Web Services Training in Chennai
    AWS Training in Bangalore | Amazon Web Services Training in Bangalore
    Amazon Web Services Training in Pune | Best AWS Training in Pune

  11. Very good information provided, Thanks a lot for sharing such useful information.


  12. This information is impressive; I am inspired with your post. Keep posting like this, This is very useful.Thank you so much. Waiting for more blogs like this.
    Airport management courses in chennai
    airline management courses in chennai
    aircraft maintenance course in chennai
    diploma in airport management in chennai

  13. Wonderful article! This was very depth and comprehensive blog. Thank to you for your sharing with us and keep continuous...
    RPA Training in Bangalore
    Robotics Courses in Bangalore
    Automation Courses in Bangalore
    RPA Courses in Bangalore
    Robotics Classes in Bangalore

  14. I didn’t have enough good honest and conscientious people in my life so I was so scared to play all sorts of online games, slot machines, gamblingg But thank God, I got exactly on this site super top rated online casinos ere, everything is honest and the conclusions are quick and everything is beautiful and clear


  15. بسم الله الرحمن الرحيم نحن فى شركة الكمال نقوم بجميع عزل الخزانات المياه سواء كانت مياة الشرب او

    مياه الغسيل كما اننا يوجد لدين خدمة تسليك المجارى بافضل الطرق
    شركة عزل خزانات بالطائف
    شركة عزل خزانات بجازان
    شركة عزل خزانات بحائل
    والسلامة عليكم ورحمة الله وبركاته

  16. Алюминиевый профиль светодиодной ленты лучшее что я находил это в компании Ekodio, супер ребята рекоммендую.

  17. Interesting information and attractive.This blog is really rocking... Yes, the post is very interesting and I really like it.I never seen articles like this. I meant it's so knowledgeable, informative, and good looking site. I appreciate your hard work. Good job.
    Kindly visit us @
    Sathya Online Shopping
    Buy AC Online | AC Online Shopping | AC Price | Buy Air Conditioner Online
    Inverter Split AC | Best Inverter AC | Split AC Price | Buy Split AC Online
    Smart LED TV | Smart TV Price | LED TV Online | Buy LED TV Online
    Laptop Online | Laptop Price | Buy Laptop Online | Best Laptop
    Buy HD LED TV
    Buy Ultra HD TV Online
    Buy Mobile Online | Buy Smartphone Online in India

  18. I wish to say that this post is amazing, nice written and include approximately all important infos. I would like to see more posts like this
    Python Training in Chennai | Python Programming Classes | Python Classes in Chennai

  19. Great post! I hope more unique tips about this topic and I am always following your blog. Please keeping more updates...
    R Training Institute in Chennai | R Programming Training in Chennai

  20. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information regarding Microsoft Azure which is latest and newest,


    Azure Training in Chennai
    Azure Training Center in Chennai
    Best Azure Training in Chennai
    Azure Devops Training in Chenna
    Azure Training Institute in Chennai
    Azure Training in Chennai OMR
    Azure Training in Chennai Velachery
    Azure Online Training
    Azure Training in Chennai Credo Systemz
    DevOps Training in Chennai Credo Systemz

  21. This comment has been removed by the author.

  22. The article is very interesting and very understood to be read, may be useful for the people. I wanted to thank you for this great read!! I definitely enjoyed every little bit of it. I have to bookmarked to check out new stuff on your post. Thanks for sharing the information keep updating, looking forward for more posts..
    Kindly visit us @
    Madurai Travels
    Best Travels in Madurai
    Cabs in Madurai
    Tours and Travels in Madurai

  23. Wow, what an awesome spot to spend hours and hours! It's beautiful and I'm also surprised that you had it all to yourselves! Kindly follow the links too Best HIV Treatment in India
    Top HIV Hospital in India
    HIV AIDS Treatment in Mumbai
    HIV Specialist in Bangalore
    HIV Positive Treatment in India
    Medicine for AIDS in India

  24. Excellent Blog. I really want to admire the quality of this post. I like the way of your presentation of ideas, views and valuable content. No doubt you are doing great work. I’ll be waiting for your next post. Thanks .Keep it up!
    Kindly visit us @
    Christmas Gift Boxes
    Wallet Box
    Perfume Box Manufacturer
    Candle Packaging Boxes
    Luxury Leather Box
    Luxury Clothes Box
    Luxury Cosmetics Box
    Shoe Box Manufacturer
    Luxury Watch Box

  25. ඔබගේ ලිපිය කියවීමට ඉතා සතුටුයි. බෙදාගැනීම සඳහා ස්තූතියි.

    cửa lưới chống muỗi

    lưới chống chuột

    cửa lưới dạng xếp

    cửa lưới tự cuốn

  26. Si el agua cae al lago, desaparecerá( phụ kiện tủ bếp ). Pero si cae a la hoja de( phụ kiện tủ áo ) loto, brillará como una joya. Caer igual pero( thùng gạo thông minh ) estar con alguien es importante.

  27. it is very much useful for me to understand many concepts and helped me a lot.

    DevOps Training in Chennai
    Splunk Training in Chennai

  28. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    msbi online training

  29. Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live.
    javascript training in chennai | javascript training institute in chennai | javascript course in chennai | javascript certification in chennai | best javascript training in chennai

  30. Permainan ini merupakan permainan paling di cari untuk kategori permainan yang menggunakan kartu Domino. Mengapa demikian
    bandar ceme
    paito warna
    forum prediksi

  31. Excellent Blog. I really want to admire the quality of this post. I like the way of your presentation of ideas, views and valuable content. No doubt you are doing great work. I’ll be waiting for your next post. Thanks .Keep it up! Kindly visit us @Luxury Boxes
    Premium Packaging
    Luxury Candles Box
    Earphone Packaging Box
    Wireless Headphone Box
    Innovative Packaging Boxes
    Wedding gift box
    Leather Bag Packaging Box
    Cosmetics Packaging Box
    Luxury Chocolate Boxes

  32. Download latest audio and video file fromvidmate

  33. thanks for ur valuable information,keep going touch with us

    Scaffolding dealers in chennai

  34. Nice Presentation and its hopefull words..
    if you want a cheap web hostinng in web
    cheap web hosting company chennai

  35. Thanks for providing this information .I hope it will be fruitfull for me. Thank you so much and keep posting.scaffolding dealers in chennai

    aluminium scaffolding dealers in chennai

  36. I Got Job in my dream company with decent 12 Lacks Per Annum salary, I have learned this world most demanding course out there in the current IT Market from the data science training in pune Providers who helped me a lot to achieve my dreams comes true. Really worth trying Instant Approval Blog Comments Sites

  37. professional bridal makeup artist in chennai Style Specializes in beauty bridal makeup and makes assured that individual bride should look like a princess.

    best bridal makeup artist in chennai

  38. One of the best scaffolding ladder dealers in chennai, variety of designs and models are available here,please visit us
    Scaffolding dealers in chennai

  39. Fourceup Security is a best security service in chennai based upon Factories ,Offices ,Banks & their ATM ,Hotels ,Hospitals ,Schools ,Residential Apartments ,Construction Sites(Conditions Apply) ,Functions ,Tracking Crime systems.

    best security service in chennai
    security agency in chennai

  40. Its a right place to spend a lots of your valuable times with chat items. "yaa karachi is here for you..

    best cafe in chennai

  41. Grow sale india classified ads website Buy&sell find just about anything

    post free classified ads in india

  42. The post is absolutely fantastic! Lots of great information and inspiration both of which we all need! Also like to admire the time and effort you put into your blog.

    web portal development services in chennai

  43. Thanks For sharing a nice post about AWS Training Course.It is very helpful and AWS useful for training in bangalore

  44. Hey Nice Blog!! Thanks For Sharing!!! Wonderful blog & good post. It is really very helpful to me, waiting for a more new post. Keep Blogging!Here is the best angular training online with free Bundle videos .

    contact No :- 9885022027.

  45. inking is very useful have really helped lots of people who visit blog and provide them use full information.Automation Anywhere Training in Bangalore

  46. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving.uipath training in bangalore

  47. Really it was an awesome article,very interesting to read.You have provided an nice article,Thanks for prism training in bangalore

  48. This is really an awesome post, thanks for it. Keep adding more information to this.openspan training in bangalore

  49. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck…

    Start your journey with Database Developer Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @Bangalore Training Academy Located in BTM Layout Bangalore.

  50. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck.

    Best SAP EWM Training in Bangalore - Learn from best Real Time Experts Institutes in Bangalore with certified experts & get 100% assistance.

  51. Thanks for sharing this fantastic blog, really very informative. Your writing skill is very good, you must keep writing this type of blogs

    Home Salon Dubai
    wedding car hire gurgaon
    wedding car hire banglore wedding car hire delhi
    wedding car hire dehradun
    wedding car hire noida

  52. I can’t imagine that’s a great post. Thanks for sharing.

    Learn DevOps from the Industry Experts we bridge the gap between the need of the industry. eTechno Soft Solutions provide the Best DevOps Training in Bangalore .

  53. Thanks for sharing valuable information...

    Selenium Training in Bangalore | Selenium Courses | Selenium Training Institutes - RIA Institute of Technology
    - Best Selenium Training in Bangalore - Placement oriented Selenium Training Institutes in Bangalore.
    Learn Selenium Testing Training from expert Trainers.

  54. Thank you for sharing .The data that you provided in the blog is informative and effective. aws training in bangalore

  55. This is most informative and also this post most user friendly and super navigation to all posts. Thank you so much for giving this information to me.devops training in bangalore


  56. I am a regular reader of your blog and I find it really informative. Hope more Articles From You.Best
    Tableau Training Videos available Here.

  57. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    top workday online training
    best workday studio online training
    workday studio online training

  58. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    angular js online training
    best angular js online training
    top angular js online training

  59. Hello Admin!

    Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuffs like this. If you are looking for the Advertising Agency in Chennai | Printing in Chennai , Visit Inoventic Creative Agency Today..