Hi

We have MCC and Sub MCC accounts and lot of client accounts under it. Need 
to get traffic data from 2 accounts which is in a sub-mcc. through single 
AWQL query using IN operator. 

Getting single account traffic only. bcaz creating session with one 
client-customer-id.

Can you please suggest any possibility for this to create session for 
sub-mcc account and get traffic data from more than one client-customer-ids?

SELECT OfferId, Impressions, Clicks, Cost, ConversionValue,  Conversions, 
AverageCpc, Ctr, ConversionRate, Brand, Date,  SearchImpressionShare, 
SearchClickShare, AllConversions  FROM SHOPPING_PERFORMANCE_REPORT WHERE 
ExternalCustomerId IN [Client-ID-1, Client-ID-2]  DURING From-Date, To-Date

create session builder like this

 $oAuth2Credential = (new OAuth2TokenBuilder())
            ->fromFile()
            ->build();

        
        $session = (new AdWordsSessionBuilder())
            ->fromFile()
            ->withOAuth2Credential($oAuth2Credential)
   ->withClientCustomerId( [CLIENT_CUST_ID]            
            ->build();

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0d7c136f-437d-4ab6-b548-ac501659070c%40googlegroups.com.

Reply via email to