Get Current Experients on Adword Client Account

20 views
Skip to first unread message

Sarah Riddell

unread,
Jun 26, 2015, 4:14:48 AM6/26/15
to adwor...@googlegroups.com

Hi,

How to get current existing experiment ids on campaigns on my adword account?


For Example,

I have an account with name XXX with 150+ campaigns, now 50 campaign has experiments with 35 running and 15 stopped status.Then how i get all of the experiments ids, names & status on any campaign  like this

campaign_id  experiment_id  experiment  name  experiment_status

SSS              545454            wewe                        running
dee               989899             dfsd                         paused
erer               458741            loki                           running
JIJ                123557             ujik                           running
LOK             459632             dfsd                          paused
OKO            452132             kolo                          running
SSO            545454             sdsw                         paused

Thanks,

Sany
Message has been deleted

Sarah Riddell

unread,
Jun 26, 2015, 7:21:26 AM6/26/15
to adwor...@googlegroups.com
I got solution to track campaigns experiment status with one extra ExperimentService.get call,hope it will help others.


 $experimentService = $user->GetService('ExperimentService', ADWORDS_VERSION);

    // Create selector.
    $selector = new Selector();
    $selector->fields = array('ServingStatus');

    $campaignId = array("878745484","96587412"); //campaigns ids for tracking experiments
    // Create predicates.
    $selector->predicates[] = new Predicate('CampaignId', 'IN', $campaignId);
    $selector->predicates[] = new Predicate('Status', 'EQUALS', 'ENABLED');


    $result=$experimentService->get($selector);


    print '<pre>';
    print_r($result);

Thanks,
Sany
Reply all
Reply to author
Forward
0 new messages