How to get Campaign using GetCampaignsExample function.

26 views
Skip to first unread message

staplelo...@gmail.com

unread,
Jan 22, 2015, 12:59:34 AM1/22/15
to adwor...@googlegroups.com
Hello

I am trying to get campaign using GetCampaignsExample() function but blank result showing.
Whats should come in $user argument.

GetCampaignsExample($user);


Michael Cloonan (AdWords API Team)

unread,
Jan 22, 2015, 10:56:02 AM1/22/15
to adwor...@googlegroups.com
Hello,

If you look just a few lines above that line, you will see:

  // Get AdWordsUser from credentials in "../auth.ini"
  // relative to the AdWordsUser.php file's directory.
  $user = new AdWordsUser();

The $user is simply the in-memory representation of the information you set up in auth.ini.

If you are getting no results, then maybe it's because you have no campaigns. Try running the AddCampaigns example first, then this example again.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages