Getting AdSchedule ID trouble

2014-04-11 Thread Visar
Hi Guys, Language: PHP I'm trying to pull a list of AdSchedule IDs for a particular campaign. I've mostly changed the code around from the GetCampaigns.php example and have come up with the following. It doesn't work and I was wondering what I was doing wrong. function adsched(AdWordsUser $us

Re: Getting AdSchedule ID trouble

2014-04-11 Thread Ray Tsang (AdWords API Team)
Visar, What exactly isn't working? Is it getting an error? Or no entries were returned? Please send me the request/response log. Thanks, Ray On Friday, April 11, 2014 4:23:26 AM UTC-4, Visar wrote: > > Hi Guys, > > Language: PHP > > I'm trying to pull a list of AdSchedule IDs for a particula

Re: Getting AdSchedule ID trouble

2014-04-15 Thread Visar
Hi Ray, I think I personal messaged you the fix by accident. For anyone with the same problem, it's because I wasn't going through the correct structure of the campaign criterion object. The printf line should read printf("ID: " . $schedule->criterion->id . "\n"); -- -- =~=~=~=~=~=~=~=~=~=~