Hi Sreenu, Thanks for reaching out to us. I see that in your code you're using the get_campaigns example, but are trying to push ad_groups into your array. For reference, here is the code snippet I'm talking about.
array_push($emptyarray,$googleAdsRow->getAdGroup()->getId()->getValue()); printf( "Ad group with ID %d and name '%s' was found in campaign with ID .%s", $googleAdsRow->getCampaign()->getId()->getValue(), $googleAdsRow->getCampaign()->getName()->getValue(), PHP_EOL Where you have "getAdGroup()->getId()->getValue()" you're trying to push into an array AdGroups when your code is querying Campaigns. If you would like to query Ad Groups, I'd suggest using this example to obtain a list of ad groups under a campaign. Let me know if you have further questions. Thank you, Bryan, Google Ads API Team ref:_00D1U1174p._5001UZVXb6: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/r44Oo000000000000000000000000000000000000000000000Q84JGQ00xkQYcXoRRfGngACSbDLapw%40sfdc.net.