fuck you

ср, 6 мая 2020 г. в 16:00, Amit <alah...@nuundigital.com>:

> Hi Nirmita.
>
> Thank you for the reply and sharing the URLs.
>
> I able to retrieve the client customer list now. But I have another issue.
> I am getting the list as a Object. I cannot retrieve the customerId and
> name from the list using a loop. Please help me to find the solution.
>
> *How do I get the customerId and name from this object?*
> *Is it possible to convert this Object to JSON array?*
>
>
> *Here is the response Object.*
> Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerPage Object
> (
>     [entries:protected] => Array
>         (
>             [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => F
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] =>
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>             [1] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => E
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] =>
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>             [2] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => D
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] =>
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>             [3] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => C
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] =>
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>             [4] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => B
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] =>
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>             [5] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
>                 (
>                     [name:protected] => A
>                     [customerId:protected] => XXXXXXXXXX
>                     [canManageClients:protected] => 1
>                     [currencyCode:protected] =>
>                     [dateTimeZone:protected] =>
>                     [testAccount:protected] => 1
>                     [accountLabels:protected] =>
>                     [excludeHiddenAccounts:protected] =>
>                 )
>
>         )
>
>     [links:protected] => Array
>         (
>             [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerLink
> Object
>                 (
>                     [managerCustomerId:protected] => XXXXXXXXXX
>                     [clientCustomerId:protected] => XXXXXXXXXX
>                     [linkStatus:protected] =>
>                     [pendingDescriptiveName:protected] =>
>                     [isHidden:protected] =>
>                 )
>
>             [1] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerLink
> Object
>                 (
>                     [managerCustomerId:protected] => XXXXXXXXXX
>                     [clientCustomerId:protected] => XXXXXXXXXX
>                     [linkStatus:protected] =>
>                     [pendingDescriptiveName:protected] =>
>                     [isHidden:protected] =>
>                 )
>
>             [2] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerLink
> Object
>                 (
>                     [managerCustomerId:protected] => XXXXXXXXXX
>                     [clientCustomerId:protected] => XXXXXXXXXX
>                     [linkStatus:protected] =>
>                     [pendingDescriptiveName:protected] =>
>                     [isHidden:protected] =>
>                 )
>
>             [3] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerLink
> Object
>                 (
>                     [managerCustomerId:protected] => XXXXXXXXXX
>                     [clientCustomerId:protected] => XXXXXXXXXX
>                     [linkStatus:protected] =>
>                     [pendingDescriptiveName:protected] =>
>                     [isHidden:protected] =>
>                 )
>
>             [4] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerLink
> Object
>                 (
>                     [managerCustomerId:protected] => XXXXXXXXXX
>                     [clientCustomerId:protected] => XXXXXXXXXX
>                     [linkStatus:protected] =>
>                     [pendingDescriptiveName:protected] =>
>                     [isHidden:protected] =>
>                 )
>
>         )
>
>     [totalNumEntries:protected] => 6
>     [PageType:protected] => ManagedCustomerPage
>     [parameterMap:Google\AdsApi\AdWords\v201809\cm\Page:private] => Array
>         (
>             [Page.Type] => PageType
>         )
>
> )
>
>
> Thanks,
> Amit
>
>
> On Tuesday, May 5, 2020 at 2:27:31 AM UTC+5:30, adsapiforumadvisor wrote:
>>
>> Hi Amit,
>>
>> Thanks for reaching out. With regards to your concern about retrieving
>> customer ids using a customer list, you can refer to this code example
>> <https://github.com/googleads/google-ads-php/blob/40518142842e7f137b2a02db2cafb7c6169d53d3/examples/AccountManagement/ListAccessibleCustomers.php>
>>  and
>> refer to this guide
>> <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts?hl=sr#php>
>> .
>>
>> For your second concern about to retrieve campaign, ads  using customer
>> id, you will have to make the call with a client account instead of an MCC
>> account in order to retrieve the campaign. You can find all the examples of
>> the Google Ads API here
>> <https://developers.google.com/google-ads/api/docs/client-libs>.
>>
>> Let me know if you have any questions.
>>
>> Thanks,
>> Nirmita Patel Google Ads Team
>>
>>
>> ref:_00D1U1174p._5004Q1zK324: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/c7b30f32-bf3c-486f-9cbb-7f521db5ce4c%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/c7b30f32-bf3c-486f-9cbb-7f521db5ce4c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAEy1x9sO2q28eVBFpu_HjS7PWZANm5DcRU0hkB7WXFCWoyDCPw%40mail.gmail.com.

Reply via email to