Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-29 Thread Google Ads API Forum Advisor Prod
Hi,

You will be able to fetch all the ads of different types in one query but if 
you would like to fetch SHOPPING_PRODUCT_AD only, specify ad_group_ad.ad.type = 
“SHOPPING_PRODUCT_AD” in the WHERE clause.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USx07w: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/pdqgw0Q4VRG100dzTxIWHtTau5P9qBu20FOg%40sfdc.net.


Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-28 Thread cv
Hi,

So It would not possible to get all the AdType in one query?
Like I do have Gmail ads, video ads, image ads, text ads, expanded text 
ads, I do need to go individually for all those ad types?


Thanks,



On Wednesday, 29 January 2020 02:01:38 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> When you query for the shopping product ad, you need to specify the type 
> by adding ad_group_ad.ad.type 
> 
>  
> = “SHOPPING_PRODUCT_AD” in the WHERE clause. Please let me know if you have 
> any further questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
>
> ref:_00D1U1174p._5001USx07w: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/6c5affb4-4f40-4e75-a47f-baf85932e191%40googlegroups.com.


Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-28 Thread Google Ads API Forum Advisor Prod
Hi,

When you query for the shopping product ad, you need to specify the type by 
adding ad_group_ad.ad.type = “SHOPPING_PRODUCT_AD” in the WHERE clause. Please 
let me know if you have any further questions.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USx07w: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/mSdqx0Q4U3O4008zXcSB1yRDq67iHecYDuhg%40sfdc.net.


Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-28 Thread cv
I was using like this

$googleAdsRow->getAdGroupAd()->getAd()->getShoppingProductAd();


Thanks

On Tuesday, 28 January 2020 14:52:48 UTC+5:30, cv wrote:
>
> Hi,
>
> My query looks like
>
> $query = "SELECT
> segments.date,
>
> campaign.id,
> campaign.name,
> campaign.status,
> ad_group.id,
> ad_group.name,
> ad_group.status,
>
> metrics.clicks,
> metrics.impressions,
> metrics.ctr,
> metrics.cost_micros,
> metrics.conversions,
> metrics.cost_per_conversion,
> metrics.conversions_from_interactions_rate,
> metrics.average_cpc,
> metrics.active_view_impressions,
> metrics.average_cpm,
> metrics.view_through_conversions,
> metrics.absolute_top_impression_percentage,
> metrics.top_impression_percentage,
> ad_group_ad.ad.id,
> ad_group_ad.ad.type,
> ad_group_ad.ad.name,
> ad_group_ad.status,
> 
> ad_group_ad.ad.shopping_product_ad,
> ad_group_ad.ad.shopping_smart_ad
> 
> FROM
> ad_group_ad
> WHERE
> ad_group_ad.status = 'ENABLED'
> AND campaign.status = 'ENABLED'
> AND ad_group.status = 'ENABLED'
> AND segments.date >= $startDate AND segments.date <= 
> $endDate";
>
>
> Thanks,
>
> On Tuesday, 28 January 2020 14:49:23 UTC+5:30, cv wrote:
>>
>> Hi Xiaoming,
>>
>> Thank you for your response. 
>>
>> I would also like to say that does I need to pass ad_group.type = 
>> SHOPPING_PRODUCT_ADS otherwise it is giving 
>> Segmentation fault (core dumped).
>>
>> Thanks
>>
>> On Tuesday, 28 January 2020 01:52:02 UTC+5:30, adsapiforumadvisor wrote:
>>>
>>> Hi,
>>>
>>> Thanks for reaching out. You would be able to fetch data for 
>>> ShoppingProduct Ads by querying the ad_group_ad 
>>>  
>>> resource and use code similar to this example query 
>>> . 
>>> Please let me know if you have any further questions.
>>>
>>> Thanks and regards,
>>> Xiaoming, Google Ads API Team
>>>
>>>  
>>>
>>> ref:_00D1U1174p._5001USx07w: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/169d1503-f9c1-4971-b948-f6be1ae3b7af%40googlegroups.com.


Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-28 Thread cv
Hi,

My query looks like

$query = "SELECT
segments.date,

campaign.id,
campaign.name,
campaign.status,
ad_group.id,
ad_group.name,
ad_group.status,

metrics.clicks,
metrics.impressions,
metrics.ctr,
metrics.cost_micros,
metrics.conversions,
metrics.cost_per_conversion,
metrics.conversions_from_interactions_rate,
metrics.average_cpc,
metrics.active_view_impressions,
metrics.average_cpm,
metrics.view_through_conversions,
metrics.absolute_top_impression_percentage,
metrics.top_impression_percentage,
ad_group_ad.ad.id,
ad_group_ad.ad.type,
ad_group_ad.ad.name,
ad_group_ad.status,

ad_group_ad.ad.shopping_product_ad,
ad_group_ad.ad.shopping_smart_ad

FROM
ad_group_ad
WHERE
ad_group_ad.status = 'ENABLED'
AND campaign.status = 'ENABLED'
AND ad_group.status = 'ENABLED'
AND segments.date >= $startDate AND segments.date <= 
$endDate";


Thanks,

On Tuesday, 28 January 2020 14:49:23 UTC+5:30, cv wrote:
>
> Hi Xiaoming,
>
> Thank you for your response. 
>
> I would also like to say that does I need to pass ad_group.type = 
> SHOPPING_PRODUCT_ADS otherwise it is giving 
> Segmentation fault (core dumped).
>
> Thanks
>
> On Tuesday, 28 January 2020 01:52:02 UTC+5:30, adsapiforumadvisor wrote:
>>
>> Hi,
>>
>> Thanks for reaching out. You would be able to fetch data for 
>> ShoppingProduct Ads by querying the ad_group_ad 
>>  
>> resource and use code similar to this example query 
>> . 
>> Please let me know if you have any further questions.
>>
>> Thanks and regards,
>> Xiaoming, Google Ads API Team
>>
>>  
>>
>> ref:_00D1U1174p._5001USx07w: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/9a789043-38e0-489f-a7a8-9307923a7b50%40googlegroups.com.


Re: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-28 Thread cv
Hi Xiaoming,

Thank you for your response. 

I would also like to say that does I need to pass ad_group.type = 
SHOPPING_PRODUCT_ADS otherwise it is giving 
Segmentation fault (core dumped).

Thanks

On Tuesday, 28 January 2020 01:52:02 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi,
>
> Thanks for reaching out. You would be able to fetch data for 
> ShoppingProduct Ads by querying the ad_group_ad 
>  
> resource and use code similar to this example query 
> . 
> Please let me know if you have any further questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
>
> ref:_00D1U1174p._5001USx07w: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/e0116e81-ce4b-4d90-b662-5915173a0b28%40googlegroups.com.


RE: How to get ShoppingProductAdInfo using Google Ads API Beta

2020-01-27 Thread Google Ads API Forum Advisor Prod
Hi,

Thanks for reaching out. You would be able to fetch data for ShoppingProduct 
Ads by querying the ad_group_ad resource and use code similar to this example 
query. Please let me know if you have any further questions.

Thanks and regards,
Xiaoming, Google Ads API Team
ref:_00D1U1174p._5001USx07w: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/plSKU0Q4S8K100ORCnic8DQy2q5AhT3JtSIg%40sfdc.net.