Re: Google Ads API get accounts under an MCC

2020-07-21 Thread Google Ads API Forum Advisor Prod
Hi ,

Thank you for reaching out. You could go to the specific resource and check the 
available functions. For example, if you would like to fetch the Unwrapped Id 
of an ad group, you could locate the AdGroup resource and then use the 
getIdUnwrapped() function. You could find the list of the resources here. 
Another approach is in your IDE, you could add an “->” after $googleAdsRow and 
as a result of the autocomplete, you would see all the available functions 
under the object.


Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q22XTD1:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5xe-d0QDTS63005_nFhgboQ_-l2glzI9tTyw%40sfdc.net.


Re: Google Ads API get accounts under an MCC

2020-07-21 Thread beyond Clicks
Hi Xiaoming, Is there a document anywhere where all these "get" fields are 
listed? such as ->getIdUnwrapped()?

Rather than having to look through the examples it'd be much easier to have 
documentation to reference.

On Monday, 20 July 2020 at 18:56:14 UTC+1 adsapiforumadvisor wrote:

> Hi,
>
> Thank you for reaching out. As you can see here 
> ,
>  
> the elements from the response are pulled out by calling the 
> iterateAllElements() method. Then you could select the specific field you 
> need for other queries.
>
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>  
>
> ref:_00D1U1174p._5004Q22XTD1:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d028d9a-f1bf-4ba3-8bc4-52fee39dd5c8n%40googlegroups.com.


RE: Google Ads API get accounts under an MCC

2020-07-20 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. As you can see here, the elements from the response 
are pulled out by calling the iterateAllElements() method. Then you could 
select the specific field you need for other queries.


Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5004Q22XTD1:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/sJpVf0QDS4GV00KxB9CR22SZyk4nEDN-Hh5A%40sfdc.net.


Google Ads API get accounts under an MCC

2020-07-20 Thread beyond Clicks
Hi Guys, I'm running the below query;

SELECT 
customer.id, customer_client.id, customer_client.descriptive_name 
FROM 
customer_client

which is then run through  like so;

$stream = $googleAdsServiceClient->searchStream($customerId, $mccQuery);

the goal being to give the system an account number of an MCC "$customerId" 
and have it run through the above query ($mccQuery) to get a list of the 
account numbers of all the accounts Under that specific MCC's control, 
which will then be sent off to a different query.

My issue is I cannot find what functions to call in my iterator to pull the 
specific value out of the response.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8e9ae95a-0be3-4870-bdbe-48154af7fd03o%40googlegroups.com.