Open main mcc, then Accounts / Management / show 500 accounts per page

Open developer tools, select <html> tag and click "edit as html". Copy all 
the content and put this content to new file called "google_html.txt"

create php script ocid.php with content:

<?php
$html = file_get_contents('google_html.txt');

preg_match_all('|<a.*?href="/aw/[^?]+\?ocid=([^&]+)&[^>]+>([^<]+)</a><!----></div><!----><div
 
class="[^"]+">([^<]+)|',$html,$result,PREG_SET_ORDER);

foreach($result as $record) {
echo $record[1].';'.$record[3].';'.$record[2]."<br>";
}
?>

when you execute script, it will print out all accounts ocid, all names, 
and all id

W dniu czwartek, 22 sierpnia 2019 11:32:22 UTC+2 użytkownik Lukas Kelling 
napisał:
>
> Yes, please share how to retrieve the ocid parameter per account.
>
> On Thursday, 22 August 2019 10:28:39 UTC+2, Kamil wrote:
>>
>> Nooo, why __e stoped working? it also not possible to gain ocid by 
>> adwords api. Why you broke this feature?
>> Looks like we will have to scrape all ocid from each account and assign 
>> it to account number.
>>
>> Good change google...
>>
>> W dniu czwartek, 22 sierpnia 2019 08:52:08 UTC+2 użytkownik 
>> adsapiforumadvisor napisał:
>>>
>>> Hi Trevor,
>>>
>>> Thank you for reaching out.
>>>
>>> Since this is already an old thread, could you open your concern on a 
>>> new one providing the complete details for better tracking?
>>>
>>> Also, deep links are still not available in the API. You may keep an eye 
>>> on our blog 
>>> <https://ads-developers.googleblog.com/search/label/adwords_api> for 
>>> more updates and announcement regarding the API.
>>>
>>> Regards,
>>> Dannison
>>> Google Ads API Team
>>>
>>> ref:_00D1U1174p._5001UHEIuy: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/5637fde3-a75b-48c9-a1f9-e87aa712de14%40googlegroups.com.

Reply via email to