++ Team

On Fri, Jan 6, 2023 at 3:45 PM Google Ads API and AdWords API Forum <
[email protected]> wrote:

> Hi Osman,
>
> Thank you for posting your concern.
>
> You mentioned that you are getting a weird error. Having said that,
> provide the complete *request*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and *response*
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  logs
> with *request ID*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and *request header*
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  generated
> on your end so our team can provide guidance accordingly? If you haven't
> yet, logging can be enabled by navigating to the Client libraries > Your
> client library (ex. Java) > Logging documentation, which you can access
> from this link
> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en>.
>
> You may then send the requested logs via the Reply privately to author
> option. If this option is not available, you may send the details directly
> to our [email protected] alias instead.
>
> Regards,
> Carmela
> Google Ads API Team
> On Friday, January 6, 2023 at 12:44:11 AM UTC+8
> [email protected] wrote:
>
>> Hi !
>> I am getting such a weird error. I have been using this piece of code for
>> almost a year and since 2 days it does not work.
>>
>> query = """
>> SELECT
>> campaign.status
>> FROM campaign_label
>> """
>>
>> CampaignStatus = client.get_type("CampaignStatusEnum").CampaignStatus
>> rows = batch.result etc etc
>>
>> Then when I am iterating the rows:
>> status=CampaignStatus.Name(row.campaign.status).      -> I get error on
>> this line : AttributeError: Name
>> I get the same error for other enums as well like AdGroupStatusEnum or
>> CampaignServingStatusEnum.
>>
>> I am blocked in the middle of something.
>> Thanks in advance,
>> osman
>>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
> "Google Ads API and AdWords 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/425b32f9-11c1-423d-a41f-c9417074a040n%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/425b32f9-11c1-423d-a41f-c9417074a040n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/CANS%3D_%3Dto%3DaDRKr-Mipz73kWW%3DZiHS2Qmxh2KNFtrMsJXuGSFEQ%40mail.gmail.com.

Reply via email to