I am trying to fetch info about some ads using the *GoogleAdsService* from
the *ad_group_ad* table, but all ads returned for some of the clients don't
really have any data other than the ID, name and resourceName, everything
else is returned as NULL or 0, even the type is returned as UNKNOWN
The query used:
$query = "SELECT ad_group_ad.ad.type, campaign.id,
ad_group_ad.ad.gmail_ad.teaser.logo_image,
ad_group_ad.ad.gmail_ad.teaser.headline,
ad_group_ad.ad.gmail_ad.teaser.description,
ad_group_ad.ad.gmail_ad.teaser.business_name,
ad_group_ad.ad.gmail_ad.product_videos,
ad_group_ad.ad.gmail_ad.product_images,
ad_group_ad.ad.gmail_ad.marketing_image_headline,
ad_group_ad.ad.gmail_ad.marketing_image_display_call_to_action.url_collection_id,
ad_group_ad.ad.gmail_ad.marketing_image_display_call_to_action.text_color,
ad_group_ad.ad.gmail_ad.marketing_image_display_call_to_action.text,
ad_group_ad.ad.gmail_ad.marketing_image_description,
ad_group_ad.ad.gmail_ad.marketing_image,
ad_group_ad.ad.gmail_ad.header_image, ad_group_ad.ad.id,
ad_group_ad.ad.image_ad.image_url, ad_group_ad.ad.image_ad.mime_type,
ad_group_ad.ad.image_ad.name, ad_group_ad.ad.image_ad.pixel_height,
ad_group_ad.ad.image_ad.pixel_width
FROM ad_group_ad WHERE ad_group_ad.ad.id IN (" . implode(', ',
[$adId]) . ")";
Some of the ads I am trying to fetch data for are the following:
ID: 388075524635
ResourceName: customers/9118840476/ads/388075524635
Type: UNKNOWN
*****************************************************************
ID: 388075524638
ResourceName: customers/9118840476/ads/388075524638
Type: UNKNOWN
*****************************************************************
ID: 474232013660
ResourceName: customers/9118840476/ads/474232013660
Type: UNKNOWN
*****************************************************************
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ab47ec40-0d1c-44c4-9272-6a511cde7cf5n%40googlegroups.com.