First of all Thank you for replying. No. There is no Shared Ads.
Shared library > Ads says: You haven't created any shared ads yet. Click "+ List" above to get started. On Friday, July 18, 2014 11:56:24 AM UTC+5, MWA wrote: > > > Hi, > > I am trying to retreive Ads data from adwords API v201406. > > I am getting stats like this > > $reportQuery = "SELECT > AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,Conversions,ConversionRate,CostPerConversion, > > ViewThroughConversions,ConversionsManyPerClick,ConversionRateManyPerClick,CostPerConversionManyPerClick,AdNetworkType1,Id,AdGroupId > FROM AD_PERFORMANCE_REPORT"; > > $reportQuery .= " DURING " . $dateRange; > > $options = array('version' => ADWORDS_LATEST_VERSION); > > $stats = ReportUtils::DownloadReportWithAwql($reportQuery, $Path, $user, > $reportFormat, $options); > > > > Then I am converting $stats into array format $statsArray and then > collecting all AdIds. After that I am trying to retrieve other data from > AdGroupAdService using code below. $adIds have all the AdIds parsed from > $statsArray. > > $adGroupAdService = $user->GetService('AdGroupAdService', > ADWORDS_LATEST_VERSION); > > $selector = new Selector(); > > $selector->fields = array('Id','AdGroupId','Status','DisplayUrl', > 'AdGroupAdDisapprovalReasons','Headline','Description1','Description2', > 'ImageCreativeName','MobileAdDescription','MobileAdMarkupLanguages', > 'MobileAdMobileCarriers','MobileAdBusinessName','MobileAdCountryCode', > 'MobileAdPhoneNumber','MediaId','Dimensions','Urls','MimeType','SourceUrl' > ,'FileSize','CreationTime','ReferenceId','TemplateId','TemplateAdUnionId', > 'UniqueName','TemplateElementFieldName','TemplateElementFieldType', > 'TemplateElementFieldText'); > > $selector->predicates[] = new Predicate('Id', 'IN', $adIds); > > $page = $adGroupAdService->get($selector); > > > > The problem is $stat is providing 680 unique Ads data, and I am sending > these 680 AdIds to AdGroupAdService to get other data, but AdGroupAdService > is providing only 480 records. > > I have also tried to retrive data by sending actual AdIds which are > present in $statsArray but not present in $page but no result. > > $selector->predicates[] = new Predicate('Id', 'IN', $adIds); > > > > And I have also tried to retrive data by sending AdGroupId of the > particular AdId which are present in $statsArray but not present in $page > still no result. > > > $selector->predicates[] = new Predicate('AdGroupId', 'IN', $adGroupIds); > > > > Please Help me. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.