Thank you Juis, It worked.

On Wed, Nov 14, 2018 at 7:49 AM 'Luis Xander Talag (AdWords API Team)' via
AdWords API and Google Ads API Forum <adwords-api@googlegroups.com> wrote:

> Hi Satish,
>
> Video campaigns are currently only supported in reports in AdWords API
> based on this link
> <https://developers.google.com/adwords/api/docs/guides/campaigns-overview#differences_from_the_adwords_ui>.
> You may use Video Performance Report
> <https://developers.google.com/adwords/api/docs/appendix/reports/video-performance-report>
>  instead
> to retrieve their Campaign ID
> <https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#campaignid>
> s.
>
> Let me know if you have further clarifications.
>
> Thanks,
> Luis
> AdWords API Team
>
> On Wednesday, November 14, 2018 at 8:09:53 AM UTC+8, satish reddy wrote:
>>
>> Hi Guys,
>>
>> I tried below code to get all the campaigns ID's but its returning only
>> "Display campaigns" not the "Video's campaigns" ID's.
>>
>>
>>  # Initialize appropriate service.
>>   campaign_service = client.GetService('CampaignService',
>> version='v201806')
>>
>>   # Construct selector and get all campaigns.
>>   offset = 0
>>   selector = {
>>       'fields': ['Id'],
>>       'paging': {
>>           'startIndex': str(offset),
>>           'numberResults': str(PAGE_SIZE)
>>       }
>>   }
>>
>>   more_pages = True
>>   while more_pages:
>>     page = campaign_service.get(selector)
>>
>>     # Display results.
>>     if 'entries' in page:
>>       for campaign in page['entries']:
>>         print ('Campaign with id "%s", name "%s", and status "%s" was '
>>                'found.' % (campaign['id'], campaign['name'],
>>                            campaign['status']))
>>     else:
>>       print 'No campaigns were found.'
>>     offset += PAGE_SIZE
>>     selector['paging']['startIndex'] = str(offset)
>>     more_pages = offset < int(page['totalNumEntries'])
>>
>> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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.
> 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/8bb5fdc0-1c83-4d60-90db-ac0aa93b2bac%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/8bb5fdc0-1c83-4d60-90db-ac0aa93b2bac%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,
Satish Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/CADj84AH7cXFbz-GRT37Ud5tdn6QVzJCEwto6879yB1bOqWtLLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • ... satish reddy
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... satish reddy

Reply via email to