Thursday, 15 September 2016

AdGroupAdService is not returning all ads.

Hi,

I am downloading Ads details using php client library. The way I'm doing it is first download ads stats using awql

$reportQuery = "SELECT Id,AdGroupId,CampaignId,CampaignName,AveragePosition,AverageCpc,AverageCpm,Impressions,Clicks,Cost,Ctr,ConvertedClicks,ClickConversionRate,CostPerConvertedClick,
        ViewThroughConversions,Conversions,ConversionRate,CostPerConversion,AdNetworkType1
        FROM AD_PERFORMANCE_REPORT WHERE Status IN [ENABLED, PAUSED, DISABLED]"
;


And then the other detail of ad

$adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_LATEST_VERSION);
        $selector
= new Selector();




        $selector
->fields = array('Id','AdGroupId','BaseAdGroupId','BaseCampaignId','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
->dateRange = new DateRange($DATE_FROM, $DATE_TO);

$page = $adGroupAdService->get($selector);

But AdGroupAdService is not returning all ad's details.


Anybody can help?

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7e595b3f-b755-41d1-a4d0-3223a7393407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment