I have created an MCC Test account and two child accounts.
We created a video campaign for each of those two accounts.

----------------

MCC Test Account ... ID: 000-0000-000
    Campaign Account 1 ... ID: 111-1111-111
        Movie Campaign
    Campaign Account 2 ... ID: 222-2222-222
        Movie Campaign

----------------

I issued the following query and
I tried to get a campaign for a child account in PHP.


$query = 'SELECT campaign.id FROM campaign';

$response = $client->search(0000000000, $query);

foreach ($response->iterateAllElements() as $googleAdsRow) {
    /** @var GoogleAdsRow $googleAdsRow */
    printf(
        "Ad group with ID %d and name '%s' was found in campaign with ID 
%d.%s",
        $googleAdsRow->getAdGroup()->getId()->getValue(),
        $googleAdsRow->getAdGroup()->getName()->getValue(),
        $googleAdsRow->getCampaign()->getId()->getValue(),
        PHP_EOL
    );
}

But nothing appears.

Is there a special way to get a campaign for a child account?

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6a7aaac3-5628-42bf-8767-2945840d2df2n%40googlegroups.com.

Reply via email to