CampaignService get => 0 results

27 views
Skip to first unread message

Roger

unread,
Oct 3, 2017, 9:46:08 AM10/3/17
to AdWords API Forum
Hi,

I'm trying to get Campaign out of a CustomerId but i get an empty result

The account budget has ended AND no ads are running (nothing since sep 2016)!
Reading the api documentation i don't see why i shouldn't retrieve campaign even ended... but any try goes to an empty answer

I tried to add predicate on Status and ServingStatus to include everything but still no result

Is there something i missed??

Thanks for your help



    <x:Header>
        <v:RequestHeader>
            <v:clientCustomerId>XXX-XXX-XXXX</v:clientCustomerId>
            <v:developerToken>XXXXXXXXXXX</v:developerToken>
        </v:RequestHeader>
    </x:Header>
    <x:Body>
        <v:get>
            <v:serviceSelector>
                <v:fields>Id</v:fields>
                <v:fields>Name</v:fields>
                <v:fields>Status</v:fields>
                <v:fields>ServingStatus</v:fields>
                
                <v:predicates>
                    <v:field>Status</v:field>
                    <v:operator>IN</v:operator>
                    <v:values>ENABLED</v:values>
                    <v:values>PAUSED</v:values>
                    <v:values>REMOVED</v:values>
                </v:predicates>
                <v:predicates>
                    <v:field>ServingStatus</v:field>
                    <v:operator>IN</v:operator>
                    <v:values>SERVING</v:values>
                    <v:values>NONE</v:values>
                    <v:values>ENDED</v:values>
                    <v:values>PENDING</v:values>
                    <v:values>SUSPENDED</v:values>
                </v:predicates>
                
                <v:ordering>
                    <v:field>Name</v:field>
                    <v:sortOrder>ASCENDING</v:sortOrder>
                </v:ordering>
                <v:paging>
                    <v:startIndex>0</v:startIndex>
                    <v:numberResults>500</v:numberResults>
                </v:paging>
            </v:serviceSelector>
        </v:get>
    </x:Body>
</x:Envelope>

Shwetha Vastrad (AdWords API Team)

unread,
Oct 3, 2017, 11:59:48 AM10/3/17
to AdWords API Forum
Hi Roger, 

Could you send over your clientCustomerId using the Reply privately to author option? Campaigns are associated with client accounts, not manager accounts. If the clientCustomerId is that of an AdWords Manager account, then the service will not return any results. Please note that Video Campaigns will not be returned by CampaignService.

Thanks,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages